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

Open in your IDE?
  1. <div class="cp-cols">
  2.     
  3.     {# BANK #}
  4.     <div class="cp cp-2">
  5.         <label for="receiver-bank">{{ getLanguage('bank', 'receiver') }}{{ req|raw }}</label>
  6.         <select id="receiver-bank" name="bankCode" class="custom-select custom-select--search js--select-form" required>
  7.             <option value="">{{ getLanguage('select_bank', 'receiver') }}</option>
  8.             {% for bank in banksData %}
  9.                 <option value="{{ bank.id }}" {{ (receiverEdit and receiverEdit.bankCode == bank.id)? 'selected' }}>{{ bank.name }}</option>
  10.             {% endfor %}
  11.         </select>
  12.     </div>
  13.     {# BANK ACCOUNT TYPE #}
  14.     <div class="cp cp-2">
  15.         <label class="label-so" for="receiver-bank-account-type">{{ getLanguage('account_type', 'my_order') }}{{ req|raw }}</label>
  16.         <select id="receiver-bank-account-type" name="bankAccountType" class="custom-select js--select-form" required>
  17.             <option value="">{{ getLanguage('account_type_select', 'my_order') }}</option>
  18.             <option value="{{ enum('ReceiverEnum::ACCOUNT_BANK_CC')  }}"{{ (receiverEdit and receiverEdit.bankAccountType == enum('ReceiverEnum::ACCOUNT_BANK_CC'))?  ' selected'}}>{{ getLanguage('account_CC',  'my_order') }}</option>
  19.             <option value="{{ enum('ReceiverEnum::ACCOUNT_BANK_CI')  }}"{{ (receiverEdit and receiverEdit.bankAccountType == enum('ReceiverEnum::ACCOUNT_BANK_CI'))?  ' selected'}}>{{ getLanguage('account_CI',  'my_order') }}</option>
  20.             <option value="{{ enum('ReceiverEnum::ACCOUNT_BANK_CCC') }}"{{ (receiverEdit and receiverEdit.bankAccountType == enum('ReceiverEnum::ACCOUNT_BANK_CCC'))? ' selected'}}>{{ getLanguage('account_CCC', 'my_order') }}</option>
  21.             <option value="{{ enum('ReceiverEnum::ACCOUNT_BANK_CIC') }}"{{ (receiverEdit and receiverEdit.bankAccountType == enum('ReceiverEnum::ACCOUNT_BANK_CIC'))? ' selected'}}>{{ getLanguage('account_CIC', 'my_order') }}</option>
  22.         </select>
  23.     </div>
  24.     {% if formEdit %}
  25.         <div class="box-form-warning">
  26.             <p>
  27.                 <b>{{ getLanguage('attention', 'receiver') }}</b>&thinsp;{{ getLanguage('fill_in', 'receiver') }}
  28.                 {% if receiverEdit %}
  29.                     &thinsp;<b>{{ getDocumentFormat(receiverEdit.documentNumber) }}</b>
  30.                 {% else %}
  31.                     digitado na primeira etapa.
  32.                 {% endif %}
  33.             </p>
  34.         </div>
  35.     {% endif %}
  36.     {# BANK AGENCY #}
  37.     <div class="cp cp-3">
  38.         <div class="cp-bank">
  39.             <label for="receiver-agency">{{ getLanguage('bank_agency', 'receiver') }}{{ req|raw }}</label>
  40.             <label for="receiver-agency-dv">{{ getLanguage('digit', 'receiver') }}</label>
  41.             <input id="receiver-agency" type="text" name="agency" class="bank-code js--input-form" value="{{ receiverEdit? receiverEdit.agency }}" required></input>
  42.             <input id="receiver-agency-dv" type="text" name="agencyDv" class="js--input-form" maxlength="1" value="{{ receiverEdit? receiverEdit.agencyDv }}"></input>
  43.         </div>
  44.     </div>
  45.     {# BANK ACCOUNT #}
  46.     <div class="cp cp-3">
  47.         <div class="cp-bank">
  48.             <label for="receiver-account">{{ getLanguage('account_bank', 'receiver') }}{{ req|raw }}</label>
  49.             <label for="receiver-account-dv">{{ getLanguage('digit', 'receiver') }}</label>
  50.             <input id="receiver-account" type="text" name="account" class="bank-code js--input-form" value="{{ receiverEdit? receiverEdit.account }}" required></input>
  51.             <input id="receiver-account-dv" type="text" name="accountDv" class="js--input-form" maxlength="1" value="{{ receiverEdit? receiverEdit.accountDv }}"></input>
  52.         </div>
  53.     </div>
  54. </div>