modal-busqueda-productos.html 1.49 KB
<div class="modal-header">
    <h3 class="modal-title">Busqueda de Productos</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>Sec.</th>
                    <th>Cod.</th>
                    <th>Descripción</th>
                    <th>P. Base</th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="producto in filteredProductos">
                    <td ng-bind="producto.sector"></td>
                    <td ng-bind="producto.codigo"></td>
                    <td ng-bind="producto.descripcion"></td>
                    <td ng-bind="producto.precio | currency"></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>