37 lines
1021 B
HTML
37 lines
1021 B
HTML
|
|
{{template "base" .}}
|
|
|
|
{{define "title"}}
|
|
{{printf "Budget for %s %d" .Date.Month .Date.Year}}
|
|
{{end}}
|
|
|
|
{{define "new"}}
|
|
{{template "transaction-new"}}
|
|
{{end}}
|
|
|
|
{{define "main"}}
|
|
<div class="budget-item">
|
|
<a href="#newtransactionmodal" data-toggle="modal" data-target="#newtransactionmodal">New Transaction</a>
|
|
<span class="time"></span>
|
|
</div>
|
|
<div>
|
|
<a href="{{printf "/budget/%s/%d/%d" .Budget.ID .Previous.Year .Previous.Month}}">Previous Month</a> -
|
|
<a href="{{printf "/budget/%s" .Budget.ID}}">Current Month</a> -
|
|
<a href="{{printf "/budget/%s/%d/%d" .Budget.ID .Next.Year .Next.Month}}">Next Month</a>
|
|
</div>
|
|
<table class="container col-lg-12" id="content">
|
|
{{range .Categories}}
|
|
<tr>
|
|
<td>{{.Group}}</td>
|
|
<td>{{.Name}}</td>
|
|
<td>
|
|
</td>
|
|
<td>
|
|
</td>
|
|
{{template "amount-cell" .Balance}}
|
|
{{template "amount-cell" .BalanceAssignments}}
|
|
{{template "amount-cell" .Activity}}
|
|
</tr>
|
|
{{end}}
|
|
</table>
|
|
{{end}} |