Mercurial > libervia-templates
view default/input/comment.html @ 30:69a2e3bf5e17
blog/item: if item is not in same language as current locale, item is hidden but will be shown on click.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 24 Jun 2017 20:27:12 +0200 |
parents | 4bf00291b895 |
children | eb9a42fca6c8 |
line wrap: on
line source
{% import 'input/form.html' as form %} {% 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 %}