Mercurial > libervia-templates
changeset 46:0520b7c9dcc0
input/field: text can be specified for submit button
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 24 Sep 2017 16:47:12 +0200 |
parents | 9d75eeb2e933 |
children | 7d5cca978eeb |
files | default/input/field.html |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/default/input/field.html Thu Jul 13 19:26:46 2017 +0200 +++ b/default/input/field.html Sun Sep 24 16:47:12 2017 +0200 @@ -26,6 +26,6 @@ <input type="hidden" name="{{name}}" value="{{value}}"> {% endmacro %} -{% macro submit() %} - <input type="submit" value="{{_("Send")}}"> +{% macro submit(text=_("Send")) %} + <input class="form_submit" type="submit" value="{{text}}"> {% endmacro %}