{{ header }}
<div class="background-white bottom-margin-large">
  <div class="container-fluid">
    <div class="row no-space-xs">
      <div class="col-xs-12 col-sm col-md">
        <div class="content-box vertical-padding-large">
          <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>
      <div class="col-xs-12 col-sm-width-auto col-md-width-auto">
        <div class="content-box vertical-padding-x-large flex flex-row middle-xs">
          <a href="{{ cancel }}" class="btn-default btn-medium btn-outline right-margin-small">
						<span>{{ button_cancel }}</span>
					</a>
					<button type="button" class="btn-default btn-medium btn-primary js-submit-main-form">
						<span>{{ button_save }}</span>
					</button>
        </div>
      </div>
      {% if error_warning %}
        <div class="warning full-width">{{ error_warning }}</div>
      {% endif %}
      {% if success %}
        <div class="success full-width">{{ success }}</div>
      {% endif %}
    </div>
  </div>
</div>
<form action="{{ action }}" method="post" class="js-main-form">
  <div class="container-fluid">
    <div class="row no-space-xs">
      <div class="col-xs-12 col-md-6">
        <div class="background-white shadow-small padding-large">
          <label class="field field-medium">
            <span class="field-label">{{ text_tipopessoa }}</span>
            <select class="field-entry" name="tipopessoa">
              {% for key, tipo_pessoa in Type_CadastroPessoa.getEnumList(true) %}
                <option value="{{ key }}" {{ ftr_geral.isSelected(key, tipopessoa, Type_CadastroPessoa.Tp_Ambos) }}>{{ tipo_pessoa }}</option>
              {% endfor %}
            </select>
          </label>
          <label class="field field-medium top-padding-large">
            <span class="field-label">{{ text_maxitem }}</span>
            <input class="field-entry mask-number" type="text" name="qtd_maxitemcart" class="qtde mask-number" id="qtde_id" maxlength="5" value="{{ qtd_maxitemcart }}">
          </label>
          <label class="field field-medium top-padding-large">
            <span class="field-label">{{ text_tipolimite }}</span>
            <select class="field-entry" name="tipolimite">
              {% for key, tipo_limite in Type_LimitacaoItems.getEnumList() %}
                <option value="{{ key }}" {{ ftr_geral.isSelected(key, tipolimite) }}>{{ tipo_limite }}</option>
              {% endfor %}
            </select>
          </label>
          <label class="field field-medium top-padding-large">
            <span class="field-label">{{ text_habmaxitem }}</span>
            <select class="field-entry" name="futuralimitaritem_status">
              {% for key, status in Type_Status.getEnumList() %}
                <option value="{{ key }}" {{ ftr_geral.isSelected(key, futuralimitaritem_status) }}>{{ status }}</option>
              {% endfor %}
            </select>
          </label>
        </div>
      </div>
    </div>
  </div>
</form>