# HG changeset patch # User Goffi # Date 1614455492 -3600 # Node ID 605bce1df126c576a35307d9a3c9ede180f65843 # Parent 206a98e3d06b0e27b612a2cb00e6383a78b58497 bulma (input/field): icon can now be specified with `submit` macro diff -r 206a98e3d06b -r 605bce1df126 sat_templates/templates/bulma/input/field.html --- a/sat_templates/templates/bulma/input/field.html Sat Feb 27 20:50:52 2021 +0100 +++ b/sat_templates/templates/bulma/input/field.html Sat Feb 27 20:51:32 2021 +0100 @@ -114,13 +114,20 @@ {% endmacro %} -{% macro submit(text=_("Send"), id=none, class='', attrs=none) %} +{% macro submit(text=_("Send"), id=none, class="", icon=none, attrs=none) %} {# submit button @param text(str): label of the button @param id(none, str): id of the element #}
- {{text}} + + {{text}} + {% if icon %} + + + + {% endif %} +
{% endmacro %}