diff options
Diffstat (limited to 'templates/apps/name')
-rw-r--r-- | templates/apps/name/add.html | 10 | ||||
-rw-r--r-- | templates/apps/name/edit.html | 9 |
2 files changed, 15 insertions, 4 deletions
diff --git a/templates/apps/name/add.html b/templates/apps/name/add.html index aba49ad..94086be 100644 --- a/templates/apps/name/add.html +++ b/templates/apps/name/add.html @@ -2,9 +2,15 @@ {% block widgets %} $('#id_expires').datepicker({'dateFormat': 'yy-mm-dd','timeFormat': 'hh:ii:ss'}); $('#id_description').wysiwyg(); - $('#form').formwizard({ + $('#wizard').formwizard({ validationEnabled: true, focusFirstInput: true, - textSubmit: "Finish" + textSubmit: "Finish", + validationOptions: { + rules: { + short: 'required', + value: 'required' + } + } }); {% endblock %}
\ No newline at end of file diff --git a/templates/apps/name/edit.html b/templates/apps/name/edit.html index aba49ad..d963048 100644 --- a/templates/apps/name/edit.html +++ b/templates/apps/name/edit.html @@ -2,9 +2,14 @@ {% block widgets %} $('#id_expires').datepicker({'dateFormat': 'yy-mm-dd','timeFormat': 'hh:ii:ss'}); $('#id_description').wysiwyg(); - $('#form').formwizard({ + $('#wizard').formwizard({ validationEnabled: true, focusFirstInput: true, - textSubmit: "Finish" + textSubmit: "Finish", + validationOptions: { + rules: { + short: 'required' + } + } }); {% endblock %}
\ No newline at end of file |