templates/website/user/receiver/receiver-form-step-address.html.twig line 1

Open in your IDE?
  1. {% from 'utils.html.twig' import ico, switch %}
  2. {# MODO DE EXIBIÇÃO TIPO PESSOA #}
  3. {% if addressType is not defined %}
  4.     {% set addressType = '' %}
  5. {% endif %}
  6. {% set addressTypeEdit = (
  7.     receiverEdit ? (addressType ? receiverPartnerEdit : receiverEdit) : false
  8. ) %}
  9. <div class="cp-cols">
  10.     {# ZIP CODE #}
  11.     <div class="cp cp-3">
  12.         <label for="zipCode{{ addressType }}">{{ getLanguage('zipcode', 'profile') }}{{ req|raw }}</label>
  13.         <input type="text" id="{{ (addressType) ? 'partner-' }}receiver-zipCode" name="zipCode{{ addressType }}" class="js--input-form" placeholder="{{ getLanguage('enter_zip_code', 'profile') }}" data-apply-search="true" value="{{ addressTypeEdit? addressTypeEdit.zipCode }}" required>
  14.     </div>
  15.     {# COUNTRY #}
  16.     <input class="receiver-country" type="checkbox" id="{{ (addressType) ? 'partner-' }}receiver-country" name="country{{ addressType }}" value="1" readonly checked />
  17.     {# STATE #}
  18.     <div class="cp cp-3" data-show-brazil>
  19.         <label for="state{{ addressType }}">{{ getLanguage('state', 'profile') }}{{ req|raw }}</label>
  20.         <div class="select-wrap">
  21.             <select id="{{ (addressType) ? 'partner-' }}receiver-state"
  22.                 name="state{{ addressType }}"
  23.                 class="custom-select custom-select--search js--select-form"
  24.                 request="{{ path('stateList') }}" 
  25.                 save="{{ (addressTypeEdit and addressTypeEdit.state is not empty) ? addressTypeEdit.state.id }}"
  26.                 required="required">
  27.                 <option value="">{{ getLanguage('select_state', 'profile') }}</option>
  28.                 <option value="other">{{ getLanguage('other', 'profile') }}</option>
  29.             </select>
  30.             <i class="loader">{{ ico('loader-wish') }}</i>
  31.         </div>
  32.     </div>
  33.     {# CITY #}
  34.     <div class="cp cp-3" data-show-brazil>
  35.         <label for="city{{ addressType }}">{{ getLanguage('city', 'profile') }}{{ req|raw }}</label>
  36.         <div class="select-wrap">
  37.             <select id="{{ (addressType) ? 'partner-' }}receiver-city"
  38.                 name="city{{ addressType }}" 
  39.                 class="custom-select custom-select--search js--select-form"
  40.                 request="{{ path('cityList') }}" 
  41.                 save="{{ (addressTypeEdit and addressTypeEdit.city is not empty)? addressTypeEdit.city.id }}"
  42.                 required="required">
  43.                 <option value="">{{ getLanguage('select_city', 'profile') }}</option>
  44.                 <option value="other">{{ getLanguage('other', 'profile') }}</option>
  45.             </select>
  46.             <i class="loader">{{ ico('loader-wish') }}</i>
  47.         </div>
  48.     </div>
  49.     {# ADDRESS #}
  50.     <div class="cp cp-3 receiver-address">
  51.         <label for="address{{ addressType }}">{{ getLanguage('address', 'profile') }}{{ req|raw }}</label>
  52.         <input type="text" id="{{ (addressType) ? 'partner-' }}receiver-address" name="address{{ addressType }}" 
  53.         class="js--input-form" placeholder="{{ getLanguage('type_your_address', 'receiver') }}" 
  54.         value="{{ addressTypeEdit? addressTypeEdit.address }}" required>
  55.     </div>
  56.     {# NUMBER #}
  57.     <div class="cp cp-4">
  58.         <label for="addressNumber{{ addressType }}">{{ getLanguage('number', 'profile') }}{{ req|raw }}</label>
  59.         <input type="text" id="{{ (addressType) ? 'partner-' }}receiver-addressNumber" name="addressNumber{{ addressType }}" 
  60.         class="js--input-form" placeholder="{{ getLanguage('type_your_number', 'receiver') }}" 
  61.         value="{{ addressTypeEdit? addressTypeEdit.addressNumber }}" required>
  62.     </div>
  63.     {# NEIGHBORHOOD #}
  64.     <div class="cp cp-3">
  65.         <label for="addressNeighborhood{{ addressType }}">{{ getLanguage('district', 'profile') }}{{ req|raw }}</label>
  66.         <input type="text" id="{{ (addressType) ? 'partner-' }}receiver-addressNeighborhood" name="addressNeighborhood{{ addressType }}" 
  67.         class="js--input-form" placeholder="{{ getLanguage('enter_district', 'receiver') }}" 
  68.         value="{{ addressTypeEdit? addressTypeEdit.addressNeighborhood }}" required>
  69.     </div>
  70.     {# COMPLEMENT #}
  71.     <div class="cp cp-2">
  72.         <label for="addressComplement{{ addressType }}">{{ getLanguage('complement', 'profile') }}</label>
  73.         <input type="text" id="{{ (addressType) ? 'partner-' }}receiver-addressComplement" name="addressComplement{{ addressType }}" 
  74.         class="js--input-form" placeholder="{{ getLanguage('type_your_complement', 'receiver') }}" 
  75.         value="{{ addressTypeEdit? addressTypeEdit.addressComplement }}">
  76.     </div>
  77.     {# REFERENCE POINT #}
  78.     <div class="cp cp-2">
  79.         <label for="addressReferencePoint{{ addressType }}">{{ getLanguage('reference_point', 'receiver') }}</label>
  80.         <input type="text" id="{{ (addressType) ? 'partner-' }}receiver-addressReferencePoint" name="addressReferencePoint{{ addressType }}" 
  81.         class="js--input-form" placeholder="{{ getLanguage('type_your_reference_point', 'receiver') }}" 
  82.         value="{{ addressTypeEdit? addressTypeEdit.addressReferencePoint }}">
  83.     </div>
  84. </div>