Finalize account view
This commit is contained in:
33
web/account.html
Normal file
33
web/account.html
Normal file
@@ -0,0 +1,33 @@
|
||||
{{template "base" .}}
|
||||
|
||||
{{define "title"}}{{.Account.Name}}{{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}}</td>
|
||||
<td>
|
||||
{{.Account}}
|
||||
</td>
|
||||
<td>
|
||||
{{.Payee}}
|
||||
</td>
|
||||
<td>
|
||||
<a href="transaction/{{.ID}}">{{.Memo}}</a>
|
||||
</td>
|
||||
<td style="text-align: right;{{if .Amount.GetPositive}}{{else}}color: red;{{end}}">
|
||||
{{printf "%.2f" .Amount.GetFloat64}}
|
||||
</td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
{{end}}
|
Reference in New Issue
Block a user