<div ng-controller="PlanoContasCtrl">
    <div class="modal-header">
        <h3>Conta ano económico {{selected.item.AnoEconomico}}</h3>
    </div>
    <div class="modal-body">
        <div class="container-fluid">
            <label>Conta</label>
            <br />
            <input type="text"
                   class="form-control"
                   ng-model="selected.item.ContaSNC"
                   maxlength="15"
                   numbers-only
                   placeholder="" />
            <br />

            <label>Descrição</label>
            <br />
            <input type="text"
                   class="form-control"
                   ng-model="selected.item.Descricao"
                   maxlength="150"
                   placeholder="" />
            <br />

            <label>Vida útil</label>
            <br />
            <input type="text"
                   class="form-control"
                   ng-model="selected.item.VidaUtilControlo"
                   maxlength="3"
                   numbers-only
                   placeholder="" />
            <br />
            <label class="checkbox" style="margin-left:20px">
                <input type="checkbox" ng-model="selected.item.Ativa" /> Ativa
            </label>
        </div>
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" ng-click="gravaContaPlano(selected.item)" ng-disabled="estaGravar==true">Gravar</button>
        <button class="btn btn-warning" ng-click="ok()" ng-disabled="estaGravar==true">Fechar</button>
    </div>
</div>
