Rename budget to transaction for new-transaction
This commit is contained in:
parent
67139ceff8
commit
e7c9a7f52f
@ -9,7 +9,7 @@
|
||||
{{define "main"}}
|
||||
<div class="container"><a href="/budget/{{.Budget.ID}}/accounts">Go to Accounts</a></div>
|
||||
<div class="budget-item">
|
||||
<a href="#newbudgetmodal" data-toggle="modal" data-target="#newbudgetmodal">New Budget</a>
|
||||
<a href="#newtransactionmodal" data-toggle="modal" data-target="#newtransactionmodal">New Transaction</a>
|
||||
<span class="time"></span>
|
||||
</div>
|
||||
<table class="container col-lg-12" id="content">
|
||||
|
@ -1,12 +1,12 @@
|
||||
{{define "transaction-new"}}
|
||||
<div id="newbudgetmodal" class="modal fade">
|
||||
<div id="newtransactionmodal" class="modal fade">
|
||||
<div class="modal-dialog" role="document">
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('#errorcreatingbudget').hide();
|
||||
$('#newbudgetform').ajaxForm({
|
||||
$('#errorcreatingtransaction').hide();
|
||||
$('#newtransactionform').ajaxForm({
|
||||
error: function() {
|
||||
$('#errorcreatingbudget').show();
|
||||
$('#errorcreatingtransaction').show();
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -18,7 +18,7 @@
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<form id="newbudgetform" action="/api/v1/transaction/new" method="POST">
|
||||
<form id="newtransactionform" action="/api/v1/transaction/new" method="POST">
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label for="date">Date</label>
|
||||
|
Loading…
x
Reference in New Issue
Block a user