# HG changeset patch # User Goffi # Date 1558901170 -7200 # Node ID bdc578994b97c43998a2ef8dbc58e98ac0b9edf9 # Parent a1fa6744c78e275412a12800a1007067de316d55 input/field: added "select" field for + + @param name: name of the field + @param options_list(list[str, str]): list of name, label of options + @param selected(none, list): list of select elements + @param required(bool): true this field is required + @param multiple(bool): true is multiple selection is possible + #} + +{% endmacro %} + {% macro choices(name, choices_list, checked=none) %} {% for choice, label in choices_list %}
@@ -71,6 +87,11 @@ {% endmacro %} -{% macro submit(text=_("Send")) %} - +{% macro submit(text=_("Send"), id=none) %} + {# submit button + + @param text(str): label of the button + @param id(none, str): id of the element + #} + {% endmacro %}