LEFT | RIGHT |
1 {% import "forms.html" as forms %} | 1 {% import "forms.html" as forms %} |
2 {% import "utils.html" as utils %} | 2 {% import "utils.html" as utils %} |
3 {% extends theme("layout.html") %} | 3 {% extends theme("layout.html") %} |
4 | 4 |
5 {# Import macros data_editor and extra_head from content_form's template. | 5 {# Import macros data_editor and extra_head from content_form's template. |
6 extra_head is optional, so instead of a simple "import from" we need to do | 6 extra_head is optional, so instead of a simple "import from" we need to do |
7 this manually #} | 7 this manually #} |
8 {% import form['content_form'].template as content_template %} | 8 {% import form['content_form'].template as content_template %} |
9 {% set extra_head = content_template.extra_head %} | 9 {% set extra_head = content_template.extra_head %} |
10 {% set data_editor = content_template.data_editor %} | 10 {% set data_editor = content_template.data_editor %} |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 {{ forms.render(form['submit']) }} | 45 {{ forms.render(form['submit']) }} |
46 <dl> | 46 <dl> |
47 {{ forms.render_textcha(gen, form) }} | 47 {{ forms.render_textcha(gen, form) }} |
48 {{ forms.render(form['comment']) }} | 48 {{ forms.render(form['comment']) }} |
49 </dl> | 49 </dl> |
50 {% endif %} | 50 {% endif %} |
51 {{ data_editor(form['content_form']) }} | 51 {{ data_editor(form['content_form']) }} |
52 {% if form['content_form'].help %} | 52 {% if form['content_form'].help %} |
53 <pre id="moin-editor-help">{{ form['content_form'].help }}</pre> | 53 <pre id="moin-editor-help">{{ form['content_form'].help }}</pre> |
54 {% endif %} | 54 {% endif %} |
55 {% for e in [ | |
56 'wikiname', | |
57 'contenttype', | |
58 'summary', | |
59 'tags', | |
60 ] %} | |
61 {{ forms.render(form['meta_form'][e]) }} | |
62 {% endfor %} | |
63 <dl> | 55 <dl> |
64 {{ forms.render(form['extra_meta_text']) }} | 56 {{ forms.render(form['meta_text']) }} |
65 </dl> | 57 </dl> |
66 {# | 58 {# |
67 {{ gen.textarea(form['meta_text'], lang='en', dir='ltr', rows=rows_meta, col
s=cols) }} | 59 {{ gen.textarea(form['meta_text'], lang='en', dir='ltr', rows=rows_meta, col
s=cols) }} |
68 <br /> | 60 <br /> |
69 {{ forms.render_errors(form['meta_text']) }} | 61 {{ forms.render_errors(form['meta_text']) }} |
70 #} | 62 #} |
71 {{ gen.form.close() }} | 63 {{ gen.form.close() }} |
72 </div> | 64 </div> |
73 {% endblock %} | 65 {% endblock %} |
LEFT | RIGHT |