# HG changeset patch # User Goffi # Date 1619706602 -7200 # Node ID b9e04a8a45c3feb69caa06c3b86c98329123e9da # Parent 45499870bbf46cde6b5203be442b9ec2c790fe72 bulma (blog): new publish template: This template let edit title, tags and body, and show a preview if JS is available. diff -r 45499870bbf4 -r b9e04a8a45c3 sat_templates/templates/bulma/blog/publish.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/blog/publish.html Thu Apr 29 16:30:02 2021 +0200 @@ -0,0 +1,33 @@ +{% if not embedded %}{% extends 'base/base.html' %}{% endif %} +{% import 'input/textbox.html' as textbox with context %} +{% import 'blog/macros.html' as blog with context %} +{% import 'input/form.html' as form with context %} +{% import 'input/field.html' as field with context %} + +{% block body %} +
+

New blog post

+

+ + {% trans %}edit{% endtrans %} + + + + {% trans %}preview{% endtrans %} + +

+
+ {% 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"), + required=true) }} + {{ field.submit(_("Publish"), class="is-fullwidth is-outlined has-text-weight-bold") }} + {% endcall %} +
+
+
+
+{% endblock body %}