Mercurial > libervia-templates
view default/input/comment.html @ 26:d782227c088d
base/base.html: generate <script> element and include css.js by default
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 24 Jun 2017 20:22:36 +0200 |
parents | 8fa2fd2e928e |
children | 4bf00291b895 |
line wrap: on
line source
{% import 'input/form.html' as form %} {% 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 body(rows=10, cols=50) %} <textarea name="body" rows="{{rows}}" cols="{{cols}}" placeholder="{{_("Your comment")}}"></textarea> {% endmacro %} {% macro submit() %} <input type="submit" value="{{_("Send")}}"> {% endmacro %} {% macro comment(service, node, action='') %} {% call form.form(action=action) %} {{ head(service, node) }} {{ body() }} {{ submit() }} {% endcall %} {% endmacro %}