templates: improve markup of oauth2 pages (#22922)
This commit is contained in:
parent
eec8578f8b
commit
38330c324e
|
@ -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 %}
|
||||
|
|
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue