File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/moin/themes/basic/templates Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ <h1>{{ title }}</h1>
47
47
</ ul >
48
48
< div class ="tab-content ">
49
49
< div class ="tab-pane active " id ="editor ">
50
+ {% if not form['content_form'].is_draw and draft_data %}
51
+ < button class ="moin-button moin-load-draft " type ="button " > {{ _("Load Draft") }}</ button >
52
+ {% set warning = _("Clicking this button will delete draft!") %}
53
+ {% endif %}
50
54
{{ data_editor(form['content_form'], item_name) }}
51
55
</ div >
52
56
< div class ="tab-pane active " id ="meta ">
@@ -124,5 +128,11 @@ <h1>{{ title }}</h1>
124
128
{%- if user.scroll_page_after_edit -%}
125
129
< br id ="moin-scroll-page-after-edit ">
126
130
{%- endif %}
131
+ {%- if draft_data -%}
132
+ < textarea id ="moin-draft-data "> {{ draft_data }}</ textarea >
133
+ {%- endif %}
134
+ {%- if lock_duration -%}
135
+ < input id ="moin-lock_duration " value ="{{ lock_duration }} ">
136
+ {%- endif %}
127
137
< input id ="moin-item-name " value ="{{ fqname }} " >
128
138
{% endblock %}
You can’t perform that action at this time.
0 commit comments