{{ 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>
        </div>
        {% if error_warning %}
          <div class="warning full-width">{{ error_warning }}</div>
        {% endif %}
      </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">{{ desc_pgto }}</span>
			      <input class="field-entry" type="text" name="orcamento_descricao" id="orcamento_descricao" size="60" value="{{ orcamento_descricao }}"/>
            {% if error_orcamento_descricao %}
              <span class="text-error text-x-small">{{ error_orcamento_descricao }}</span>
            {% endif %}
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ instrucoes_orcamento }}</span>
            <textarea name="orcamento_instrucoes" id="orcamento_instrucoes">{{ orcamento_instrucoes ? orcamento_instrucoes : text_instruction }}</textarea>
            {% if error_orcamento_instrucoes %}
              <span class="text-error text-x-small">{{ error_orcamento_instrucoes }}</span>
            {% endif %}
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ tppgto_iniciado }}</span>
            <select class="field-entry" name="orcamento_status_iniciado">
              {% for order_status in order_statuses %}
                <option value="{{ order_status.order_status_id }}" {{ order_status.order_status_id == orcamento_status_iniciado ? 'selected' : '' }}>
                  {{ order_status.name }}
                </option>
              {% endfor %}
            </select>
          </label>
          <label class="field field-medium bottom-margin-large">
            <span class="field-label">{{ tppgto_Baixa }}</span>
            <select class="field-entry" name="orcamento_status_baixa">
              {% for order_status in order_statuses %}
                <option value="{{ order_status.order_status_id }}" {{ order_status.order_status_id == orcamento_status_baixa ? 'selected' : '' }}>
                  {{ order_status.name }}
                </option>
              {% endfor %}
            </select>
          </label>

        </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">{{ orc_status }}</span>
            <select class="field-entry" name="orcamento_status">
            {% for key, status in Type_Status.getEnumList() %}
              <option value="{{ key }}" {{ ftr_geral.isSelected(key, orcamento_status) }}>{{ status }}</option>
            {% endfor %}
            </select>
          </label>
          <label class="field field-medium">
            <span class="field-label">{{ entry_display }}</span>
            <select class="field-entry" name="orcamento_display" >
              {% for key, display in Type_DisplayModuleOption.getEnumList() %}
                <option value="{{ key }}" {{ ftr_geral.isSelected(key, orcamento_display, Type_DisplayModuleOption.Tp_Todos) }}>{{ display }}</option>
              {% endfor %}
            </select>
          </label>
        </div>
      </div>

    </div>
  </form>
</div>
{{ footer }}
