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/invitation/edit.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'templates/apps/invitation/edit.html') 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 -- cgit v1.1