comparison default/input/comment.html @ 20:8fa2fd2e928e

default: added i18n support
author Goffi <goffi@goffi.org>
date Sun, 21 May 2017 16:10:44 +0200
parents 8cdcbe0d7dee
children 4bf00291b895
comparison
equal deleted inserted replaced
19:422c54e0204a 20:8fa2fd2e928e
6 <input type="hidden" name="service" value="{{service}}"> 6 <input type="hidden" name="service" value="{{service}}">
7 <input type="hidden" name="node" value="{{node}}"> 7 <input type="hidden" name="node" value="{{node}}">
8 {% endmacro %} 8 {% endmacro %}
9 9
10 {% macro body(rows=10, cols=50) %} 10 {% macro body(rows=10, cols=50) %}
11 <textarea name="body" rows="{{rows}}" cols="{{cols}}" placeholder="Your comment"></textarea> 11 <textarea name="body" rows="{{rows}}" cols="{{cols}}" placeholder="{{_("Your comment")}}"></textarea>
12 {% endmacro %} 12 {% endmacro %}
13 13
14 {% macro submit() %} 14 {% macro submit() %}
15 <input type="submit" value="Send"> 15 <input type="submit" value="{{_("Send")}}">
16 {% endmacro %} 16 {% endmacro %}
17 17
18 {% macro comment(service, node, action='') %} 18 {% macro comment(service, node, action='') %}
19 {% call form.form(action=action) %} 19 {% call form.form(action=action) %}
20 {{ head(service, node) }} 20 {{ head(service, node) }}