{{ header }}
<header class="background-white bottom-margin-large">
  <div class="container-fluid">
    <div class="row no-space-xs">
      <div class="col-xs-12">
        <div class="content-box vertical-padding-large flex between-xs middle-xs">
          <div>
            <span class="text-x-large text-dark">{{ heading_title }}</span>
            <div class="adm-breadcrumb">
              {% for breadcrumb in breadcrumbs %}
                <i class="fas fa-angle-right text-x-small text-gray horizontal-padding-small"></i>
                <a href="{{ breadcrumb.href }}" class="text-x-small text-gray text-decoration-none">{{ breadcrumb.text }}</a>
              {% endfor %}
            </div>
          </div>
          <div class="flex flex-row middle-xs">
            <a href="{{ cancel }}" class="btn-default btn-medium btn-outline right-margin-small">
              <span>{{ button_cancel }}</span>
            </a>
            <button class="btn-default btn-medium btn-primary js-submit-main-form">
              <span>{{ button_save }}</span>
            </button>
          </div>
          {% if error_warning %}
            <div class="warning full-width">{{ error_warning }}</div>
          {% endif %}
        </div>
      </div>
    </div>
  </div>
</header>
<div class="container-fluid">
  <form action="{{ action }}" method="post" class="js-main-form">
    <div class="row">
      <div class="col-xs-12 col-md-8">
        <div class="background-white padding-large bottom-margin-medium shadow-small">
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_cnpj }}</span>
            <input class="field-entry" type="text" name="cielointegradofutura_titulo" value="{{ cielointegradofutura_cnpj }}" placeholder="CNPJ cielo" id="input" readonly/>
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_titulo }}</span>
            <input class="field-entry" type="text" name="cielointegradofutura_titulo" value="{{ cielointegradofutura_titulo }}" placeholder="Nome do meio a mostra ao cliente" id="input"  />
						{% if error_cielointegradofutura_titulo %}
						  <span class="error">{{ error_cielointegradofutura_titulo }}</span>
						{% endif %}
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_chave_mid }}</span>
						<input class="field-entry" type="text" name="cielointegradofutura_id" value="{{ cielointegradofutura_id }}" placeholder="XXXX-XXXX-XXXX-XXXX" id="input-secret"  />
						{% if error_cielointegradofutura_id %}
						  <span class="error">{{ error_cielointegradofutura_id }}</span>
						{% endif %}
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_total_minimo }}</span>
          	<input class="field-entry mask-money" type="text" name="cielointegradofutura_total" value="{{ cielointegradofutura_total }}" placeholder="0.00" id="input-total" />
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_total_minimo_antifraude }}</span>
          	<input class="field-entry mask-money" type="text" name="cielointegradofutura_total_fraude" value="{{ cielointegradofutura_total_fraude }}" placeholder="0.00" id="input-total" />
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_soft_descripto }}</span>
          	<input class="field-entry" type="text" name="cielointegradofutura_soft" value="{{ cielointegradofutura_soft }}" placeholder="MINHALOJA" maxlength="13" id="input-secret"  />
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_aguardando_pagamento }}</span>
						<select class="field-entry" name="cielointegradofutura_in" id="input-order-status" >
						{% for order_status in order_statuses %}
              <option value="{{ order_status.order_status_id }}" {{ order_status.order_status_id == cielointegradofutura_in ? 'selected="selected"' : '' }}>
                {{ order_status.name }}
              </option>
						{% endfor %}
						</select>
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_pago }}</span>
						<select class="field-entry" name="cielointegradofutura_pg" id="input-pending-status" >
						{% for order_status in order_statuses %}
						  <option value="{{ order_status.order_status_id }}" {{ order_status.order_status_id == cielointegradofutura_pg ? 'selected="selected"' : '' }}>
                {{ order_status.name }}
              </option>
						{% endfor %}
						</select>
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_pendente }}</span>
						<select class="field-entry" name="cielointegradofutura_pe" id="input-canceled-status" >
						{% for order_status in order_statuses %}
              <option value="{{ order_status.order_status_id }}" {{ order_status.order_status_id == cielointegradofutura_pe ? 'selected="selected"' : '' }}>
                {{ order_status.name }}
              </option>
						{% endfor %}
						</select>
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_negado }}</span>
						<select class="field-entry" name="cielointegradofutura_ne" id="input-failed-status" >
						{% for order_status in order_statuses %}
              <option value="{{ order_status.order_status_id }}" {{ order_status.order_status_id == cielointegradofutura_ne ? 'selected="selected"' : '' }}>
                {{ order_status.name }}
              </option>
						{% endfor %}
						</select>
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_autorizado }}</span>
						<select class="field-entry" name="cielointegradofutura_au" id="input-chargeback-status" >
						{% for order_status in order_statuses %}
              <option value="{{ order_status.order_status_id }}" {{ order_status.order_status_id == cielointegradofutura_au ? 'selected="selected"' : '' }}>
                {{ order_status.name }}
              </option>
						{% endfor %}
						</select>
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_cancelado }}</span>
						<select class="field-entry" name="cielointegradofutura_ca" id="input-chargeback-status" >
						{% for order_status in order_statuses %}
              <option value="{{ order_status.order_status_id }}" {{ order_status.order_status_id == cielointegradofutura_ca ? 'selected="selected"' : '' }}>
                {{ order_status.name }}
              </option>
						{% endfor %}
						</select>
          </label>
          <div class="bottom-margin-large">
            <span class="text-dark text-bold text-small visible-block">{{ text_url_retorno }}</span>
						<span class="text-small text-gray js-copy-content">{{ ret }}</span>
						<span class="js-copy-action text-medium rel">
							<i class="far fa-clone" aria-hidden="true" title="Copiar"></i>
						</span>
          </div>
          <div class="bottom-margin-large">
            <span class="text-dark text-bold text-small visible-block">{{ text_url_notificacao }}</span>
						<span class="text-small text-gray js-copy-content">{{ notification }}</span>
						<span class="js-copy-action text-medium rel">
							<i class="far fa-clone" aria-hidden="true" title="Copiar"></i>
						</span>
          </div>
          <div>
            <span class="text-dark text-bold text-small visible-block">{{ text_url_status }}</span>
						<span class="text-small text-gray js-copy-content">{{ sta }}</span>
						<span class="js-copy-action text-medium rel">
							<i class="far fa-clone" aria-hidden="true" title="Copiar"></i>
						</span>
          </div>
        </div>
      </div>
      <div class="col-xs-12 col-md-4">
        <div class="background-white padding-large bottom-margin-medium shadow-small">
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_status }}</span>
						<select class="field-entry" name="cielointegradofutura_status" >
              <option value="1" {{ cielointegradofutura_status ? 'selected="selected"' : '' }}>
                {{ text_enabled }}
              </option>
						  <option value="0" {{ cielointegradofutura_status ? '' : 'selected="selected"' }}>
                {{ text_disabled }}
              </option>
						</select>
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ entry_display }}</span>
            <select class="field-entry" name="cielointegradofutura_display" >
              {% for key, display in Type_DisplayModuleOption.getEnumList() %}
                <option value="{{ key }}" {{ ftr_geral.isSelected(key, cielointegradofutura_display, Type_DisplayModuleOption.Tp_Todos) }}>
                  {{ display }}
                </option>
              {% endfor %}
            </select>
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_antifraude }}</span>
						<select class="field-entry" name="cielointegradofutura_fraude" >
              <option value="1" {{ cielointegradofutura_fraude ? 'selected="selected"' : '' }}>
                {{ text_enabled }}
              </option>
              <option value="0"{{ cielointegradofutura_fraude ? '' : 'selected="selected"' }}>
                {{ text_disabled }}
              </option>
						</select>
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_client }}</span>
            <span class="text-x-small text-gray">{{ text_client_obs }}</span>
          	<input class="field-entry" type="text" name="cielointegradofutura_client_teste" value="{{ cielointegradofutura_client_teste }}" placeholder="ID do cliente de teste" id="input"  />
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_ambiente }}</span>
            <span class="text-x-small text-gray">{{ text_ambiente_obs }}</span>
						<select class="field-entry" name="cielointegradofutura_ambiente_teste" >
              <option value="1" {{ cielointegradofutura_ambiente_teste ? 'selected="selected"' : '' }}>
                {{ text_enabled }}
              </option>
              <option value="0" {{ cielointegradofutura_ambiente_teste ? '' : 'selected="selected"' }}>
                {{ text_disabled }}
              </option>
						</select>
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ text_ordem }}</span>
						<input class="field-entry mask-number" type="text" name="cielointegradofutura_sort_order" value="{{ cielointegradofutura_sort_order }}" placeholder="0" id="input-sort-order"  />
						{% if error_cielointegradofutura_sort_order %}
						  <span class="error">{{ error_cielointegradofutura_sort_order }}</span>
						{% endif %}
          </label>
          <label class="field field-medium">
            <span class="field-label">{{ text_zona }}</span>
						<select class="field-entry" name="cielointegradofutura_geo_zone_id" id="input-geo-zone" >
              <option value="0">Todas</option>
              {% for geo_zone in geo_zones %}
                <option value="{{ geo_zone.geo_zone_id }}" {{ geo_zone.geo_zone_id == cielointegradofutura_geo_zone_id ? 'selected="selected"' : '' }}>
                  {{ geo_zone.name }}
                </option>
              {% endfor %}
						</select>
          </label>
        </div>
      </div>
    </div>
  </form>
</div>

{{ footer }}
