{% import 'input/form.html' as form with context %}
{% import 'input/field.html' as field with context %}
{% macro head(service, node, type="textbox") %}
{# include data needed to identify the node to use for commenting #}
{% endmacro %}
{% macro textbox(service, node, action='', placeholder='',
submit_label=_("Send"), type="textbox",
class='', ta_class='') %}
{# generic content area for comments/blog posts/etc.
Only a body by default, but new elements can be
added by using this macro with call #}
{% set extra_content = caller() if caller is defined else '' %}
{% call form.form(action=action, class="textbox " + class) %}
{{ head(service, node, type) }}
{{ extra_content }}