<div ng-controller="cadastroController">

    <div class="modal-header">
        <h3>Classificação</h3>
        <p align="right" >
            <div class="input-group">
                <input type="text" class="form-control" placeholder="Procurar..." ng-model="procurar_class">
                <span class="input-group-addon">
                    <span class="glyphicon glyphicon-search"></span>
                </span>

            </div>
        </p>
    </div>
    
    <div class="modal-body" ng-init="carregarClassificacoes()" style="height:340px; overflow:auto">
        
        <div class="list-group">
            <a ng-click="selClassificacao(cl); selected.item.Classificacao = cl.Classificacao; selected.item.Fk_ClassificacaoInventario=cl.Pk_ClassificacaoInventario"
               href="javascript:void(0)"
               ng-repeat="cl in classificacoes | filter:procurar_class"
               class="list-group-item"
              
               ng-class="{active:cl.Pk_ClassificacaoInventario==selected.item.Fk_ClassificacaoInventario}">
                {{cl.DescricaoFinal}}
                
            </a>
            
        </div>
        
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" ng-click="ok()">Aplicar</button>
        <button class="btn btn-warning" ng-click="cancel()">Cancelar</button>
    </div>
</div>
