escalasSalarial.modal.html 1.99 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<form class="form" name="form" ng-submit="vm.guardarEscalaSalarial(form)" novalidate>
  <div class="modal-header modal-header-primary ">
    <button type="button" ng-click="vm.modal.dismiss()" class="close">&times;</button>
    <h4 class="modal-title">Escala Salarial</h4>
  </div>
  <div class="modal-body">
    <div class="row">
      <div class="col-md-10">
        <label>Nivel</label>
        <div class="">
          <input type="text" name="nivel" class="form-control" placeholder="# Nivel de la escala salarial."
                 ng-model="vm.escala.nivel" required>
          <p class="help-block" ng-show="form.nivel.$error.required && vm.enviado">
            Ingrese la sigla de la escala salarial.
          </p>
        </div>
      </div>
      <div class="col-md-10">
        <label>Nombre</label>
        <div class="">
          <input type="text" name="nombre" class="form-control" placeholder="Nombre de la escala salarial."
                 ng-model="vm.escala.nombre" required>
          <p class="help-block" ng-show="form.nombre.$error.required && vm.enviado">
            Ingrese nombre de la escala salarial.
          </p>
        </div>
      </div>
      <div class="col-md-10">
        <label>Monto</label>
        <div class="">
          <input type="text" name="monto" class="form-control" placeholder="Monto de la escala salarial."
                 ng-model="vm.escala.monto" required>
          <p class="help-block" ng-show="form.monto.$error.required && vm.enviado">
            Ingrese la monto de la escala salarial.
          </p>
        </div>
      </div>
    </div>
    <div class="form-group has-error">
      <p class="help-block">{{ vm.errores.otros}}</p>
    </div>
  </div>
  <div class="modal-footer">
    <button class="btn btn-primary-outline" type="submit"
            ng-disabled="!(form.nombre.$dirty || form.monto.$dirty||form.nivel.$dirty)">
      Guardar
    </button>
    <button class="btn btn-default" type="button" ng-click="vm.modal.dismiss()">Cancelar</button>
  </div>
</form>