# HG changeset patch # User Goffi # Date 1498328654 -7200 # Node ID 4bf00291b89500909928ea9176bc3af9252f4725 # Parent 38328c57f3efc7a49122c017b66985352bff6c7d input/comment: use new textarea field diff -r 38328c57f3ef -r 4bf00291b895 default/input/comment.html --- a/default/input/comment.html Sat Jun 24 20:23:40 2017 +0200 +++ b/default/input/comment.html Sat Jun 24 20:24:14 2017 +0200 @@ -1,4 +1,5 @@ {% 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 #} @@ -7,10 +8,6 @@ {% endmacro %} -{% macro body(rows=10, cols=50) %} - -{% endmacro %} - {% macro submit() %} {% endmacro %} @@ -18,7 +15,7 @@ {% macro comment(service, node, action='') %} {% call form.form(action=action) %} {{ head(service, node) }} - {{ body() }} + {{ field.textarea("body", placeholder=_("Your comment")) }} {{ submit() }} {% endcall %} {% endmacro %}