From 77ceee6e23f2a8daaf5e3247970953313aebcdd3 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 28 Feb 2011 22:07:19 +0100 Subject: wizards --- templates/apps/invitation/edit.html | 10 ++++++++- templates/apps/membership/edit.html | 9 +++++++- templates/apps/name/add.html | 10 +++++++++ templates/apps/name/delete.html | 8 ++++++++ templates/apps/name/edit.html | 11 +++++++++- templates/base.html | 14 ++++++++----- templates/edit.html | 2 +- templates/edit_fieldsets.html | 41 +++++++++++++++++++++++++++++++++++++ templates/tree.html | 2 +- 9 files changed, 97 insertions(+), 10 deletions(-) create mode 100644 templates/apps/name/add.html create mode 100644 templates/apps/name/delete.html create mode 100644 templates/edit_fieldsets.html (limited to 'templates') diff --git a/templates/apps/invitation/edit.html b/templates/apps/invitation/edit.html index ab833ad..28fc447 100644 --- a/templates/apps/invitation/edit.html +++ b/templates/apps/invitation/edit.html @@ -1 +1,9 @@ -{% extends "edit.html" %} \ No newline at end of file +{% extends "edit_fieldsets.html" %} +{% block widgets %} + $('#id_expires').datepicker({'dateFormat': 'yy-mm-dd','timeFormat': 'hh:ii:ss'}); + $('#form').formwizard({ + validationEnabled: true, + focusFirstInput: true, + textSubmit: "Finish" + }); +{% endblock %} \ No newline at end of file diff --git a/templates/apps/membership/edit.html b/templates/apps/membership/edit.html index ab833ad..e9074b0 100644 --- a/templates/apps/membership/edit.html +++ b/templates/apps/membership/edit.html @@ -1 +1,8 @@ -{% extends "edit.html" %} \ No newline at end of file +{% extends "edit_fieldsets.html" %} +{% block widgets %} + $('#form').formwizard({ + validationEnabled: true, + focusFirstInput: true, + textSubmit: "Finish" + }); +{% endblock %} \ No newline at end of file diff --git a/templates/apps/name/add.html b/templates/apps/name/add.html new file mode 100644 index 0000000..aba49ad --- /dev/null +++ b/templates/apps/name/add.html @@ -0,0 +1,10 @@ +{% extends "edit_fieldsets.html" %} +{% block widgets %} + $('#id_expires').datepicker({'dateFormat': 'yy-mm-dd','timeFormat': 'hh:ii:ss'}); + $('#id_description').wysiwyg(); + $('#form').formwizard({ + validationEnabled: true, + focusFirstInput: true, + textSubmit: "Finish" + }); +{% endblock %} \ No newline at end of file diff --git a/templates/apps/name/delete.html b/templates/apps/name/delete.html new file mode 100644 index 0000000..e9074b0 --- /dev/null +++ b/templates/apps/name/delete.html @@ -0,0 +1,8 @@ +{% extends "edit_fieldsets.html" %} +{% block widgets %} + $('#form').formwizard({ + validationEnabled: true, + focusFirstInput: true, + textSubmit: "Finish" + }); +{% endblock %} \ No newline at end of file diff --git a/templates/apps/name/edit.html b/templates/apps/name/edit.html index ab833ad..aba49ad 100644 --- a/templates/apps/name/edit.html +++ b/templates/apps/name/edit.html @@ -1 +1,10 @@ -{% extends "edit.html" %} \ No newline at end of file +{% extends "edit_fieldsets.html" %} +{% block widgets %} + $('#id_expires').datepicker({'dateFormat': 'yy-mm-dd','timeFormat': 'hh:ii:ss'}); + $('#id_description').wysiwyg(); + $('#form').formwizard({ + validationEnabled: true, + focusFirstInput: true, + textSubmit: "Finish" + }); +{% endblock %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 742e5ab..d0f22ea 100644 --- a/templates/base.html +++ b/templates/base.html @@ -17,9 +17,13 @@ - + + + + + {% block title %}{% endblock %}