misc: use <button> for buttons (#17847)
This commit is contained in:
parent
6d60b82997
commit
20e6d6001a
|
@ -8,16 +8,16 @@ $(function() {
|
|||
window.parent.postMessage(JSON.stringify({
|
||||
'message': 'fargoButtons',
|
||||
'buttons': [
|
||||
{'text': $('input[name=cancel]').val(),
|
||||
{'text': $('button[name=cancel]').text(),
|
||||
'name': 'cancel'
|
||||
},
|
||||
{'text': $('input[name=submit]').val(),
|
||||
{'text': $('button[name=submit]').text(),
|
||||
'name': 'submit'
|
||||
}
|
||||
]}), '*');
|
||||
}
|
||||
if (data.message == 'validate') {
|
||||
$('input[name=submit]').click();
|
||||
$('button[name=submit]').click();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
{% csrf_token %}
|
||||
<div style="display: none">
|
||||
{{ form.as_p }}
|
||||
<input type="submit" name="submit" value="{% trans "Upload" %}">
|
||||
<input type="submit" name="submit" value="Upload">
|
||||
</div>
|
||||
<button>{% trans "Upload a new document" %}</button>
|
||||
</form>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<form method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" name="submit" value="{% trans "Upload" %}">
|
||||
<input type="submit" name="cancel" value="{% trans "Cancel" %}">
|
||||
<button name="submit">{% trans "Upload" %}</button>
|
||||
<button name="cancel">{% trans "Cancel" %}</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<div class="buttons">
|
||||
<input type="submit" name="submit" value="{% trans "Validate" %}">
|
||||
<input type="submit" name="cancel" value="{% trans "Cancel" %}">
|
||||
<button name="submit">{% trans "Validate" %}</button>
|
||||
<button name="cancel">{% trans "Cancel" %}</button>
|
||||
</div>
|
||||
</form>
|
||||
<script>
|
||||
|
|
|
@ -6,6 +6,6 @@
|
|||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" value="submit" name="{% trans "Login" %}">
|
||||
<button>{% trans "Login" %}</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue