templates: use <button> for buttons
(incidentally this fixes the cancel button behaviour)
This commit is contained in:
parent
79871d20f0
commit
2c2c27dbd1
|
@ -7,16 +7,16 @@
|
|||
personnels (token).
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" name="{{ submit_name }}" value="{% trans "Login" %}"/>
|
||||
<button name="{{ submit_name }}">{% trans "Login" %}</button>
|
||||
{% if cancel %}
|
||||
<input type="submit" name="cancel" value="{% trans 'Cancel' %}"/>
|
||||
<button name="cancel">{% trans 'Cancel' %}</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</form>
|
||||
<script>
|
||||
$(function() {
|
||||
$('#csam-login img').on('click', function() {
|
||||
$('#csam-login input[name={{submit_name}}]').click();
|
||||
$('#csam-login button[name={{submit_name}}]').click();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue