From d41d541eb07255a1e2f457d772843afdc5bad5c4 Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Wed, 27 Sep 2017 16:44:32 +0200 Subject: [PATCH] overriding deform templates --- ordr2/templates/deform/form.pt | 97 ++++++++++++++++++++++++++ ordr2/templates/deform/mapping_item.pt | 51 ++++++++++++++ ordr2/views/__init__.py | 1 + 3 files changed, 149 insertions(+) create mode 100644 ordr2/templates/deform/form.pt create mode 100644 ordr2/templates/deform/mapping_item.pt diff --git a/ordr2/templates/deform/form.pt b/ordr2/templates/deform/form.pt new file mode 100644 index 0000000..b912869 --- /dev/null +++ b/ordr2/templates/deform/form.pt @@ -0,0 +1,97 @@ +
+ +
+ + ${title} + + + + +
+
There was a problem with your submission
+
Errors have been highlighted below
+

${field.errormsg}

+
+ +

+ ${description} +

+ +
+ +
+ + + +
+ +
+ + + +
diff --git a/ordr2/templates/deform/mapping_item.pt b/ordr2/templates/deform/mapping_item.pt new file mode 100644 index 0000000..11eccc6 --- /dev/null +++ b/ordr2/templates/deform/mapping_item.pt @@ -0,0 +1,51 @@ +
+ + + +
+ +
+ ${input_prepend}${input_append} +
+ +

+ ${msg} +

+ +

+ ${field.description} +

+
+
diff --git a/ordr2/views/__init__.py b/ordr2/views/__init__.py index 7b9e295..c4da379 100644 --- a/ordr2/views/__init__.py +++ b/ordr2/views/__init__.py @@ -15,4 +15,5 @@ def includeme(config): config.add_request_method(flash, 'flash') config.add_static_view('static', 'ordr2:static', cache_max_age=3600) + config.add_static_view('deform', 'deform:static')