main.html
2.16 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<html>
<h3>Sistema de gestión de terminales</h3>
<h5>Ingreso de nueva empresa</h5>
<label
class="bg-info text-white"
ng-show="mensaje"
ng-bind="mensaje"></label>
<form name="formEmpresa">
<div class="row">
<div class="col-3">
<input
class="form-control"
placeholder="Nombre de empresa"
ng-model="empresa.nombre"
ng-required="true"/>
</div>
<div class="col-4">
<input
class="form-control"
placeholder="ID Empresa"
ng-model="empresa.idEmpresaCliente"
ng-required="true"/>
</div>
<div class="col-4">
<input
class="form-control"
placeholder="URL"
ng-model="empresa.url"
ng-required="true"/>
</div>
<div class="col-1 text-center">
<button
type="button"
class="btn btn-dark"
ladda="guardando"
ng-click="guardar()"
ng-disabled="!formEmpresa.$valid">Guardar</button>
</div>
</div>
</form>
<h5>Empresas configuradas</h5>
<div class="row">
<table class="table table-dark">
<thead>
<tr>
<th>Nombre Empresa</th>
<th>ID Empresa</th>
<th>Url</th>
<th></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="(key, empresa) in empresas">
<td ng-bind="empresa.nombre"></td>
<td ng-bind="empresa.idEmpresaCliente"></td>
<td ng-bind="empresa.url"></td>
<td>
<!-- <button class="btn btn-dark" ng-click="eliminarEmpresa(key)">
<i class="fa fa-trash"></i>
</button> -->
</td>
</tr>
</tbody>
</table>
</div>
</html>