Split budget and dashboard routes into own files

This commit is contained in:
2021-11-29 22:29:03 +00:00
parent f0a1d1d475
commit 6df72dc40d
6 changed files with 102 additions and 79 deletions

View File

@ -8,20 +8,23 @@
</head>
<body>
<div class="container" id="head">
Budgeteer - {{.Token.GetName}} - Budget-View
Budgeteer - {{.Token.GetName}} - {{.Budget.Name}}
</div>
<div class="container col-lg-12" id="content">
{{range .GetBudgets}}
<div class="budget-item">
<a href="budget/{{.ID}}">{{.Name}}</a>
<span class="time"></span>
</div>
<div class="budget-item">
<a href="#newbudgetmodal" data-toggle="modal" data-target="#newbudgetmodal">New Budget</a>
<span class="time"></span>
</div>
<table class="container col-lg-12" id="content">
{{range .Transactions}}
<tr>
<td>{{.Date}}</td>
<td>
<a href="transaction/{{.ID}}">{{.Memo.String}}</a>
</td>
<td>{{.Amount}}</td>
</tr>
{{end}}
<div class="budget-item">
<a href="#newbudgetmodal" data-toggle="modal" data-target="#newbudgetmodal">New Budget</a>
<span class="time"></span>
</div>
</div>
</table>
{{template "budget-new"}}
</body>
</html>