Use same template for account and all-accounts
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
{{template "base" .}}
|
||||
|
||||
{{define "title"}}Budget{{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>
|
||||
<table class="container col-lg-12" id="content">
|
||||
{{range .Transactions}}
|
||||
<tr>
|
||||
<td>{{.Date.Format "02.01.2006"}}</td>
|
||||
<td>
|
||||
{{.Account}}
|
||||
</td>
|
||||
<td>
|
||||
{{.Payee}}
|
||||
</td>
|
||||
<td>
|
||||
<a href="transaction/{{.ID}}">{{.Memo}}</a>
|
||||
</td>
|
||||
{{template "amount-cell" .Amount}}
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
{{end}}
|
Reference in New Issue
Block a user