Mercurial > libervia-templates
annotate sat_templates/templates/bulma/blog/publish.html @ 401:0e454358ca49
bulma: update `bulma` to version `1.0.2`
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 02 Oct 2024 17:23:03 +0200 |
parents | 580fa5482e88 |
children |
rev | line source |
---|---|
320 | 1 {% if not embedded %}{% extends 'base/base.html' %}{% endif %} |
2 {% import 'input/textbox.html' as textbox with context %} | |
3 {% import 'blog/macros.html' as blog with context %} | |
4 {% import 'input/form.html' as form with context %} | |
5 {% import 'input/field.html' as field with context %} | |
6 | |
7 {% block body %} | |
8 <div class="panel is-primary mt-4"> | |
324
580fa5482e88
bulma (blog/publish): make the template more customisable
Goffi <goffi@goffi.org>
parents:
320
diff
changeset
|
9 <p class="panel-heading"> |
580fa5482e88
bulma (blog/publish): make the template more customisable
Goffi <goffi@goffi.org>
parents:
320
diff
changeset
|
10 {% if publish_title is defined %} |
580fa5482e88
bulma (blog/publish): make the template more customisable
Goffi <goffi@goffi.org>
parents:
320
diff
changeset
|
11 {{ publish_title }} |
580fa5482e88
bulma (blog/publish): make the template more customisable
Goffi <goffi@goffi.org>
parents:
320
diff
changeset
|
12 {% else %} |
580fa5482e88
bulma (blog/publish): make the template more customisable
Goffi <goffi@goffi.org>
parents:
320
diff
changeset
|
13 {% trans %}New blog post{% endtrans %} |
580fa5482e88
bulma (blog/publish): make the template more customisable
Goffi <goffi@goffi.org>
parents:
320
diff
changeset
|
14 {% endif %} |
580fa5482e88
bulma (blog/publish): make the template more customisable
Goffi <goffi@goffi.org>
parents:
320
diff
changeset
|
15 </p> |
320 | 16 <p class="panel-tabs"> |
17 <a class="tab__btn click_to_edit is-active" | |
18 href="#"> | |
19 {% trans %}edit{% endtrans %} | |
20 </a> | |
21 | |
22 <a class="tab__btn click_to_preview nojs_hide" | |
23 href="#"> | |
24 {% trans %}preview{% endtrans %} | |
25 </a> | |
26 </p> | |
27 <div id="tab_edit" class="panel-block is-active tab__page state_clicked"> | |
324
580fa5482e88
bulma (blog/publish): make the template more customisable
Goffi <goffi@goffi.org>
parents:
320
diff
changeset
|
28 {% call form.form(id=post_form_id or "blog_post_edit", class="is-flex-grow-1") %} |
580fa5482e88
bulma (blog/publish): make the template more customisable
Goffi <goffi@goffi.org>
parents:
320
diff
changeset
|
29 {{ field.text("title", title_label or _("title"), required=title_required, help=_("title is optional") if not title_required)}} |
580fa5482e88
bulma (blog/publish): make the template more customisable
Goffi <goffi@goffi.org>
parents:
320
diff
changeset
|
30 {% if not no_tabs %} |
580fa5482e88
bulma (blog/publish): make the template more customisable
Goffi <goffi@goffi.org>
parents:
320
diff
changeset
|
31 {{ field.text("tags", _("tags"), placeholder=_("tags are comma separated"))}} |
580fa5482e88
bulma (blog/publish): make the template more customisable
Goffi <goffi@goffi.org>
parents:
320
diff
changeset
|
32 {% endif %} |
580fa5482e88
bulma (blog/publish): make the template more customisable
Goffi <goffi@goffi.org>
parents:
320
diff
changeset
|
33 {{ field.textarea("body", body_label, rows=12, cols=none, help=_("You can use markdown syntax"), |
320 | 34 required=true) }} |
35 {{ field.submit(_("Publish"), class="is-fullwidth is-outlined has-text-weight-bold") }} | |
36 {% endcall %} | |
37 </div> | |
38 <div id="tab_preview" class="panel-block tab__page"> | |
39 </div> | |
40 </div> | |
41 {% endblock body %} |