Mercurial > libervia-templates
comparison default/input/field.html @ 116:da8f1ba9034d
input/comment: renamed "comment" library to "textbox", and made it more generic
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 30 Jan 2018 07:47:23 +0100 |
parents | 92ca411ee635 |
children |
comparison
equal
deleted
inserted
replaced
115:5d9e2270ceb4 | 116:da8f1ba9034d |
---|---|
34 <span class="form_input"> | 34 <span class="form_input"> |
35 <label for="{{name|next_gidx}}">{{label}}</label><input id="{{name|cur_gidx}}" type="email" name="{{name}}" {{"required" if required}} {{kwargs|xmlattr}}> | 35 <label for="{{name|next_gidx}}">{{label}}</label><input id="{{name|cur_gidx}}" type="email" name="{{name}}" {{"required" if required}} {{kwargs|xmlattr}}> |
36 </span> | 36 </span> |
37 {% endmacro %} | 37 {% endmacro %} |
38 | 38 |
39 {% macro textarea(name, rows=10, cols=50, placeholder='') %} | 39 {% macro textarea(name, rows=10, cols=50, placeholder='', required=false) %} |
40 <textarea name="{{name}}" rows="{{rows}}" cols="{{cols}}" placeholder="{{placeholder}}"></textarea> | 40 <textarea name="{{name}}" rows="{{rows}}" cols="{{cols}}" placeholder="{{placeholder}}" {{"required" if required}}></textarea> |
41 {% endmacro %} | 41 {% endmacro %} |
42 | 42 |
43 {% macro meta(name, value) %} | 43 {% macro meta(name, value) %} |
44 <input type="hidden" name="{{name}}" value="{{value}}"> | 44 <input type="hidden" name="{{name}}" value="{{value}}"> |
45 {% endmacro %} | 45 {% endmacro %} |