From 15077ed4277b38f9e2eb9f9b1550b664a0bb1e28 Mon Sep 17 00:00:00 2001 From: Leif Johansson Date: Mon, 4 Apr 2011 21:05:39 +0200 Subject: cleanup and turn form into wizard --- src/templates/apps/room/create.html | 8 ++++++++ src/templates/apps/room/modify.html | 14 +++++++++++++ src/templates/apps/room/update.html | 8 ++++++++ src/templates/form.html | 39 +++++++++++++++++++++++++++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 src/templates/apps/room/create.html create mode 100644 src/templates/apps/room/modify.html create mode 100644 src/templates/apps/room/update.html create mode 100644 src/templates/form.html (limited to 'src/templates') diff --git a/src/templates/apps/room/create.html b/src/templates/apps/room/create.html new file mode 100644 index 0000000..7989856 --- /dev/null +++ b/src/templates/apps/room/create.html @@ -0,0 +1,8 @@ +{% extends "apps/room/modify.html" %} +{% block beforeform %} +
+

+ +Here you can create a new meeting room... +

+{% endblock %} \ No newline at end of file diff --git a/src/templates/apps/room/modify.html b/src/templates/apps/room/modify.html new file mode 100644 index 0000000..e76d01f --- /dev/null +++ b/src/templates/apps/room/modify.html @@ -0,0 +1,14 @@ +{% extends "form.html" %} +{% block widgets %} + $('#wizard').formwizard({ + validationEnabled: true, + focusFirstInput: true, + textSubmit: "{{submitname}}", + validationOptions: { + rules: { + name: 'required', + urlpath: 'required' + } + } + }); +{% endblock %} \ No newline at end of file diff --git a/src/templates/apps/room/update.html b/src/templates/apps/room/update.html new file mode 100644 index 0000000..3e5c4fa --- /dev/null +++ b/src/templates/apps/room/update.html @@ -0,0 +1,8 @@ +{% extends "apps/room/modify.html" %} +{% block beforeform %} +
+

+ +Here you can update an existing meeting room... +

+{% endblock %} \ No newline at end of file diff --git a/src/templates/form.html b/src/templates/form.html new file mode 100644 index 0000000..682ece7 --- /dev/null +++ b/src/templates/form.html @@ -0,0 +1,39 @@ +{% extends "base.html" %} +{% load prefix %} +{% block content %} +

{% block formtitle %}{{formtitle}}{% endblock %}

+ {% block beforeform %}{% endblock %} +
+ {% if form.non_field_errors %}{{ form.non_field_errors }}{% endif %} + {% for fieldset in form.fieldsets %} +
+ {% if fieldset.legend %} + {{ fieldset.legend }} + {% endif %} + {% if fieldset.description %} +

{{ fieldset.description }}

+ {% endif %} + +
+ {% endfor %} + +
+
+{% endblock %} -- cgit v1.1