<div class="col-md-12" ng-controller="escolaController" style="padding:0;">
    <!--<div class="col-md-12" style="text-align:right; padding-bottom:5px">

        <button type="button"
                class="btn btn-success btn-sm"
                ng-disabled="mnuConf.PEditar==false"
                ng-click="updateEscola(info); dadosModificados(false)">
            <span class="glyphicon glyphicon-ok"></span> Guardar
        </button>
    </div>-->
    <div class="col-md-12" ng-init="carregarEscola(true)">
        <h5><b>ESCOLA</b></h5>
    </div>

    <div class="col-md-4">

        <span>Nome</span>
        <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.NomeEscola" />
        <br />
        <span>Código</span>
        <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.CodEscola" />
        <br />
        <span>Diretor</span>
        <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.Director" />
        <br />
        <span>Coordenador Técnico</span>
        <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.CoordenadorTecnico" />
        <br />
        <span>EndPoint da Contabilidade</span>
        <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.EndPointContab" />
        <br />
    </div>
    <div class="col-md-4">
        <span>Morada</span>
        <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.Morada" />
        <br />
        <span>Telefone</span>
        <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.Telefone" />
        <br />
        <span>FAX</span>
        <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.FAX" />
        <br />
        <span>E-Mail</span>
        <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.EMail" />
        <br />
        <span>NIF</span>
        <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.NIF" />
        <br />
    </div>
    <div class="col-md-4">
        <span>Indice</span>
        <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.Indice100" number-input maxlength="10" />
        <br />

        <span>Classificação Orgânica</span>
        <div class="btn-group btn-group-justified" role="group" aria-label="...">
            <div class="btn-group" role="group">
                <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.Co1" numbers-only maxlength="2" />
            </div>
            <div class="btn-group" role="group">
                <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.Co2" numbers-only maxlength="1" />
            </div>
            <div class="btn-group" role="group">
                <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.Co3" numbers-only maxlength="2" />
            </div>
            <div class="btn-group" role="group">
                <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.Co4" numbers-only maxlength="2" />
            </div>
            <div class="btn-group" role="group">
                <input class="form-control" ng-change="dadosModificados(true)" ng-model="info.Co5" numbers-only maxlength="2" />
            </div>
        </div>
        <br />
        <span>Ano {{getEstadoAnoCivil()}}</span>
        <br />
        <select class="form-control"
                ng-model="selectedAnoCivil"
                ng-change="selAno(selectedAnoCivil); dadosModificados(true)"
                ng-options="e.Ano for e in infoAnos"></select>
        <br />
        <span>Ano Letivo</span>
        <br />
        <select class="form-control"
                ng-model="selectedAnoLetivo"
                ng-change="selAnoLetivo(selectedAnoLetivo); dadosModificados(true)"
                ng-options="e.Desc for e in infoAnosLetivos"></select>
        <br />

    </div>
    <div class="col-md-12" style="text-align:right">
        <div class="btn-group" role="group" aria-label="...">
            <button type="button" class="btn btn-default" ng-click="encerrarAtivarAno(selectedAnoCivil)" ng-disabled="">{{getEstadoAnoCivilBotao()}}</button>
            <button type="button" class="btn btn-default" ng-click="novoAno()" ng-disabled="estaAcriaAno==true"><span class="glyphicon glyphicon-plus"></span> Ano Civil</button>
        </div>
    </div>
    
    <div class="col-md-12" style="text-align:right; padding-bottom:5px; padding-top:10px">

        <button type="button"
                class="btn btn-success btn-md"
                ng-disabled="mnuConf.PEditar==false"
                ng-click="updateEscola(info); dadosModificados(false)">
            <span class="glyphicon glyphicon-ok"></span> Guardar
        </button>
    </div>
    
</div>
