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

Delta Between Two Patch Sets: MoinMoin/templates/modify.html

Issue 245270044: Layout.html Bootstrapped
Left Patch Set: Created 8 years, 9 months ago
Right Patch Set: Using old bootstrap v1 Created 8 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:
Right: Side by side diff | Download
« no previous file with change/comment | « MoinMoin/templates/layout.html ('k') | MoinMoin/themes/modernized/static/css/less/modernized.less » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
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("show.html") %} 3 {% extends theme("show.html") %}
4 4
5 {% from form.meta_template import meta_editor %} 5 {% from form.meta_template import meta_editor %}
6 {# Import macros data_editor and extra_head from content_form's template. 6 {# Import macros data_editor and extra_head from content_form's template.
7 extra_head is optional, so instead of a simple "import from" we need to do 7 extra_head is optional, so instead of a simple "import from" we need to do
8 this manually #} 8 this manually #}
9 {% import form['content_form'].template as content_template %} 9 {% import form['content_form'].template as content_template %}
10 {% set extra_head = content_template.extra_head %} 10 {% set extra_head = content_template.extra_head %}
11 {% set data_editor = content_template.data_editor %} 11 {% set data_editor = content_template.data_editor %}
12 12
13 {% set title = _("Modifying '%(item_name)s'", item_name=fqname.value) %} 13 {% set title = _("Modifying '%(item_name)s'", item_name=fqname.value) %}
14 14
15 {% block head %} 15 {% block head %}
16 {{ super() }} 16 {{ super() }}
17 {% if extra_head %} 17 {% if extra_head %}
18 {{ extra_head() }} 18 {{ extra_head() }}
19 {% endif %} 19 {% endif %}
20 {% endblock %} 20 {% endblock %}
21 21
22 {% block subitem_navigation %} 22 {% block subitem_navigation %}
23 {% call(fullname, shortname, contenttype, has_children) utils.render_subitem _navigation(fqname, True) %} 23 {% call(fullname, shortname, contenttype, has_children) utils.render_subitem _navigation(fqname, True) %}
24 {% set shortname = shortname|json_dumps %} 24 {% set shortname = shortname|json_dumps %}
25 <button class="moin-insertname-action" data-name="{{ fullname }}" 25 <button class="moin-insertname-action" data-name="{{ fullname }}"
26 title="{{ _('Insert Name') }}">{{ _('Insert Name') }}</button> 26 title="{{ _('Insert Name') }}">{{ _('Insert Name') }}</button>
27 {% endcall %} 27 {% endcall %}
28 {% endblock %} 28 {% endblock %}
29 29
30
31 {% block content %} 30 {% block content %}
32 <h1>{{ title }}</h1> 31 <h1>{{ title }}</h1>
33 <div id="moin-modify" class="moin-form"> 32 <div id="moin-modify" class="moin-form">
34 <a class="btn btn-success" style="float: right" href="{{ url_for('.downl oad_item', item_name=item_name, mimetype='application/x.moin.download') }}"> 33 <a class="btn btn-success" style="float: right" href="{{ url_for('.downl oad_item', item_name=item_name, mimetype='application/x.moin.download') }}">
35 <span class="fa fa-download"></span> {{ _('Download') }} 34 <span class="fa fa-download"></span> {{ _('Download') }}</a>
36 </a>
37 {{ gen.form.open(form, method='post', enctype='multipart/form-data') }} 35 {{ gen.form.open(form, method='post', enctype='multipart/form-data') }}
38 {{ forms.render_errors(form) }} 36 {{ forms.render_errors(form) }}
39 {# 37 {#
40 Workaround: 38 Workaround:
41 For *Draw content, hide submit button and form['comment'], since *Draw 39 For *Draw content, hide submit button and form['comment'], since *Draw
42 POSTs originate from their respective applets. 40 POSTs originate from their respective applets.
43 #} 41 #}
44 {% if not form['content_form'].is_draw %} 42 {% if not form['content_form'].is_draw %}
45 {{ forms.render_submit(form, id='moin-save-text-button') }} 43 {{ forms.render_submit(form, id='moin-save-text-button') }}
46 <dl> 44 <dl>
(...skipping 15 matching lines...) Expand all
62 #} 60 #}
63 {{ gen.form.close() }} 61 {{ gen.form.close() }}
64 </div> 62 </div>
65 {% endblock %} 63 {% endblock %}
66 64
67 {% block options_for_javascript %} 65 {% block options_for_javascript %}
68 {%- if user.scroll_page_after_edit -%} 66 {%- if user.scroll_page_after_edit -%}
69 <br id="moin-scroll-page-after-edit" /> 67 <br id="moin-scroll-page-after-edit" />
70 {%- endif %} 68 {%- endif %}
71 {% endblock %} 69 {% endblock %}
LEFTRIGHT

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