Projet

Général

Profil

0001-templates-improve-markup-of-oauth2-pages-22922.patch

Frédéric Péters, 30 mars 2018 13:43

Télécharger (2,28 ko)

Voir les différences:

Subject: [PATCH] templates: improve markup of oauth2 pages (#22922)

 fargo/templates/fargo/oauth2/authorize.html |  8 ++++++--
 fargo/templates/fargo/oauth2/confirm.html   | 12 +++++++-----
 2 files changed, 13 insertions(+), 7 deletions(-)
fargo/templates/fargo/oauth2/authorize.html
2 2
{% load i18n %}
3 3

  
4 4
{% block content %}
5
<div id="fargo-oauth2-authorize">
5 6
  <form method="post" enctype="multipart/form-data">
6 7
    {% csrf_token %}
7 8
    {{ form.as_p  }}
8
    <button name="submit">{% trans "Choose" %}</button>
9
    <button name="cancel">{% trans "Cancel" %}</button>
9
    <div class="buttons">
10
      <button name="submit">{% trans "Choose" %}</button>
11
      <button name="cancel">{% trans "Cancel" %}</button>
12
    </div>
10 13
  </form>
14
</div>
11 15
{% endblock %}
fargo/templates/fargo/oauth2/confirm.html
2 2
{% load i18n %}
3 3

  
4 4
{% block content %}
5
  <div id="user-files">
5
<div id="fargo-oauth2-confirm">
6 6
  {% if error_message %}
7 7
    <p>{% trans error_message %}</p>
8 8
    <a href="{{ redirect_uri }}">{% trans "Continue to your client url" %}</a>
9 9
  {% else %}
10 10
      <p>{% blocktrans %}
11
        Do you accept to add<b> {{ filename }} </b>to your portfolio?
11
        Do you accept to add <em class="filename">{{ filename }}</em> to your portfolio?
12 12
      {% endblocktrans %}</p>
13 13
    <form id="send-file" method="post" enctype="multipart/form-data">
14 14
      {% csrf_token %}
15
      <button name="submit">{% trans "Allow" %}</button>
16
      <button name="cancel">{% trans "Cancel" %}</button>
15
      <div class="buttons">
16
        <button name="submit">{% trans "Allow" %}</button>
17
        <button name="cancel">{% trans "Cancel" %}</button>
18
      </div>
17 19
    </form>
18 20
  {% endif %}
19
  </div>
21
</div>
20 22
{% endblock %}
21
-