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

Open in your IDE?
  1. {% block cms_form_select_salutation_content %}
  2.     <div class="form-group {{ additionalClass }}">
  3.         {% block cms_form_select_salutation_content_label %}
  4.             <label class="form-label" for="form-Salutation">
  5.                 {{ "account.personalSalutationLabel"|trans }}{% if required %} {{ "general.required"|trans }}{% endif %}
  6.             </label>
  7.         {% endblock %}
  8.         {% block cms_form_select_salutation_content_select %}
  9.             <select name="salutationId"
  10.                     id="form-Salutation"
  11.                     {% if required %}required="required"{% endif %}
  12.                     class="{{ formSelectClass }} contact-select{% if formViolations.getViolations('/salutationId') %} is-invalid{% endif %}">
  13.                 {% if not data.get('salutationId') %}
  14.                     <option disabled="disabled" selected="selected" value="">
  15.                         {{ "account.personalSalutationPlaceholder"|trans }}
  16.                     </option>
  17.                 {% endif %}
  18.                 {% for salutation in element.data %}
  19.                     <option value="{{ salutation.id }}">
  20.                         {{ salutation.displayName }}
  21.                     </option>
  22.                 {% endfor %}
  23.             </select>
  24.             {% if formViolations.getViolations('/salutationId') is not empty %}
  25.                 {% sw_include '@Storefront/storefront/utilities/form-violation.html.twig'
  26.                     with { violationPath: '/salutationId' }
  27.                 %}
  28.             {% endif %}
  29.         {% endblock %}
  30.     </div>
  31. {% endblock %}