Mercurial > libervia-templates
comparison sat_templates/templates/bulma/blog/publish.html @ 320:b9e04a8a45c3
bulma (blog): new publish template:
This template let edit title, tags and body, and show a preview if JS is available.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 29 Apr 2021 16:30:02 +0200 |
parents | |
children | 580fa5482e88 |
comparison
equal
deleted
inserted
replaced
319:45499870bbf4 | 320:b9e04a8a45c3 |
---|---|
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"> | |
9 <p class="panel-heading">New blog post</p> | |
10 <p class="panel-tabs"> | |
11 <a class="tab__btn click_to_edit is-active" | |
12 href="#"> | |
13 {% trans %}edit{% endtrans %} | |
14 </a> | |
15 | |
16 <a class="tab__btn click_to_preview nojs_hide" | |
17 href="#"> | |
18 {% trans %}preview{% endtrans %} | |
19 </a> | |
20 </p> | |
21 <div id="tab_edit" class="panel-block is-active tab__page state_clicked"> | |
22 {% call form.form(id="blog_post_edit", class="is-flex-grow-1") %} | |
23 {{ field.text("title", _("title"), help=_("title is optional"))}} | |
24 {{ field.text("tags", _("tags"), placeholder=_("tags are comma separated"))}} | |
25 {{ field.textarea("body", "", rows=12, cols=none, help=_("You can use markdown syntax"), | |
26 required=true) }} | |
27 {{ field.submit(_("Publish"), class="is-fullwidth is-outlined has-text-weight-bold") }} | |
28 {% endcall %} | |
29 </div> | |
30 <div id="tab_preview" class="panel-block tab__page"> | |
31 </div> | |
32 </div> | |
33 {% endblock body %} |