templates/web/customer/form_field/select.twig line 1

Open in your IDE?
  1. {##
  2.  # Common selector
  3.  #}
  4. <span class="input-field-wrapper {{ this.getWrapperClass() }}">
  5. <select {{ this.getAttributesCode()|raw }}>
  6.   {{ this.displayCommentedData(this.getCommentedData()) }}
  7.   {% for optionValue, optionLabel in this.getOptions() %}
  8.     {% if this.isGroup(optionLabel) %}
  9.       <optgroup {{ this.getOptionGroupAttributesCode(optionValue, optionLabel)|raw }}>
  10.         {% for optionValue2, optionLabel2 in optionLabel.options %}
  11.           <option {{ this.getOptionAttributesCode(optionValue2, optionLabel2)|raw }}>{{ optionLabel2 }}</option>
  12.         {% endfor %}
  13.       </optgroup>
  14.     {% else %}
  15.       <option {{ this.getOptionAttributesCode(optionValue, optionLabel)|raw }}>{{ optionLabel }}</option>
  16.     {% endif %}
  17.   {% endfor %}
  18. </select>
  19. </span>