summaryrefslogtreecommitdiff
path: root/templates/apps/name/edit.html
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-03-03 11:48:43 +0100
committerLeif Johansson <leifj@sunet.se>2011-03-03 11:48:43 +0100
commit85b6c6dc096dfbf44d51a13a8a9d16e152e58fe8 (patch)
tree3597f97a89ba0b797e09b4f7feba5b5fa39b83c7 /templates/apps/name/edit.html
parent2f74fb8b791eade1c0f4d1093139e4f0066efc40 (diff)
client side validation
Diffstat (limited to 'templates/apps/name/edit.html')
-rw-r--r--templates/apps/name/edit.html9
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