Debian Codegraph @

sat_templates/templates/bulma/blog/publish.html

raw symbols SCIP
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">
10 {% if publish_title is defined %}
11 {{ publish_title }}
12 {% else %}
13 {% trans %}New blog post{% endtrans %}
14 {% endif %}
15 </p>
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">
28 {% call form.form(id=post_form_id or "blog_post_edit", class="is-flex-grow-1") %}
29 {{ field.text("title", title_label or _("title"), required=title_required, help=_("title is optional") if not title_required)}}
30 {% if not no_tabs %}
31 {{ field.text("tags", _("tags"), placeholder=_("tags are comma separated"))}}
32 {% endif %}
33 {{ field.textarea("body", body_label, rows=12, cols=none, help=_("You can use markdown syntax"),
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 %}