<form method="post" autocomplete="off">
    <div class="modal-header">
        <button id="close" type="button" class="close">×</button>
        <h3 id="myModalLabel">Edit Journal</h3>
    </div>
    <div class="modal-body">
        <div class=" control-group">
            <label for="editAccount">Account</label>
            <input type="text" ng-autocomplete id="editAccount" resource="Account" label="Name" model="edit.Ledger"
                   value="{{edit.Ledger.Name}}"/>
            <label for="editAmount">Amount</label>

            <div class="input-prepend input-append">
                <span class="add-on">₹</span><input type="text" id="editAmount" class="span2" autocomplete="off"
                                                    placeholder="Amount" ng-model="edit.Amount"/>
                <button id="editDebit" type="button" class="btn" ng-click="toggleDebit()" on-action="toggleEdit(true)"
                        on-cancel="toggleEdit(false)">{{edit.Debit | debit}}
                </button>
            </div>
        </div>
        <hr>
    </div>
    <div class="modal-footer">
        <button id="cancel" class="btn">Cancel</button>
        <button id="action" class="btn btn-primary">Update</button>
    </div>
</form>
