Mercurial > libervia-templates
view default/input/field.html @ 16:8cdcbe0d7dee
blog: various appareance improvments:
- use new .box classe
- article as a maxium size and is expandable on click
- display comments in a different way
- author and date are now visible
- responsive design
- placeholders on comment input
- transitions
- various other improvments
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 04 May 2017 01:00:23 +0200 |
parents | 8b5615a1bf3d |
children | d4a8afa7b590 |
line wrap: on
line source
{% macro choices(name, choices_list, checked=none) %} {% for choice in choices_list %} <label><input type="radio" name="{{name}}" value="{{choice}}"{{"checked" if checked==choice}}>{{choice}}</label> {% endfor %} {% endmacro %} {% macro int(name, label="", init=0) %} <label><input type="number" name="{{name}}" value="{{init}}" step="1" min="0">{{label}}</label> {% endmacro %} {% macro meta(name, value) %} <input type="hidden" name="{{name}}" value="{{value}}"> {% endmacro %} {% macro submit() %} <input type="submit" value="Send"> {% endmacro %}