{{ header }}
<header class="background-white bottom-margin-large bottom-padding-large">
  <div class="container-fluid">
    <div class="row no-space-xs middle-xs">
      <div class="col-xs-12 col-sm-6 col-md">
        <div class="content-box top-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 class="text-x-small text-gray text-decoration-none" href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a>
          {% endfor %}
          </div>
        </div>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-width-auto">
        <div class="content-box top-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 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 %}
    </div>
  </div>
</header>
<div class="container-fluid">
  <div class="row">
    <div class="col-xs-12 col-md-8">
      <div class="content-box background-white shadow-small padding-small">
        <form action="{{ action }}" method="post" class="js-main-form">
          <div class="col-xs-12">
            <div class="content-box">
              <label class="field field-medium">
                <span class="field-label">{{ entry_url_tabela_preco_cadastro }}</span>
                <select class="field-entry bottom-margin-small" name="habilita_url_tabela_preco_cadastro">
                  <option value="1" {{ habilita_url_tabela_preco_cadastro ? 'selected="selected"' :'' }}>{{ text_enabled }}</option>
                  <option value="0" {{ habilita_url_tabela_preco_cadastro ? '' :'selected="selected"' }}>{{ text_disabled }}</option>
                </select>
                <span class="js-copy-content text-x-small text-gray text-word-wrap">{{ url_tabela_preco_cadastro }}</span>
                <span class="js-copy-action text-medium rel">
                  <i class="far fa-clone" aria-hidden="true" title="Copiar"></i>
                </span>
              </label>
            </div>
          </div>
          <div class="col-xs-12">
            <div class="content-box">
              <span class="text-x-small text-dark text-bold">{{ entry_approval }}</span>
              <label class="radio radio-small">
                <input class="radio-entry" type="radio" name="approval" value="1" {{ approval ? 'checked="checked"' : '' }} />
                <span class="radio-text">{{ text_yes }}</span>
              </label>
              <label class="radio radio-small">
                <input class="radio-entry" type="radio" name="approval" value="0" {{ approval ? '' : 'checked="checked"' }}/>
                <span class="radio-text">{{ text_no }}</span>
              </label>
            </div>
          </div>
          <div class="col-xs-6">
            <div class="content-box">
              <label class="field field-medium">
                <span class="field-label">{{ entry_sort_order }}</span>
                <input class="field-entry" type="text" name="sort_order" value="{{ sort_order }}" size="1" />
              </label>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
{{ footer }}
