Projet

Général

Profil

0001-oauth2-use-button-22921.patch

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

Télécharger (1,67 ko)

Voir les différences:

Subject: [PATCH] oauth2: use <button> (#22921)

 fargo/templates/fargo/oauth2/authorize.html | 4 ++--
 fargo/templates/fargo/oauth2/confirm.html   | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
fargo/templates/fargo/oauth2/authorize.html
5 5
  <form method="post" enctype="multipart/form-data">
6 6
    {% csrf_token %}
7 7
    {{ form.as_p  }}
8
    <input type="submit" name="submit" value="{% trans "Choose" %}">
9
    <input type="submit" name="cancel" value="{% trans "Cancel" %}">
8
    <button name="submit">{% trans "Choose" %}</button>
9
    <button name="cancel">{% trans "Cancel" %}</button>
10 10
  </form>
11 11
{% endblock %}
fargo/templates/fargo/oauth2/confirm.html
12 12
      {% endblocktrans %}</p>
13 13
    <form id="send-file" method="post" enctype="multipart/form-data">
14 14
      {% csrf_token %}
15
      <input type="submit" name="submit" value="{% trans "Allow" %}"/>
16
      <input type="submit" name="cancel" value="{% trans "Cancel" %}"/>
15
      <button name="submit">{% trans "Allow" %}</button>
16
      <button name="cancel">{% trans "Cancel" %}</button>
17 17
    </form>
18 18
  {% endif %}
19 19
  </div>
20
-