Skip to content

Commit 72072fa

Browse files
authored
Merge pull request #1993 from roland-ruedenauer/basic-theme-fixes
Basic theme fixes
2 parents fe79293 + 2e2ba05 commit 72072fa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/moin/themes/basic/templates/modify.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ <h1>{{ title }}</h1>
4747
</ul>
4848
<div class="tab-content">
4949
<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 %}
5054
{{ data_editor(form['content_form'], item_name) }}
5155
</div>
5256
<div class="tab-pane active" id="meta">
@@ -124,5 +128,11 @@ <h1>{{ title }}</h1>
124128
{%- if user.scroll_page_after_edit -%}
125129
<br id="moin-scroll-page-after-edit">
126130
{%- 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 %}
127137
<input id="moin-item-name" value="{{ fqname }}" >
128138
{% endblock %}

0 commit comments

Comments
 (0)