modal-petroleras.html
1.38 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
<div class="modal-header">
    <h3 class="modal-title">Búsqueda de Petrolera</h3>
</div>
<div class="modal-body" id="modal-body">
    <div class="input-group mb-3">
            <input 
            type="text" 
            class="form-control" 
            placeholder="Busqueda" 
            ng-model="filters" 
            ng-change="search()" 
            ng-keypress="enter($event.keyCode)"
        >
        <table class="table table-striped table-sm">
            <thead>
                <tr>
                    <th>Código</th>
                    <th>Nombre</th>
                    <th>CUIT</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="petrolera in filteredPetroleras">
                    <td ng-bind="petrolera.COD"></td>
                    <td ng-bind="petrolera.NOM"></td>
                    <td ng-bind="petrolera.CUIT"></td>
                    <td>
                        <button type="button" class="btn btn-secondary p-5 float-right mr-1" ng-click="select(producto)">
                            <i class="fa fa-check" aria-hidden="true"></i>
                        </button>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
<div class="modal-footer">
        <button class="btn btn-secondary" type="button" ng-click="cancel()">Cancelar</button>
</div>