annotate MoinMoin/themes/basic/templates/modify.html @ 2335:acddea75972b

basic modify view
author sharky93 <rishabhr123@gmail.com>
date Tue, 23 Jul 2013 18:03:23 +0530
parents
children f844f7307aa6
rev   line source
2335
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
1 {% extends "modify.html" %}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
2
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
3 {% block content %}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
4 <h2>{{ title }}</h2>
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
5 <div id="moin-modify" class="moin-form">
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
6 {{ gen.form.open(form, method='post', enctype='multipart/form-data') }}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
7 {{ forms.render_errors(form) }}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
8 {#
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
9 Workaround:
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
10 For *Draw content, hide submit button and form['comment'], since *Draw
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
11 POSTs originate from their respective applets.
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
12 #}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
13 {% if not form['content_form'].is_draw %}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
14 {{ forms.render_submit(form, class='btn btn-primary', id='moin-save-text-button') }}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
15 <dl>
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
16 {{ forms.render_textcha(gen, form) }}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
17 {{ forms.render(form['comment']) }}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
18 </dl>
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
19 {% endif %}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
20 {{ data_editor(form['content_form'], item_name, class='input-block-level') }}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
21 {% if form['content_form'].help %}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
22 <pre id="moin-editor-help">{{ form['content_form'].help }}</pre>
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
23 {% endif %}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
24 {{ meta_editor(form['meta_form']) }}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
25 <dl>
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
26 {{ forms.render(form['extra_meta_text'], class='span6') }}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
27 </dl>
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
28 {#
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
29 {{ gen.textarea(form['meta_text'], lang='en', dir='ltr', rows=rows_meta, cols=cols) }}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
30 <br />
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
31 {{ forms.render_errors(form['meta_text']) }}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
32 #}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
33 {{ gen.form.close() }}
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
34 </div>
acddea75972b basic modify view
sharky93 <rishabhr123@gmail.com>
parents:
diff changeset
35 {% endblock %}