<div  ng-init="carregarCadastro()">
    <div>
        <div class="input-group">
            <input type="text"
                   class="form-control"
                   placeholder="Procurar..."
                   ng-model="nome_inv"
                   ng-change="iniciarProcura(nome_inv)"
                   ng-debounce
                   style="">
            <span class="input-group-addon apontar"
                  popover-placement="left"
                  popover-trigger="mouseenter"
                  data-popover="{{getFiltroActual()}}"
                  ng-click="openModalPesquisaAvancada()">
                Pesquisa avançada <span class="glyphicon glyphicon-search"></span>
            </span>
        </div>
    </div>

    <div class="table-responsive">
        <div id="tabCadastro" style="height:280px; overflow:auto; border: 1px solid #DDD;">
            <table class="table table-hover table-striped">
                <thead>
                    <tr>
                        <th style="width:100px">Nº Inv</th>
                        <th>Designação</th>
                        <th>Local</th>
                        <th ng-show="listagemBensMostarColunaSelecao==true"><input type="checkbox" ng-model="listagemBensSelecionarTodos" ng-click="selecionarBensListagem(listagemBensSelecionarTodos)" /></th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="item in items" class="apontar" ng-class="{info:item.Pk_Inventario==selectedCadastro.Pk_Inventario}">

                        <td ng-style="verificaCorAbateBloqueio(item)" style="width:100px" ng-click="selCadastro(item)">
                            {{item.NumInventario}}
                            <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true" ng-show="item.TemAbate" popover-placement="top" popover-trigger="mouseenter" data-popover="Abatido"></span>
                        </td>
                        <td ng-click="selCadastro(item)"><input type="text" onfocus="this.blur()" readonly="readonly" ng-model="item.Nome" class="input_tab readonly" /></td>
                        <td ng-click="selCadastro(item)">{{item.Localizacao}}</td>
                        <td ng-show="listagemBensMostarColunaSelecao==true"><input type="checkbox" ng-model="item.selecionado" /></td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div style="margin-top:3px">
        <button ng-click="carregarMaisCadastroPos(nome_inv)" type="button"
                ng-disabled="itemsLoaded==false || totalLoaded==0"
                class="btn btn-primary btn-md">
            <span class="glyphicon glyphicon-forward"></span> Ver mais
        </button>
        <img src="images/preloader.gif" width="32" ng-hide="itemsLoaded==true || items.length==0" style="margin-left:10px; margin-right:10px" />

    </div>
</div>















