<div class="aviso sucesso">
<p>{{ getLanguage('secure_page', 'profile') }}</p>
</div>
<div class="profile-payment">
<h2>{{ getLanguage('my_cards', 'profile') }}</h2>
{% embed 'website/includes/list-pagination.html.twig' with
{
tableId: 'table-user-cards',
colNumber: 6,
useSearch: false,
}
%}
{% block thContent %}
<th data-order-status="" data-order-field="uc.cardFlag" data-label="{{ getLanguage('flag', 'profile') }}"></th>
<th data-order-status="" data-order-field="uc.cardName" data-label="{{ getLanguage('name', 'profile') }}"></th>
<th data-order-status="" data-order-field="uc.digitsStart" data-label="{{ getLanguage('number', 'profile') }}"></th>
<th data-order-status="" data-order-field="uc.dateExpire" data-label="{{ getLanguage('expiration_date', 'profile') }}"></th>
<th class="action" data-dont-order="true" data-label="{{ getLanguage('main', 'profile') }}"></th>
<th class="action" data-dont-order="true" data-label="{{ getLanguage('exclude', 'profile') }}"></th>
{% endblock %}
{% block vazio %}{{ getLanguage('empty_no', 'profile') }} <b>{{ getLanguage('card', 'profile') }}</b> {{ getLanguage('found', 'profile') }}.{% endblock %}
{% endembed %}
<p class="tx-centro">
<button class="btn-continuar-peq js--modal-abre" data-modal="modal-add-credit-card">
{% include 'svg/check-circle.svg' %} {{ getLanguage('add_card', 'profile') }}
</button>
</p>
<hr class="sep">
<h2>{{ getLanguage('billing', 'profile')|title }}</h2>
{% embed 'website/includes/list-pagination.html.twig' with
{
tableId: 'table-user-data-checkout',
colNumber: 7,
useSearch: false,
}
%}
{% block thContent %}
<th data-order-status="" data-order-field="ui.name" data-label="{{ getLanguage('name', 'profile') }}"></th>
<th data-order-status="" data-order-field="ui.email" data-label="E-mail"></th>
<th data-order-status="" data-order-field="ui.document" data-label="{{ getLanguage('document', 'profile') }}"></th>
<th data-order-status="" data-order-field="ui.address" data-label="{{ getLanguage('address', 'profile') }}"></th>
<th class="action" data-dont-order="true" data-label="{{ getLanguage('main', 'profile') }}"></th>
<th class="action" data-dont-order="true" data-label="{{ getLanguage('edit', 'profile')|capitalize }}"></th>
<th class="action" data-dont-order="true" data-label="{{ getLanguage('exclude', 'profile') }}"></th>
{% endblock %}
{% block vazio %}{{ getLanguage('empty_no', 'profile') }} <b>{{ getLanguage('billing', 'profile') }}</b> {{ getLanguage('found', 'profile') }}.{% endblock %}
{% endembed %}
<p class="tx-centro">
<button class="btn-continuar-peq js--modal-abre" data-modal="modal-user-info-checkout" data-modal-mode="create">
{% include 'svg/check-circle.svg' %} {{ getLanguage('add_billing', 'profile') }}
</button>
</p>
</div>
{# MODAL -- CARTÃO #}
{% embed "website/includes/modal.html.twig" with {'id': 'modal-add-credit-card', 'title': getLanguage('add_card_title', 'profile'), 'classes': 'modal-card'}%}
{% block content %}
{% from 'utils.html.twig' import ico %}
<form id="formUserCard" action="{{ path('userCardRegister') }}" method="POST" class="form-geral form-col-4 form-add-card">
<div class="cp-cols">
<div class="cp cp-0">
<label for="card-number">{{ getLanguage('card_number', 'profile') }}</label>
<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">
</div>
<div class="cp cp-0">
<label for="card-name">{{ getLanguage('name', 'profile') }} <small>({{ getLanguage('name_on_card', 'profile') }})</small></label>
<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">
</div>
<div class="cp cp-4-2">
<label for="card-month">{{ getLanguage('due_date', 'profile') }}</label>
<div class="cp-mes-ano">
{# MÊS #}
<div>
<select id="card-month" name="card-month" required="">
<option value="" selected="selected">MM</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
</div>
{# ANO #}
{% set anoAtual = ('now' | date('Y')) + 0 %}
{% set anos = range(anoAtual, anoAtual + 10) %}
<div>
<select id="card-year" name="card-year" required="">
<option value="" selected="selected">AA</option>
{% for ano in anos %}
<option value="{{ ano[-2:] }}">{{ ano[-2:] }}</option>
{% endfor %}
</select>
</div>
</div>
</div>
<div class="cp cp-4-2">
<label for="card-cvv">{{ getLanguage('code_of_security', 'profile') }}</label>
<input type="text" maxlength="4" id="card-cvv" class="card_cvv" name="card-cvv" placeholder="CVC" required="required" autocomplete="cc-csc">
</div>
</div>
<nav class="actions">
<button type="button" class="js--modal-fecha cancel">{{ getLanguage('cancel', 'profile') }}</button>
<button type="button" id="btnFormUserCard" class="btn-continuar-peq btn-load">
<span>{% include 'svg/check-circle.svg' %} {{ getLanguage('add_card', 'profile') }}</span>
<span>{{ getLanguage('wait', 'util') }}… <i class="loader">{{ ico('loader-wish') }}</i></span>
</button>
</nav>
</form>
{% endblock %}
{% endembed %}
{# MODAL -- USER INFO CHECKOUT #}
{% include 'website/user/userInfoCheckout/user-info-checkout-modal.html.twig' with { reqAddress: true }%}