oauth2: use <button> (#22921)

This commit is contained in:
Frédéric Péters 2018-03-30 13:23:53 +02:00
parent ca0b908387
commit eec8578f8b
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" name="submit" value="{% trans "Choose" %}">
<input type="submit" name="cancel" value="{% trans "Cancel" %}">
<button name="submit">{% trans "Choose" %}</button>
<button name="cancel">{% trans "Cancel" %}</button>
</form>
{% endblock %}

View File

@ -12,8 +12,8 @@
{% endblocktrans %}</p>
<form id="send-file" method="post" enctype="multipart/form-data">
{% csrf_token %}
<input type="submit" name="submit" value="{% trans "Allow" %}"/>
<input type="submit" name="cancel" value="{% trans "Cancel" %}"/>
<button name="submit">{% trans "Allow" %}</button>
<button name="cancel">{% trans "Cancel" %}</button>
</form>
{% endif %}
</div>