templates/website/user/userInfoCheckout/user-info-checkout-modal.html.twig line 1

Open in your IDE?
  1. {# MODAL -- USER INFO CHECKOUT #}
  2. {% embed "website/includes/modal.html.twig" with {
  3.     'id': 'modal-user-info-checkout',
  4.     'title': getLanguage('add_billing_data', 'profile'),
  5.     'classes': 'modal-wid',
  6. }%}
  7.     {% from 'utils.html.twig' import switch %}
  8.     {% set isBrazilSetup = isBrazilDefault %}
  9.     {# CART COMPLETE REGISTRATION #}
  10.     {% set cartCompReg = cartCompleteRegistration|default(false) %}
  11.     {% block title %}
  12.         <h3>
  13.             <span data-mode-show="create">{{ getLanguage('title_add_new', 'modals') }}</span>
  14.             <span data-mode-show="edit">{{ getLanguage('title_edit', 'modals') }}</span>
  15.             <span data-mode-show="fix">{{ getLanguage('title_complete', 'modals') }}</span>
  16.         </h3>
  17.     {% endblock %}
  18.     {% block content %}
  19.         {% from 'utils.html.twig' import ico %}
  20.         <form 
  21.             id="formUserInfoCheckout"
  22.             class="form-geral"
  23.             data-is-brazil-active="{{ isBrazilSetup? 1 : 0 }}"
  24.             data-save-action="{{ path('registerUserCheckoutInfo') }}" 
  25.             data-edit-action="{{ path('editUserCheckoutInfo', { id: null }) }}" 
  26.             data-save-method="POST"
  27.             data-edit-method="PUT">
  28.             <div class="cp-cols">
  29.                 {# NAME #}
  30.                 <div class="cp cp-2">
  31.                     <label for="fatura-name">{{ getLanguage('name', 'profile') }}<em> *</em></label>
  32.                     <input type="text" id="fatura-name" name="name" placeholder="{{ getLanguage('name_or_company', 'profile') }}" required autofocus="autofocus" maxlength="70">
  33.                 </div>
  34.                 {# EMAIL #}
  35.                 <div class="cp cp-2">
  36.                     <label for="fatura-email">E-mail<em> *</em></label>
  37.                     <input type="email" id="fatura-email" name="email" placeholder="{{ getLanguage('enter_an_email', 'profile') }}" required autofocus="autofocus" maxlength="70">
  38.                 </div>
  39.                 {# PHONE #}
  40.                 <div class="cp cp-4 cp-gd">
  41.                     <label for="fatura-telephone">{{ getLanguage('phone', 'profile') }}<em> *</em></label>
  42.                     <input id="fatura-telephone" type="text" class="intlPhone" name="phone" required>
  43.                 </div>
  44.                 {# IS BRAZILIAN #}
  45.                 <div class="cp cp-pq">
  46.                     <label for="fatura-country">{{ getLanguage('am_brazilian', 'util') }}</label>
  47.                     {{ switch({
  48.                         name: 'country',
  49.                         id: 'fatura-country',
  50.                         checked: isBrazilSetup,
  51.                         attribs: 'class="isBrazil_fatura"',
  52.                     })}}
  53.                 </div>
  54.                 {# DOCUMENT #}
  55.                 <div class="cp cp-2">
  56.                     <label for="fatura-document" data-country="{{ isBrazilDefault? 1:'' }}">{{ getLanguage('document', 'profile') }}<span class="document-type">&nbsp;(CPF&thinsp;/&thinsp;CNPJ)</span><em> *</em></label>
  57.                     <input id="fatura-document" type="text" name="document" required>
  58.                 </div>
  59. {# ////////////////////////////////////////////// #}
  60.                 {# ZIP CODE | CEP #}
  61.                 <div class="cp cp-3">
  62.                     <label for="fatura-zipCode">
  63.                         {{ getLanguage('zipcode', 'profile') }}
  64.                         {% if (cartCompReg) %}<em> *</em>{% endif %}
  65.                     </label>
  66.                     <input id="fatura-zipCode" type="text" name="zipCode" {{ cartCompReg? 'required' }} placeholder="{{ getLanguage('enter_zip_code', 'profile') }}">
  67.                 </div>
  68.                 {# STATE #}
  69.                 <div class="cp cp-3" data-show-brazil>
  70.                     <label for="fatura-state">
  71.                         {{ getLanguage('state', 'profile') }}
  72.                         {% if (cartCompReg) %}<em> *</em>{% endif %}
  73.                     </label>
  74.                     <div class="select-wrap">
  75.                         <select id="fatura-state"
  76.                                 name="state" 
  77.                                 request="{{ path('stateList') }}" 
  78.                                 save=""
  79.                                 class="custom-select custom-select--search"
  80.                                 {{ cartCompReg? 'required' }}>
  81.                             <option value="">{{ getLanguage('select_state', 'profile') }}</option>
  82.                             <option value="other">{{ getLanguage('other', 'profile') }}</option>
  83.                         </select>
  84.                         <i class="loader">{{ ico('loader-wish') }}</i>
  85.                     </div>
  86.                 </div>
  87.                 {# CITY #}
  88.                 <div class="cp cp-3" data-show-brazil>
  89.                     <label for="fatura-city">
  90.                         {{ getLanguage('city', 'profile') }}
  91.                         {% if (cartCompReg) %}<em> *</em>{% endif %}
  92.                     </label>
  93.                     <div class="select-wrap">
  94.                         <select id="fatura-city"
  95.                                 name="city" 
  96.                                 request="{{ path('cityList') }}"
  97.                                 save=""
  98.                                 class="custom-select custom-select--search"
  99.                                 {{ cartCompReg? 'required' }}>
  100.                             <option value="">{{ getLanguage('select_city', 'profile') }}</option>
  101.                             <option value="other">{{ getLanguage('other', 'profile') }}</option>
  102.                         </select>
  103.                         <i class="loader">{{ ico('loader-wish') }}</i>
  104.                     </div>
  105.                 </div>
  106.                 {# ADDRESS #}
  107.                 <div class="cp cp-3-2">
  108.                     <label for="fatura-address">
  109.                         {{ getLanguage('address', 'profile') }}
  110.                         {% if (cartCompReg) %}<em data-show-brazil> *</em>{% endif %}
  111.                     </label>
  112.                     <input id="fatura-address" type="text" name="address" {{ cartCompReg? 'required' }} placeholder="{{ getLanguage('type_your_address', 'profile') }}">
  113.                 </div>
  114.                 {# NUMBER #}
  115.                 <div class="cp cp-3">
  116.                     <label for="fatura-addressNumber">
  117.                         {{ getLanguage('number', 'profile') }}
  118.                         {% if (cartCompReg) %}<em data-show-brazil> *</em>{% endif %}
  119.                     </label>
  120.                     <input id="fatura-addressNumber" type="text" name="addressNumber" class="mask-digits" {{ cartCompReg? 'required' }} placeholder="{{ getLanguage('type_your_number', 'profile') }}">
  121.                 </div>
  122.                 {# COMPLEMENT #}
  123.                 <div class="cp cp-2">
  124.                     <label for="fatura-addressComplement">{{ getLanguage('complement', 'profile') }}</label>
  125.                     <input id="fatura-addressComplement" type="text" name="addressComplement" placeholder="{{ getLanguage('type_your_complement', 'profile') }}" maxlength="110">
  126.                 </div>
  127.                 {# NEIGHBORHOOD #}
  128.                 <div class="cp cp-2">
  129.                     <label for="fatura-addressNeighborhood">
  130.                         {{ getLanguage('district', 'profile') }}
  131.                         {% if (cartCompReg) %}<em> *</em>{% endif %}
  132.                     </label>
  133.                     <input id="fatura-addressNeighborhood" type="text" name="addressNeighborhood" {{ cartCompReg? 'required' }} placeholder="{{ getLanguage('enter_district', 'profile') }}" maxlength="60">
  134.                 </div>
  135. {# ////////////////////////////////////////////// #}
  136.                 {# RECEIVE EMAIL #}
  137.                 <div class="cp cp-br">
  138.                     <label>
  139.                         <input type="checkbox" id="receiveEmail" name="receiveEmail" checked>
  140.                         {{ getLanguage('receive_email', 'profile') }}
  141.                     </label>
  142.                 </div>
  143.             </div>
  144.             <nav class="actions">
  145.                 <button type="button" class="js--modal-fecha cancel">{{ getLanguage('cancel', 'profile') }}</button>
  146.                 <button type="submit" id="btnSaveUserInfoCheckout" class="btn-continuar-peq btn-load">
  147.                     <span id="modalInfoCheckoutBtnLabel">{{ getLanguage('save', 'modals')|upper }}</span>
  148.                     <span>{{ getLanguage('wait', 'util') }}&thinsp;&hellip;&ensp;<i class="loader">{{ ico('loader-wish') }}</i></span>
  149.                 </button>
  150.             </nav>
  151.         </form>
  152.     {% endblock %}
  153. {% endembed %}