diff options
author | Leif Johansson <leifj@sunet.se> | 2011-03-03 11:48:43 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-03-03 11:48:43 +0100 |
commit | 85b6c6dc096dfbf44d51a13a8a9d16e152e58fe8 (patch) | |
tree | 3597f97a89ba0b797e09b4f7feba5b5fa39b83c7 /templates/apps/name/edit.html | |
parent | 2f74fb8b791eade1c0f4d1093139e4f0066efc40 (diff) |
client side validation
Diffstat (limited to 'templates/apps/name/edit.html')
-rw-r--r-- | templates/apps/name/edit.html | 9 |
1 files changed, 7 insertions, 2 deletions
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 |