{# -- Textarea Form Field Component -- This component makes it easier to use textarea fields in a form. It will implement all necessary accessibility best-practices and field validation for you. Properties: * id (required) - The id attriute of the textarea field. * name (required) - The name attribute of the textarea field. * label (optional) - The text content of the field label. * value (optional) - The initial value of the field. * placeholder (optional) - The placeholder attribute of the textarea field. * minlength (optional) - The minlength attribute of the textarea field. * maxlength (optional) - The maxlength attribute of the textarea field. * rows (optinal) - The rows attribute of the textarea field. * disabled (optional) - The disabled attribute of the textarea field. * validationRules (optional) - A comma-separated list of rules the field should be validated against via client validation. * violationPath (optional) - The key under which validation errors are stored within the response of a server validation. * additionalClass (optional) - Additional css class names that are added to the form-group wrapper element. * additionalInputClass (optional) - Additional css class names that are added to the textarea element. * attributes (optional) - Additional attributes that are added to the textarea element. #} {% block component_form_textarea %} {% set isInvalid = false %} {% if (violationPath is not empty and formViolations.getViolations(violationPath) is not empty) or error is not empty %} {% set isInvalid = true %} {% endif %} {% set feedbackId = "#{id}-feedback" %} {% set descriptionId = "#{id}-description" %} {% set areaDescribedBy = "#{feedbackId}" %} {% if description is not empty %} {% set areaDescribedBy = "#{descriptionId} #{feedbackId}" %} {% endif %}