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