templates: improve markup of oauth2 pages (#22922)

This commit is contained in:
Frédéric Péters 2018-03-30 13:36:08 +02:00
parent eec8578f8b
commit 38330c324e
2 changed files with 13 additions and 7 deletions

View File

@ -2,10 +2,14 @@
{% load i18n %}
{% block content %}
<div id="fargo-oauth2-authorize">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<button name="submit">{% trans "Choose" %}</button>
<button name="cancel">{% trans "Cancel" %}</button>
<div class="buttons">
<button name="submit">{% trans "Choose" %}</button>
<button name="cancel">{% trans "Cancel" %}</button>
</div>
</form>
</div>
{% endblock %}

View File

@ -2,19 +2,21 @@
{% load i18n %}
{% block content %}
<div id="user-files">
<div id="fargo-oauth2-confirm">
{% if error_message %}
<p>{% trans error_message %}</p>
<a href="{{ redirect_uri }}">{% trans "Continue to your client url" %}</a>
{% else %}
<p>{% blocktrans %}
Do you accept to add<b> {{ filename }} </b>to your portfolio?
Do you accept to add <em class="filename">{{ filename }}</em> to your portfolio?
{% endblocktrans %}</p>
<form id="send-file" method="post" enctype="multipart/form-data">
{% csrf_token %}
<button name="submit">{% trans "Allow" %}</button>
<button name="cancel">{% trans "Cancel" %}</button>
<div class="buttons">
<button name="submit">{% trans "Allow" %}</button>
<button name="cancel">{% trans "Cancel" %}</button>
</div>
</form>
{% endif %}
</div>
</div>
{% endblock %}