From 85b6c6dc096dfbf44d51a13a8a9d16e152e58fe8 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Thu, 3 Mar 2011 11:48:43 +0100 Subject: client side validation --- templates/apps/name/edit.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'templates/apps/name/edit.html') 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 -- cgit v1.1