diff sat_templates/templates/bulma/input/field.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 edefc1f25219
children cdf88211b86b
line wrap: on
line diff
--- a/sat_templates/templates/bulma/input/field.html	Fri Nov 27 12:24:03 2020 +0100
+++ b/sat_templates/templates/bulma/input/field.html	Thu Dec 10 11:29:04 2020 +0100
@@ -27,6 +27,9 @@
         {% if help %}
             <p class="help">{{help}}</p>
         {% endif %}
+        {% if caller %}
+            {{ caller() }}
+        {% endif %}
     </div>
 {% endmacro %}
 
@@ -67,7 +70,7 @@
 {% endmacro %}
 
 {% macro text(name, label="", value=none, class='', placeholder=none, required=false, pattern=none, title=none, autocomplete=none, icon_left=none, icon_right=none) %}
-    {{ field("text", name=name, label=label, value=value, class=class, required=required, icon_left=icon_left, icon_right=icon_right, attrs={'placeholder': placeholder, 'pattern': pattern, 'title': title, 'autocomplete': autocomplete}) }}
+    {{ field("text", name=name, label=label, value=value, class=class, required=required, icon_left=icon_left, icon_right=icon_right, attrs={'placeholder': placeholder, 'pattern': pattern, 'title': title, 'autocomplete': autocomplete}, caller=caller) }}
 {% endmacro %}
 
 {% macro password(name, label="", value=none, required=false, minlength=none, icon_left=none, icon_right=none) %}