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')