<div ng-controller="cadastroController">

    <div class="modal-header">
        <h3>Classificação Patrimonial</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="carregarClassificacoesPatri()" style="height:270px; overflow:auto">

        <div class="list-group">
            <a ng-click="selClassificacaoPatri(cl); selected.item.Cpatrimonial = cl._CodigoConta;"
               href="javascript:void(0)"
               ng-repeat="cl in classificacoesPatri | filter:procurar_class"
               class="list-group-item"
               ng-class="{active:cl._CodigoConta==selected.item.Cpatrimonial}">
                {{cl._CodigoConta+' '+cl._DescricaoConta}}

            </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>
