diff options
Diffstat (limited to 'templates/apps')
-rw-r--r-- | templates/apps/invitation/edit.html | 10 | ||||
-rw-r--r-- | templates/apps/name/add.html | 10 | ||||
-rw-r--r-- | templates/apps/name/edit.html | 9 |
3 files changed, 23 insertions, 6 deletions
diff --git a/templates/apps/invitation/edit.html b/templates/apps/invitation/edit.html index 28fc447..b565d10 100644 --- a/templates/apps/invitation/edit.html +++ b/templates/apps/invitation/edit.html @@ -1,9 +1,15 @@ {% extends "edit_fieldsets.html" %} {% block widgets %} $('#id_expires').datepicker({'dateFormat': 'yy-mm-dd','timeFormat': 'hh:ii:ss'}); - $('#form').formwizard({ + $('#wizard').formwizard({ validationEnabled: true, focusFirstInput: true, - textSubmit: "Finish" + textSubmit: "Finish", + validationOptions: { + rules: { + email: 'email required', + expires: 'date required' + } + } }); {% endblock %}
\ No newline at end of file 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 |