{% load i18n %} {% comment %} USAGE: {% include 'mtp_common/forms/textarea.html' with field= only %} optional parameters: input_classes - classes to add to the input element label_classes - classes to add to the label element rows, cols - specify the size of the box value - input element value override instead of default filtered field value (ignored if None) character_count - display number of characters entered and whether limit is exceeded attrs - dict of additional attributes TODO: the widget is not currently configurable {% endcomment %} {% if character_count %}
{% endif %}
{% include 'mtp_common/forms/field-label.html' with field=field label_classes=label_classes only %} {% include 'mtp_common/forms/field-errors.html' with field=field only %}
{% if character_count %}
{% blocktrans trimmed %} You can enter up to {{ character_count }} characters {% endblocktrans %}
{% endif %}