annotate MoinMoin/templates/modify_applet.html @ 1330:cae27a401354

fix issue #165 +modify fails html5 validation
author Roger Haase <crosseyedpenguin@yahoo.com>
date Sun, 15 Apr 2012 12:57:55 -0700
parents ce5454f5edaa
children 582e7109a8c1
rev   line source
242
e93157b8b0bd refactor modify views to use flatland, see details below
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 227
diff changeset
1 {% import "forms.html" as forms %}
227
7099a64c00ad remove TABs, remove CRLF lineendings - please use spaces and LF only
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 0
diff changeset
2 {% extends theme("layout.html") %}
1241
95abf895be4f Refactor title code, fixes #147
Sam Toyer <samATqxcvDOTnet>
parents: 892
diff changeset
3
95abf895be4f Refactor title code, fixes #147
Sam Toyer <samATqxcvDOTnet>
parents: 892
diff changeset
4 {% set title = _("Modifying %(item_name)s", item_name=item_name) %}
95abf895be4f Refactor title code, fixes #147
Sam Toyer <samATqxcvDOTnet>
parents: 892
diff changeset
5
227
7099a64c00ad remove TABs, remove CRLF lineendings - please use spaces and LF only
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 0
diff changeset
6 {% block content %}
1241
95abf895be4f Refactor title code, fixes #147
Sam Toyer <samATqxcvDOTnet>
parents: 892
diff changeset
7 <h1>{{ title }}</h1>
227
7099a64c00ad remove TABs, remove CRLF lineendings - please use spaces and LF only
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 0
diff changeset
8 <div class="moin-form">
1330
cae27a401354 fix issue #165 +modify fails html5 validation
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1317
diff changeset
9 {{ gen.form.open(form, method='post', enctype='multipart/form-data') }}
1317
ce5454f5edaa CSS cleanup, remove unused selectors, fixes #172 align columns of integers to right, partial fix for #165 html errors on +modify
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1241
diff changeset
10 {{ forms.render_errors(form) }}
ce5454f5edaa CSS cleanup, remove unused selectors, fixes #172 align columns of integers to right, partial fix for #165 html errors on +modify
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1241
diff changeset
11 {% block extra_form %}{% endblock %}
ce5454f5edaa CSS cleanup, remove unused selectors, fixes #172 align columns of integers to right, partial fix for #165 html errors on +modify
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1241
diff changeset
12 {% block data_editor %}{% endblock %}
ce5454f5edaa CSS cleanup, remove unused selectors, fixes #172 align columns of integers to right, partial fix for #165 html errors on +modify
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1241
diff changeset
13 <dl>
ce5454f5edaa CSS cleanup, remove unused selectors, fixes #172 align columns of integers to right, partial fix for #165 html errors on +modify
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1241
diff changeset
14 {{ forms.render_field(gen, form['data_file'], 'file') }}
ce5454f5edaa CSS cleanup, remove unused selectors, fixes #172 align columns of integers to right, partial fix for #165 html errors on +modify
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1241
diff changeset
15 </dl>
ce5454f5edaa CSS cleanup, remove unused selectors, fixes #172 align columns of integers to right, partial fix for #165 html errors on +modify
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1241
diff changeset
16 <pre id="moin-editor-help">{{ help }}</pre>
ce5454f5edaa CSS cleanup, remove unused selectors, fixes #172 align columns of integers to right, partial fix for #165 html errors on +modify
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1241
diff changeset
17 {{ gen.textarea(form['meta_text'], lang='en', dir='ltr', rows=rows_meta, cols=cols) }}
ce5454f5edaa CSS cleanup, remove unused selectors, fixes #172 align columns of integers to right, partial fix for #165 html errors on +modify
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1241
diff changeset
18 <br />
ce5454f5edaa CSS cleanup, remove unused selectors, fixes #172 align columns of integers to right, partial fix for #165 html errors on +modify
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1241
diff changeset
19 {{ forms.render_errors(form['meta_text']) }}
ce5454f5edaa CSS cleanup, remove unused selectors, fixes #172 align columns of integers to right, partial fix for #165 html errors on +modify
Roger Haase <crosseyedpenguin@yahoo.com>
parents: 1241
diff changeset
20 {{ gen.form.close() }}
227
7099a64c00ad remove TABs, remove CRLF lineendings - please use spaces and LF only
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 0
diff changeset
21 </div>
7099a64c00ad remove TABs, remove CRLF lineendings - please use spaces and LF only
Thomas Waldmann <tw AT waldmann-edv DOT de>
parents: 0
diff changeset
22 {% endblock %}