diff sat_templates/templates/bulma/input/textbox.html @ 296:fbea1b9a558f

bulma: new search box, used in blog for now
author Goffi <goffi@goffi.org>
date Thu, 10 Dec 2020 11:29:04 +0100
parents 80cfec962b1e
children
line wrap: on
line diff
--- a/sat_templates/templates/bulma/input/textbox.html	Fri Nov 27 12:24:03 2020 +0100
+++ b/sat_templates/templates/bulma/input/textbox.html	Thu Dec 10 11:29:04 2020 +0100
@@ -77,3 +77,11 @@
         </div>
     {% endif %}
 {% endmacro %}
+
+{% macro search() %}
+    {% call form.form(method="get", use_csrf_token=false) %}
+        {% call field.text("search", class="has-addons", required=true, icon_left="search") %}
+            {{ field.submit(_("Search")) }}
+        {% endcall %}
+    {% endcall %}
+{% endmacro %}