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

{% block content %}

  <div class="container-fluid">
    <div class="row small-space-xs ">
      <base-card
        class="padding-large bottom-margin-large col-xs-12 col-md-6"
      >
        <validation-provider
          tag="div"
          class="col-xs-12"
          name='descontoautomatico_status'
          rules="required"
          v-slot="{ errors, valid }">
          <base-select
            :label="entry_status"
            name='buy_later_status'
            v-model="configurations.descontoautomatico_status"
            :valid="valid"
            :error="errors[0]"
            :disabled="disableForm">
            <option v-for="(value, key) in Type_Status.getEnumList()" :value="key">{ value }</option>
          </base-select>
        </validation-provider>
        <validation-provider
          tag="div"
          class="col-xs-12"
          name='descontoautomatico_title'
          rules=""
          v-slot="{ errors, valid }">
          <base-input
            :label="entry_title"
            name='buy_later_title'
            v-model="configurations.descontoautomatico_title"
            maxlength="60"
            :valid="valid"
            :error="errors[0]"
            :disabled="disableForm">
          </base-input>
        </validation-provider>
        <validation-provider
          tag="div"
          class="col-xs-12"
          name='descontoautomatico_sort_order'
          :rules="(configurations.descontoautomatico_status == Type_Status.Tp_Habilitado ? 'required' : '')"
          v-slot="{ errors, valid }">
          <base-input
            :label="entry_sort_order"
            name='buy_later_title'
            v-model="configurations.descontoautomatico_sort_order"
            mask="positiveInteger"
            :valid="valid"
            :error="errors[0]"
            :disabled="disableForm"
            maxLength="2">
          </base-input>
        </validation-provider>
      </base-card>
    </div>
  </div>

{% endblock %}