Improve UI

Highlight future transactions
clarify settings are for budget
This commit is contained in:
Jan Bader 2021-12-11 20:19:28 +00:00
parent 915964fa4e
commit 935499e3a8
4 changed files with 7 additions and 3 deletions

View File

@ -13,7 +13,7 @@
</div> </div>
<table class="container col-lg-12" id="content"> <table class="container col-lg-12" id="content">
{{range .Transactions}} {{range .Transactions}}
<tr> <tr class="{{if .Date.After now}}future{{end}}">
<td>{{.Date.Format "02.01.2006"}}</td> <td>{{.Date.Format "02.01.2006"}}</td>
<td> <td>
{{.Account}} {{.Account}}

View File

@ -36,7 +36,7 @@
+ Add Account + Add Account
</li> </li>
<li> <li>
<a href="/budget/{{.Budget.ID}}/settings">Settings</a> <a href="/budget/{{.Budget.ID}}/settings">Budget-Settings</a>
</li> </li>
<li> <li>
<a href="/admin">Admin</a> <a href="/admin">Admin</a>

View File

@ -1,5 +1,5 @@
{{define "title"}} {{define "title"}}
{{.Budget.Name}} - Settings Settings for Budget "{{.Budget.Name}}"
{{end}} {{end}}
{{template "base" .}} {{template "base" .}}

View File

@ -65,9 +65,13 @@ body {
text-align: right; text-align: right;
} }
/* Highlights */
.negative { .negative {
color: #d50000; color: #d50000;
} }
.zero { .zero {
color: #888888; color: #888888;
} }
.future {
background-color: #cccccc;
}