# HG changeset patch # User Goffi # Date 1619887271 -7200 # Node ID 580fa5482e88b67b25a296a70d0e6cc31cf663a2 # Parent 34b8de7be33628569136ef8f3aa26148693db120 bulma (blog/publish): make the template more customisable diff -r 34b8de7be336 -r 580fa5482e88 sat_templates/templates/bulma/blog/publish.html --- a/sat_templates/templates/bulma/blog/publish.html Thu Apr 29 20:52:17 2021 +0200 +++ b/sat_templates/templates/bulma/blog/publish.html Sat May 01 18:41:11 2021 +0200 @@ -6,7 +6,13 @@ {% block body %}
-

New blog post

+

+ {% if publish_title is defined %} + {{ publish_title }} + {% else %} + {% trans %}New blog post{% endtrans %} + {% endif %} +

@@ -19,10 +25,12 @@

- {% call form.form(id="blog_post_edit", class="is-flex-grow-1") %} - {{ field.text("title", _("title"), help=_("title is optional"))}} - {{ field.text("tags", _("tags"), placeholder=_("tags are comma separated"))}} - {{ field.textarea("body", "", rows=12, cols=none, help=_("You can use markdown syntax"), + {% call form.form(id=post_form_id or "blog_post_edit", class="is-flex-grow-1") %} + {{ field.text("title", title_label or _("title"), required=title_required, help=_("title is optional") if not title_required)}} + {% if not no_tabs %} + {{ field.text("tags", _("tags"), placeholder=_("tags are comma separated"))}} + {% endif %} + {{ field.textarea("body", body_label, rows=12, cols=none, help=_("You can use markdown syntax"), required=true) }} {{ field.submit(_("Publish"), class="is-fullwidth is-outlined has-text-weight-bold") }} {% endcall %}