summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/wizard/confirm_wizard.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-07-06 16:00:30 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-07-06 16:05:50 +0200
commitab8e92b36463e2592469cdd137b09ce43c75c33f (patch)
treea7b1d4747d6be8f468fa88a37dc2c77c8c6a8dda /ishtar_common/templates/ishtar/wizard/confirm_wizard.html
parent17a408ce343376f883c4ba0737d3a36c349db2ce (diff)
downloadIshtar-ab8e92b36463e2592469cdd137b09ce43c75c33f.tar.bz2
Ishtar-ab8e92b36463e2592469cdd137b09ce43c75c33f.zip
💄 wizards: validate forms with CTRL+ENTER
Diffstat (limited to 'ishtar_common/templates/ishtar/wizard/confirm_wizard.html')
-rw-r--r--ishtar_common/templates/ishtar/wizard/confirm_wizard.html11
1 files changed, 10 insertions, 1 deletions
diff --git a/ishtar_common/templates/ishtar/wizard/confirm_wizard.html b/ishtar_common/templates/ishtar/wizard/confirm_wizard.html
index e4fd739f6..1f0d0e4d9 100644
--- a/ishtar_common/templates/ishtar/wizard/confirm_wizard.html
+++ b/ishtar_common/templates/ishtar/wizard/confirm_wizard.html
@@ -5,7 +5,7 @@
{% include "ishtar/blocks/wizard_breadcrumb.html" %}
-<form action="." method="post">{% csrf_token %}
+<form class='wizard-form' action="." method="post">{% csrf_token %}
<div class='form container'>
{% block "warning_informations" %}{% endblock %}
{% block "warning_message" %}
@@ -62,4 +62,13 @@
</div>
</form>
+<script type="text/javascript">{% localize off %}
+$(document).ready(function(){
+ $(document).keydown(function(e){
+ if (e.ctrlKey && e.keyCode == 13) {
+ $("#submit_form").click();
+ }
+ });
+});
+{% endlocalize %}</script>
{% endblock %}