Mercurial > libervia-templates
view default/input/comment.html @ 44:580670430fa2
blog/item: expand/reduce improvments:
- only expand_box is now clickable, not the whole article anymore, avoiding unwanted click
- when in .clicked state, message is "Click to reduce" instead of "expand"
- in .clicked state, expand_box is only visible on :hover
- in .clicked state, and expand_box is available at top and bottom
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 13 Jul 2017 19:23:02 +0200 |
parents | eb9a42fca6c8 |
children | 102356338118 |
line wrap: on
line source
{% import 'input/form.html' as form with context %} {% import 'input/field.html' as field %} {% macro head(service, node) %} {# include data needed to identify the node to use for commenting #} <input type="hidden" name="type" value="comment"> <input type="hidden" name="service" value="{{service}}"> <input type="hidden" name="node" value="{{node}}"> {% endmacro %} {% macro submit() %} <input type="submit" value="{{_("Send")}}"> {% endmacro %} {% macro comment(service, node, action='') %} {% call form.form(action=action) %} {{ head(service, node) }} {{ field.textarea("body", placeholder=_("Your comment")) }} {{ submit() }} {% endcall %} {% endmacro %}