{{ header }}
<div class="background-white bottom-margin-large" data-info='{ "modules": {{ modules|json_encode() }}, "languagesJS": {{ languageForJS|json_encode() }}, "layouts": {{ layouts|json_encode() }}, "error_limit": {{ error_limit|json_encode() }}, "error_grid_limit": {{ error_grid_limit|json_encode() }}, "error_sort_order": {{ error_sort_order|json_encode() }}, "positions": {{ positions|json_encode() }}, "special_actions": {{ special_actions|json_encode() }} }'>
  <div class="container-fluid">
    <div class="row no-space-xs middle-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="col-xs-12">
          <div class="warning text-error">{{ error_warning }}</div>
        </div>
      {% endif %}
    </div>
  </div>
</div>
<form action="{{ action }}" method="post" class="js-main-form">
	<div class="container-fluid">
    <div class="row">
      <div class="col-xs-12 col-md-8">
        <div class="background-white padding-large shadow-small">
          <label class="field field-medium">
            <span class="field-label required">{{ text_dinamicopcao }}</span>
            <input class="field-entry" type="text" name="fretedinamico_opcao" value="{{ fretedinamico_opcao }}">
            {% if error_fretedinamico_opcao %}
              <span class="text-error text-small">{{ error_fretedinamico_opcao }}</span>
            {% endif %}
          </label>
          <label class="field field-medium">
            <span class="field-label required top-padding-large">{{ text_dinamicopcao_sub }}</span>
            <input class="field-entry" type="text" name="fretedinamico_subopcao" value="{{ fretedinamico_subopcao }}">
            {% if error_fretedinamico_subopcao %}
              <span class="text-error text-small">{{ error_fretedinamico_subopcao }}</span>
            {% endif %}
          </label>
          <label class="field field-medium">
            <span class="field-label required top-padding-large">{{ text_val_visualizacao }}</span>
            <input class="field-entry" type="text" name="fretedinamico_valvisu" value="{{ fretedinamico_valvisu }}">
            {% if error_fretedinamico_valvisu %}
              <span class="text-error text-small">{{ error_fretedinamico_valvisu }}</span>
            {% endif %}
          </label>
          <label class="field field-medium">
            <span class="field-label required top-padding-large">{{ text_val_calculo }}</span>
            <input class="field-entry mask-money" type="text" name="fretedinamico_valcalc" value="{{ fretedinamico_valcalc }}">
            {% if error_fretedinamico_valcalc %}
              <span class="text-error text-small">{{ error_fretedinamico_valcalc }}</span>
            {% endif %}
          </label>
        </div>
      </div>
      <div class="col-xs-12 col-md-4">
        <div class="background-white padding-large shadow-small">
          <label class="field field-medium">
            <span class="field-label">{{ text_status }}</span>
            <select class="field-entry" name="fretedinamico_status">
              {% for key, status in Type_Status.getEnumList() %}
								<option value="{{ key }}" {{ ftr_geral.isSelected(key, fretedinamico_status) }}>{{ status }}</option>
							{% endfor %}
            </select>
          </label>
          <label class="field field-medium">
            <span class="field-label top-padding-large">{{ text_ordem }}</span>
            <input class="field-entry mask-number2" type="text" name="fretedinamico_sort_order" value="{{ fretedinamico_sort_order }}" size="1">
          </label>
        </div>
      </div>
    </div>
	</div>
</form>
{{ footer }}
