<div>
   
    <div class="modal-header">
        <h3>Editar</h3>
    </div>
    <div class="modal-body">
        <span>Tipo</span>
        <br />
        <select class="form-control" ng-controller="cadastroController" ng-init="carregarCodAlteracao()" ng-model="selected.item.Fk_CodAlteracao">
            <option ng-repeat="codalt in codAlteracao" value={{codalt.Pk_CodAlteracao}} ng-selected="{{codalt.Pk_CodAlteracao == selected.item.Fk_CodAlteracao}}">{{codalt.Codigo+" - "+codalt.Designacao}}</option>
        </select>
        <br />
        <span>Data</span>
        <br />
        
        <input type="text" class="date form-control readonly simple-field-data-mask" id="txtDataAlteracaoBem"
               data-mask="0000-00-00"
               placeholder="____-__-__"
               ng-model="selected.item.Data"
               datepicker-popup="yyyy-MM-dd"
               is-open="dataAlteracao_opened"
               ng-required="true" close-text="Fechar" clear-text="Limpar" current-text="Hoje" />
          
        <br />
        <span>Valor</span>
        <br />
        <input class="form-control" ng-model="selected.item.ValorAlteracao" number-input maxlength="20"/>
        <br />
        <span>Vida</span>
        <br />
        <input class="form-control" ng-model="selected.item.VidaUtil" number-input maxlength="4" ng-controller="linhaAlteracaoController" ng-change="calculaTaxaAmort(selected.item)" />
        <br />
        <span>Taxa Amort.</span>
        <br />
        <input class="form-control" ng-disabled="true" ng-model="selected.item.TaxaAmortisacao" number-input maxlength="5" />
        <br />
        
    </div>
    <div class="modal-footer">
        <button class="btn btn-primary" ng-click="ok()">Guardar</button>
        <button class="btn btn-warning" ng-click="cancel()">Cancelar</button>
    </div>

</div>
<script>
    $(document).ready(function () {
        $('.date').mask('0000-00-00');

    });

    
</script>