{% extends 'base/module.twig' %}

{% block content %}
  <div class="container-fluid">
    <div class="row">
      <div class="col-xs-12">
        <div>
          <div class="row">
            <div class="col-xs-12 col-sm-8">
              <base-card class="padding-large">
               <validation-provider
                  tag="div"
                  rules="required|max:100"
                  class="top-margin-large"
                  name="frenet_descricao"
                  v-slot="{ errors, valid }">
                  <base-input
                    :label="entry_frenet_descricao"
                    name="frenet_descricao"
                    v-model="configurations.frenet_descricao"
                    maxlength="100"
                    :error="errors[0]"
                    :valid="valid"
                    required>
                  </base-input>
                </validation-provider>

                <validation-provider
                  tag="div"
                  rules="required"
                  class="top-margin-large"
                  name="frenet_token"
                  v-slot="{ errors, valid }">
                  <base-input
                    :label="entry_frenet_token"
                    name="frenet_token"
                    v-model="configurations.frenet_token"
                    :error="errors[0]"
                    :valid="valid"
                    required>
                  </base-input>
                </validation-provider>

                <validation-provider
                  tag="div"
                  rules="required"
                  class="top-margin-large"
                  name="frenet_cep_origem"
                  v-slot="{ errors, valid }">
                  <base-input
                    :label="entry_frenet_cep_origem"
                    name="frenet_cep_origem"
                    v-model="configurations.frenet_cep_origem"
                    mask="cep"
                    :error="errors[0]"
                    :valid="valid"
                    required>
                  </base-input>
                </validation-provider>

                <validation-provider
                  tag="div"
                  class="top-margin-large"
                  rules="numeric"
                  name="frenet_sort_order"
                  v-slot="{ errors, valid }">
                  <base-input
                    :label="entry_frenet_sort_order"
                    name="frenet_sort_order"
                    v-model="configurations.frenet_sort_order"
                    mask="integer"
                    maxlength="2"
                    :error="errors[0]"
                    :valid="valid">
                  </base-input>
                </validation-provider>

                <validation-provider
                  tag="div"
                  rules="required"
                  class="top-margin-large"
                  name="frenet_geo_zone_id"
                  v-slot="{ errors, valid }">
                  <base-select
                    :label="entry_frenet_geo_zone_id"
                    name="frenet_geo_zone_id"
                    v-model="configurations.frenet_geo_zone_id"
                    :error="errors[0]"
                    :valid="valid"
                    required>
                    <option value="0">{ text_all_zones }</option>
                    <option v-for="geo_zone in geo_zones" :key="geo_zone.geo_zone_id" :value="geo_zone.geo_zone_id">
                      { geo_zone.name }
                    </option>
                  </base-select>
                </validation-provider>

                <validation-provider
                  tag="div"
                  class="top-margin-large"
                  rules="required"
                  name="frenet_status"
                  v-slot="{ errors, valid }">
                  <base-select
                    :label="entry_frenet_status"
                    name="frenet_status"
                    v-model="configurations.frenet_status"
                    :error="errors[0]"
                    :valid="valid">
                    <option v-for="(value, key) in Type_Status" :key="key" :value="key">
                      { value }
                    </option>
                  </base-select>
                </validation-provider>
              </base-card>
            </div>
          </div>
        </div>      
      </div>
    </div>
  </div>
{% endblock %}