<div ng-controller="imprimirControllerF1">
    <div class="modal-header">
        <h3>Imprimir de Identificação de Móveis</h3>
    </div>
    <div class="modal-body">
        <div class="container-fluid">
            <form class="form-horizontal" role="form">
                
                <label class="checkbox">
                    <input type="checkbox"
                           ng-model="apenasBemSeleccionado" /> Apenas o Bem seleccionado - Nº {{selected.item.NumInventario}}
                </label>
                <br/>
                <label>Entidade Afetatária</label>
                <br />
                
                <input type="text" placeholder="" class="form-control" style="cursor:default"
                       popover-placement="top"
                       popover-trigger="mouseenter"
                       data-popover="Nome da Entidade"
                       readonly="readonly" ng-model="selectedEdificio.NomeEntidade" />
                <br />
                <div class="col-md-12" style="margin-bottom:15px">

                    <div class="col-md-4">
                        <select class="form-control" ng-init="carregarEdificios()"
                                ng-change="selEdificio(selectedEdificio)"
                                ng-model="selectedEdificio"
                                ng-disabled="apenasBemSeleccionado"
                                ng-options="e.EdificioEntidade for e in edificios">
                            <option value="">Qualquer Edifício ...</option>
                        </select>
                    </div>
                    <div class="col-md-4">
                        <select class="form-control"
                                ng-change="selPiso(selectedPiso)"
                                ng-model="selectedPiso"
                                ng-disabled="apenasBemSeleccionado"
                                ng-options="e.Descricao for e in selectedEdificio.LstPiso">
                            <option value="">Qualquer Piso ...</option>
                        </select>

                    </div>
                    <div class="col-md-4">
                        <select class="form-control"
                                ng-model="selectedSala"
                                ng-disabled="apenasBemSeleccionado"
                                ng-options="e.Descricao for e in selectedPiso.LstSala">
                            <option value="">Qualquer Sala ...</option>
                        </select>
                    </div>

                </div>

                <br />
                <label>Ano</label>
                <br />
                <input type="text"
                       class="form-control"
                       ng-model="ano"
                       maxlength="4"
                       numbers-only
                       ng-disabled="apenasBemSeleccionado"
                       placeholder="" />
                <br />
            </form>
        </div>
    </div>
    
    <div class="modal-footer">
        <button class="btn btn-primary" ng-click="printFichaInv(selected.item.Pk_inventario); ok();">PDF</button>
        <button class="btn btn-warning" ng-click="cancel()">Cancelar</button>
    </div>
</div>


