1 {% extends
"base.html" %}
3 {% block title %}{% if page %}{{ _(
"Edit %s") % page.title }}{% else %}{{ _(
"Create A New Page") }}{% end %}{% end block %}
6 {% set help = backend.wiki.get_page(
"/wiki/edit") %}
15 <div class=
"card-body">
16 <h4 class=
"card-title">
17 {% if page %}{{ _(
"Edit %s") % page.title }}{% else %}{{ _(
"Create A New Page") }}{% end %}
20 <form action=
"" method=
"POST">
21 {% raw xsrf_form_html() %}
23 <div class=
"form-group">
24 <textarea class=
"form-control" rows=
"16" name=
"content" placeholder=
"{{ _("Text
") }}"
25 >{% if page and page.markdown %}{{ page.markdown }}{% end %}
</textarea>
28 <div class=
"form-group row">
29 <label class=
"col-sm-4 col-form-label">{{ _(
"What has changed?") }}
</label>
30 <div class=
"col-sm-8">
31 <input type=
"text" class=
"form-control" name=
"changes" required
>
35 {% if page and not page.is_watched_by(current_user) %}
36 <div class=
"form-group form-check">
37 <div class=
"custom-control custom-checkbox">
38 <input type=
"checkbox" class=
"custom-control-input" name=
"watch" id=
"watch" checked
>
39 <label class=
"custom-control-label" for=
"watch">{{ _(
"Watch this page") }}
</label>
42 <small class=
"form-text text-muted">
43 {{ _(
"Get notified when this page is changed") }}
48 <button type=
"submit" class=
"btn btn-primary btn-block">
49 {% if page %}{{ _(
"Save Page") }}{% else %}{{ _(
"Create Page") }}{% end %}