Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(237)

Side by Side Diff: MoinMoin/templates/modify_applet.html

Issue 6356070: Metadata editor idea. This is just a dirty sketch that shows how I want to make metaeditor work. (Closed)
Patch Set: Added PTIME formatting and validation Created 12 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 {% import "forms.html" as forms %} 1 {% import "forms.html" as forms %}
2 {% extends theme("layout.html") %} 2 {% extends theme("layout.html") %}
3 3
4 {% set title = _("Modifying %(item_name)s", item_name=item_name) %} 4 {% set title = _("Modifying %(item_name)s", item_name=item_name) %}
5 5
6 {% block content %} 6 {% block content %}
7 <h1>{{ title }}</h1> 7 <h1>{{ title }}</h1>
8 <div class="moin-form"> 8 <div class="moin-form">
9 {{ gen.form.open(form, method='post', enctype='multipart/form-data') }} 9 {{ gen.form.open(form, method='post', enctype='multipart/form-data') }}
10 {{ forms.render_errors(form) }} 10 {{ forms.render_errors(form) }}
11 {% block extra_form %}{% endblock %} 11 {% block extra_form %}{% endblock %}
12 {% block data_editor %}{% endblock %} 12 {% block data_editor %}{% endblock %}
13 <dl> 13 <dl>
14 {{ forms.render_field(gen, form['data_file'], 'file') }} 14 {{ forms.render_field(gen, form['data_file'], 'file') }}
15 </dl> 15 </dl>
16 <pre id="moin-editor-help">{{ help }}</pre> 16 <pre id="moin-editor-help">{{ help }}</pre>
17 {{ gen.textarea(form['meta_text'], lang='en', dir='ltr', rows=rows_meta, col s=cols) }} 17 {% block meta_editor %}
18 <br /> 18 {% set view_method = item.meta['view_method'] %}
19 {{ forms.render_errors(form['meta_text']) }} 19 {% if view_method == 'blog_entry' %}
20 {% include 'modify_meta_blog_entry.html' %}
21 {% else %}
22 {% include 'modify_meta.html' %}
23 {% endif %}
24 {% endblock %}
ThomasJWaldmann 2012/07/11 13:12:25 not sure, but maybe the blog editing template shou
spy 2012/07/12 12:14:55 in this case I should also choose which template t
ThomasJWaldmann 2012/07/14 14:47:37 see my comment there - as form classes and templat
20 {{ gen.form.close() }} 25 {{ gen.form.close() }}
21 </div> 26 </div>
22 {% endblock %} 27 {% endblock %}
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b