<div>

    <div class="modal-header">
        <h3>Editar</h3>
    </div>
    <div class="modal-body">
        <span>Data</span>
        <br />
        <div class="input-group">
            <input type="text" id="txtDataAmortizacao"
                   placeholder="____-__-__"
                   ng-model="selected.item.Data"
                   datepicker-popup="yyyy-MM-dd"
                   class="date form-control readonly simple-field-data-mask"
                   data-mask="0000-00-00" />
        </div>
        <br />
        <span>Valor bruto</span>
        <br />
        <input type="text"
               class="form-control"
               ng-model="selected.item.ValorBruto"
               number-input
               maxlength="10"
               placeholder="" />
        <br />
        <span>Vida útil</span>
        <br />
        <input type="text"
            class="form-control"
            ng-model="selected.item.VidaUtil"
            maxlength="3"
            numbers-only
            placeholder="" />
        <br />
        <span>Taxa</span>
        <br />
        <input type="text"
               class="form-control"
               ng-model="selected.item.Taxa"
               number-input
               maxlength="5"
               placeholder="" />
        <br />
        <span>V. Amortização</span>
        <br />
        <input class="form-control" ng-model="selected.item.ValorAmortizacao" number-input maxlength="20" />
        <br />
        <span>Valor liquido</span>
        <br />
        <input class="form-control" ng-model="selected.item.ValorLiquido" number-input maxlength="20" />
        <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>
