vendor/shopware/storefront/Resources/views/storefront/element/cms-element-form/form-components/cms-element-form-textarea.html.twig line 1

Open in your IDE?
  1. {% block cms_element_form_textarea %}
  2.     <div class="form-group {{ additionalClass }}">
  3.         {% block cms_element_form_textarea_label %}
  4.             <label class="form-label" for="form-{{ fieldName }}">
  5.                 {{ label|trans }}{% if required %} {{ "general.required"|trans }}{% endif %}
  6.             </label>
  7.         {% endblock %}
  8.         {% block cms_element_form_textarea_textarea %}
  9.             {% apply spaceless %}
  10.                 <textarea name="{{ fieldName }}"
  11.                           id="form-{{ fieldName }}"
  12.                           placeholder="{{ placeholder|trans }}"
  13.                           {% if rows %}rows="{{ rows }}"{% endif %}
  14.                           {% if required %}required="required"{% endif %}
  15.                           class="form-control{% if formViolations.getViolations( '/' ~ fieldName ) %} is-invalid{% endif %}">
  16.                     {{ data.get(fieldName) }}
  17.                 </textarea>
  18.             {% endapply %}
  19.             {% if formViolations.getViolations( '/' ~ fieldName ) is not empty %}
  20.                 {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig' with {
  21.                     violationPath: ('/' ~ fieldName)
  22.                 } %}
  23.             {% endif %}
  24.         {% endblock %}
  25.     </div>
  26. {% endblock %}