custom/apps/DmitsInquiry/Resources/views/storefront/dmitsform/country.html.twig line 1

Open in your IDE?
  1. {% if config('DmitsInquiry.config.country') %}
  2.     <div class="form-row">
  3.         <div class="col-12">
  4.             <label class="form-label" for="inquiryCountry"">{{  countryLabel }}</label>
  5.              {%  set  countryConfig = ("dmits.inquiry.custom.countryValues"|trans)|split(',') %}
  6.              <select id="inquiryCountry"
  7.                     class="custom-select"
  8.                     name="country"
  9.                     {% if config('DmitsInquiry.config.countryrequired') %}required="required"{% endif %}>
  10.                     <option disabled="disabled"
  11.                             selected="selected"
  12.                             value="">
  13.                         {{  countryLabel }}
  14.                     </option>
  15.                  
  16.                 {% for country in countryConfig %}
  17.                     <option value="{{ country }}">
  18.                         {{ country }}
  19.                     </option>
  20.                 {% endfor %}
  21.             </select>
  22.         </div>
  23.     </div>
  24. {% endif %}