<div ng-controller="cadastroController">

    <div class="modal-header">
        <h3>Classificação Funcional</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="carregarClassificacoesFuncionais(selected.item.Pk_Inventario,selected.item.AnoStr)" style="height:270px; overflow:auto">

        <div class="list-group">
            <a ng-click="selClassificacaoFunc(cl); selected.item.Cfuncional = cl.CodigoConta"
               href="javascript:void(0)"
               ng-repeat="cl in classificacoesFunc | filter:procurar_class"
               class="list-group-item"
               ng-class="{active:cl.CodigoConta==selected.item.Cfuncional}">
                {{cl.CodigoConta+' '+cl.Descricao}}
            </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>