{{ 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-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 padding-large shadow-small">
          <label class="field field-medium">
            <span class="field-label">{{ text_tipopessoa }}</span>
            <select class="field-entry" name="valor_minimo_tipopessoa">
              {% for key, type in Type_CadastroPessoa.getEnumList(true) %}
                <option value="{{ key }}" {{ ftr_geral.isSelected(key, valor_minimo_tipopessoa, Type_CadastroPessoa.Tp_Ambos) }}>{{ type }}</option>
              {% endfor %}
            </select>
          </label>
          <label class="field field-medium top-padding-large">
            <span class="field-label">{{ text_valor }}</span>
            <input class="field-entry mask-money" type="text" name="valor_minimo" id="qtde_id" value="{{ valor_minimo }}"/>
            {% if error_valor_minimo %}
              <span class="error">{{ error_valor_minimo }}</span>
            {% endif %}
          </label>
          <label class="field field-medium top-padding-large">
            <span class="field-label">{{ text_valor_status }}</span>
            <select class="field-entry" name="valor_minimo_status" id="status">
              <option  value="1" {{ (valor_minimo_status == 1) ? 'selected' : '' }} >{{ text_valor_minimo_Habilita }} </option>
              <option  value="0" {{ (valor_minimo_status == 1) ? '' : 'selected' }}>{{ text_valor_minimo_Desabilita }} </option>
            </select>
          </label>
        </div>
      </div>
    </div>
  </div>
</form>
{{ footer }}
