'Return content (str) either for launch, send grade or get result from TC.'

def _create_content(self, response_text, submit_url=None):

    if submit_url:
        submit_form = textwrap.dedent('\n                                                                <form    action="{submit_url}/grade"    method="post">\n                                                                                <input    type="submit"    name="submit-button"    value="Submit"    id="submit-button">\n                                                                </form>\n                                                                <form    action="{submit_url}/lti2_outcome"    method="post">\n                                                                                <input    type="submit"    name="submit-lti2-button"    value="Submit"    id="submit-lti2-button">\n                                                                </form>\n                                                                <form    action="{submit_url}/lti2_delete"    method="post">\n                                                                                <input    type="submit"    name="submit-lti2-delete-button"    value="Submit"    id="submit-lti-delete-button">\n                                                                </form>\n                                                ').format(submit_url=submit_url)
    else:
        submit_form = ''
    if self.post_dict.get('roles'):
        role = '<h5>Role:    {}</h5>'.format(self.post_dict['roles'])
    else:
        role = ''
    response_str = textwrap.dedent('\n                                                                <html>\n                                                                                <head>\n                                                                                                <title>TEST    TITLE</title>\n                                                                                </head>\n                                                                                <body>\n                                                                                                <div>\n                                                                                                                <h2>IFrame    loaded</h2>\n                                                                                                                <h3>Server    response    is:</h3>\n                                                                                                                <h3    class="result">{response}</h3>\n                                                                                                                {role}\n                                                                                                </div>\n                                                                                                {submit_form}\n                                                                                </body>\n                                                                </html>\n                                                ').format(response=response_text, role=role, submit_form=submit_form)
    return urllib.unquote(urllib.unquote(response_str))
