templates/website/user/profile/user-profile-payment.html.twig line 1

Open in your IDE?
  1. <div class="aviso sucesso">
  2.     <p>{{ getLanguage('secure_page', 'profile') }}</p>
  3. </div>
  4. <div class="profile-payment">
  5.     <h2>{{ getLanguage('my_cards', 'profile') }}</h2>
  6.     
  7.     {% embed 'website/includes/list-pagination.html.twig' with 
  8.         { 
  9.             tableId: 'table-user-cards',
  10.             colNumber: 6,
  11.             useSearch: false,
  12.         } 
  13.     %}
  14.         {% block thContent %}
  15.             <th data-order-status="" data-order-field="uc.cardFlag" data-label="{{ getLanguage('flag', 'profile') }}"></th>
  16.             <th data-order-status="" data-order-field="uc.cardName" data-label="{{ getLanguage('name', 'profile') }}"></th>
  17.             <th data-order-status="" data-order-field="uc.digitsStart" data-label="{{ getLanguage('number', 'profile') }}"></th>
  18.             <th data-order-status="" data-order-field="uc.dateExpire" data-label="{{ getLanguage('expiration_date', 'profile') }}"></th>
  19.             <th class="action" data-dont-order="true" data-label="{{ getLanguage('main', 'profile') }}"></th>
  20.             <th class="action" data-dont-order="true" data-label="{{ getLanguage('exclude', 'profile') }}"></th>
  21.         {% endblock %}
  22.         {% block vazio %}{{ getLanguage('empty_no', 'profile') }} <b>{{ getLanguage('card', 'profile') }}</b> {{ getLanguage('found', 'profile') }}.{% endblock %}
  23.     {% endembed %}
  24.     <p class="tx-centro">
  25.         <button class="btn-continuar-peq js--modal-abre" data-modal="modal-add-credit-card">
  26.             {% include 'svg/check-circle.svg' %}&ensp;{{ getLanguage('add_card', 'profile') }}
  27.         </button>
  28.     </p>
  29.     <hr class="sep">
  30.     <h2>{{ getLanguage('billing', 'profile')|title }}</h2>
  31.     {% embed 'website/includes/list-pagination.html.twig' with 
  32.         { 
  33.             tableId: 'table-user-data-checkout',
  34.             colNumber: 7,
  35.             useSearch: false,
  36.         }
  37.     %}
  38.         {% block thContent %}
  39.             <th data-order-status="" data-order-field="ui.name" data-label="{{ getLanguage('name', 'profile') }}"></th>
  40.             <th data-order-status="" data-order-field="ui.email" data-label="E-mail"></th>
  41.             <th data-order-status="" data-order-field="ui.document" data-label="{{ getLanguage('document', 'profile') }}"></th>
  42.             <th data-order-status="" data-order-field="ui.address" data-label="{{ getLanguage('address', 'profile') }}"></th>
  43.             <th class="action" data-dont-order="true" data-label="{{ getLanguage('main', 'profile') }}"></th>
  44.             <th class="action" data-dont-order="true" data-label="{{ getLanguage('edit', 'profile')|capitalize }}"></th>
  45.             <th class="action" data-dont-order="true" data-label="{{ getLanguage('exclude', 'profile') }}"></th>
  46.         {% endblock %}
  47.         {% block vazio %}{{ getLanguage('empty_no', 'profile') }} <b>{{ getLanguage('billing', 'profile') }}</b> {{ getLanguage('found', 'profile') }}.{% endblock %}
  48.     {% endembed %}
  49.     <p class="tx-centro">
  50.         <button class="btn-continuar-peq js--modal-abre" data-modal="modal-user-info-checkout" data-modal-mode="create">
  51.             {% include 'svg/check-circle.svg' %}&ensp;{{ getLanguage('add_billing', 'profile') }}
  52.         </button>
  53.     </p>
  54. </div>
  55. {# MODAL -- CARTÃO #}
  56. {% embed "website/includes/modal.html.twig" with {'id': 'modal-add-credit-card', 'title': getLanguage('add_card_title', 'profile'), 'classes': 'modal-card'}%}
  57.     {% block content %}
  58.         {% from 'utils.html.twig' import ico %}
  59.         <form id="formUserCard" action="{{ path('userCardRegister') }}" method="POST" class="form-geral form-col-4 form-add-card">
  60.             <div class="cp-cols">
  61.                 <div class="cp cp-0">
  62.                     <label for="card-number">{{ getLanguage('card_number', 'profile') }}</label>
  63.                     <input type="text" maxlength="19" id="card-number" class="card_number" name="card-number" placeholder="{{ getLanguage('enter_card_number', 'profile') }}" required="required" autocomplete="cc-number">
  64.                 </div>
  65.                 <div class="cp cp-0">
  66.                     <label for="card-name">{{ getLanguage('name', 'profile') }} <small>({{ getLanguage('name_on_card', 'profile') }})</small></label>
  67.                     <input type="text" maxlength="30" id="card-name" class="card_holder_name" name="card-name" placeholder="{{ getLanguage('name_card', 'profile') }}" required="required" autocomplete="cc-name">
  68.                 </div>
  69.                 <div class="cp cp-4-2">
  70.                     <label for="card-month">{{ getLanguage('due_date', 'profile') }}</label>
  71.                     <div class="cp-mes-ano">
  72.                         {# MÊS #}
  73.                         <div>
  74.                             <select id="card-month" name="card-month" required="">
  75.                                 <option value="" selected="selected">MM</option>
  76.                                 <option value="01">01</option>
  77.                                 <option value="02">02</option>
  78.                                 <option value="03">03</option>
  79.                                 <option value="04">04</option>
  80.                                 <option value="05">05</option>
  81.                                 <option value="06">06</option>
  82.                                 <option value="07">07</option>
  83.                                 <option value="08">08</option>
  84.                                 <option value="09">09</option>
  85.                                 <option value="10">10</option>
  86.                                 <option value="11">11</option>
  87.                                 <option value="12">12</option>
  88.                             </select>
  89.                         </div>
  90.                         {# ANO #}
  91.                         {% set anoAtual = ('now' | date('Y')) + 0 %}
  92.                         {% set anos = range(anoAtual, anoAtual + 10) %}
  93.                         <div>
  94.                             <select id="card-year" name="card-year" required="">
  95.                                 <option value="" selected="selected">AA</option>
  96.                                 {% for ano in anos %}
  97.                                     <option value="{{ ano[-2:] }}">{{ ano[-2:] }}</option>
  98.                                 {% endfor %}
  99.                             </select>
  100.                         </div>
  101.                     </div>
  102.                 </div>
  103.                 <div class="cp cp-4-2">
  104.                     <label for="card-cvv">{{ getLanguage('code_of_security', 'profile') }}</label>
  105.                     <input type="text" maxlength="4" id="card-cvv" class="card_cvv" name="card-cvv" placeholder="CVC" required="required" autocomplete="cc-csc">
  106.                 </div>
  107.             </div>
  108.             <nav class="actions">
  109.                 <button type="button" class="js--modal-fecha cancel">{{ getLanguage('cancel', 'profile') }}</button>
  110.                 <button type="button" id="btnFormUserCard" class="btn-continuar-peq btn-load">
  111.                     <span>{% include 'svg/check-circle.svg' %}&nbsp;{{ getLanguage('add_card', 'profile') }}</span>
  112.                     <span>{{ getLanguage('wait', 'util') }}&hellip;&ensp;<i class="loader">{{ ico('loader-wish') }}</i></span>
  113.                 </button>
  114.             </nav>
  115.         </form>
  116.     {% endblock %}
  117. {% endembed %}
  118. {# MODAL -- USER INFO CHECKOUT #}
  119. {% include 'website/user/userInfoCheckout/user-info-checkout-modal.html.twig' with { reqAddress: true }%}