annotate sat_templates/templates/bulma/blog/publish.html @ 323:34b8de7be336

bulma (base): show breadcrumbs
author Goffi <goffi@goffi.org>
date Thu, 29 Apr 2021 20:52:17 +0200
parents b9e04a8a45c3
children 580fa5482e88
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
320
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
1 {% if not embedded %}{% extends 'base/base.html' %}{% endif %}
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
2 {% import 'input/textbox.html' as textbox with context %}
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
3 {% import 'blog/macros.html' as blog with context %}
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
4 {% import 'input/form.html' as form with context %}
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
5 {% import 'input/field.html' as field with context %}
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
6
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
7 {% block body %}
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
8 <div class="panel is-primary mt-4">
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
9 <p class="panel-heading">New blog post</p>
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
10 <p class="panel-tabs">
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
11 <a class="tab__btn click_to_edit is-active"
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
12 href="#">
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
13 {% trans %}edit{% endtrans %}
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
14 </a>
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
15
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
16 <a class="tab__btn click_to_preview nojs_hide"
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
17 href="#">
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
18 {% trans %}preview{% endtrans %}
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
19 </a>
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
20 </p>
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
21 <div id="tab_edit" class="panel-block is-active tab__page state_clicked">
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
22 {% call form.form(id="blog_post_edit", class="is-flex-grow-1") %}
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
23 {{ field.text("title", _("title"), help=_("title is optional"))}}
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
24 {{ field.text("tags", _("tags"), placeholder=_("tags are comma separated"))}}
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
25 {{ field.textarea("body", "", rows=12, cols=none, help=_("You can use markdown syntax"),
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
26 required=true) }}
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
27 {{ field.submit(_("Publish"), class="is-fullwidth is-outlined has-text-weight-bold") }}
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
28 {% endcall %}
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
29 </div>
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
30 <div id="tab_preview" class="panel-block tab__page">
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
31 </div>
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
32 </div>
b9e04a8a45c3 bulma (blog): new publish template:
Goffi <goffi@goffi.org>
parents:
diff changeset
33 {% endblock body %}