<div ng-controller="imprimirControllerF3">
    <div class="modal-header">
        <h3>Imprimir Ficha de Amortizações</h3>
    </div>
    <div class="modal-body">
        <div class="container-fluid">
            <form class="form-horizontal" role="form">
                <label>Entidade Afetatária</label>
                <br />
                <select class="form-control" ng-init="carregarEntidades()"
                        ng-model="selectedEntidade"
                        
                        ng-options="e.NomeEntidade for e in entidades">
                    <option value="">O Agrupamento...</option>
                </select>
                <br />
                <label>Factos Patrimoniais</label>
                <br />
                <select class="form-control"
                        ng-model="selectedTipo"
                        ng-change="selTipo(selectedTipo)"
                        ng-options="e.desc for e in tipos"></select>
                <br />
                <label>Classificação Patrimonial</label>
                <br/>
                <select class="form-control" ng-init="carregarClassificacoesPatri()"
                        ng-model="selectedClass"
                        ng-options="cl._CodigoConta+' '+cl._DescricaoConta for cl in classificacoesPatri">
                    <option value="">Qualquer Classificação...</option>
                </select>
                <br />
                
                <label>Ano</label>
                <br />
                <input type="text"
                       class="form-control"
                       ng-model="ano"
                       maxlength="4"
                       numbers-only
                       placeholder="" />
                <br/>
                <div ng-show="mostrarMes()">
                    <label>Mês</label>
                    <br />
                    <select class="form-control" ng-init="carregarMeses()"
                            ng-model="selectedMes"
                            ng-options="e.NomeMes for e in lstMeses">
                    </select>
                    <br />
                </div>
                
                <div>
                    <label popover-placement="top" class="checkbox"
                           popover-trigger="mouseenter"
                           data-popover="{{strMax(selected.item.Nome,50)}}">
                        <input type="checkbox" ng-model="apenasBem" ng-change="toggleBem()"> <b>Apenas o Bem Selecionado</b>
                    </label>
                </div>
            </form>
        </div>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" ng-click="printFichaAmort(true); ok()">Excel</button>
        <button class="btn btn-primary" ng-click="printFichaAmort(false); ok()">PDF</button>
        <button class="btn btn-warning" ng-click="cancel()">Cancelar</button>
    </div>
</div>
