make the main table look better
This commit is contained in:
@@ -1,22 +1,24 @@
|
|||||||
{{ define "expensesTable" }}
|
{{ define "expensesTable" }}
|
||||||
<table id="expenses-table">
|
<div class="table-container">
|
||||||
<tr>
|
<table id="expenses-table">
|
||||||
<th>ID</th>
|
<tr>
|
||||||
<th>OWNER</th>
|
<th>ID</th>
|
||||||
<th>DESC</th>
|
<th>OWNER</th>
|
||||||
<th>PRICE</th>
|
<th>DESC</th>
|
||||||
<th>DATE</th>
|
<th>PRICE</th>
|
||||||
<th>Category</th>
|
<th>DATE</th>
|
||||||
</tr>
|
<th>Category</th>
|
||||||
{{ range .expenses }}
|
</tr>
|
||||||
<tr>
|
{{ range .expenses }}
|
||||||
<th><a href="/expenses/{{ .ExpID }}">{{ .ExpID }}</th>
|
<tr>
|
||||||
<th spellcheck="false">{{ .Owner.UserName }}</th>
|
<th><a href="/expenses/{{ .ExpID }}">{{ .ExpID }}</th>
|
||||||
<th spellcheck="false">{{ .Description }}</th>
|
<th spellcheck="false">{{ .Owner.UserName }}</th>
|
||||||
<th spellcheck="false">{{ formatPrice .Value }}</th>
|
<th spellcheck="false">{{ .Description }}</th>
|
||||||
<th spellcheck="false">{{ formatDate .Date }}</th>
|
<th spellcheck="false">{{ formatPrice .Value }}</th>
|
||||||
<th spellcheck="false">{{ .Category.CategoryName }}</th>
|
<th spellcheck="false">{{ formatDate .Date }}</th>
|
||||||
</tr>
|
<th spellcheck="false">{{ .Category.CategoryName }}</th>
|
||||||
{{ end }}
|
</tr>
|
||||||
</table>
|
{{ end }}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
{{ define "mainPage" }}
|
{{ define "mainPage" }}
|
||||||
{{ template "expensesFilterBox" . }}
|
{{ template "expensesFilterBox" . }}
|
||||||
|
<br>
|
||||||
|
Table
|
||||||
|
<br>
|
||||||
{{ template "expensesTable" . }}
|
{{ template "expensesTable" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user