{% 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_title'
          rules="required"
          v-slot="{ errors, valid }">
          <base-input
            :label="entry_title"
            name='descontoautomatico_title'
            v-model="configurations.descontoautomatico_title"
            maxlength="60"
            :valid="valid"
            :error="errors[0]"
            :disabled="disableForm"
            required>
          </base-input>
        </validation-provider>
        <validation-provider
          tag="div"
          class="col-xs-12"
          name='descontoautomatico_sort_order'
          :rules="(configurations.descontoautomatico_status == Type_Status.Tp_Habilitado ? '' : '')"
          v-slot="{ errors, valid }">
          <base-input
            :label="entry_sort_order"
            name='descontoautomatico_sort_order'
            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 %}