style rewrite
This commit is contained in:
parent
8c7067d5d9
commit
7c756e87c1
8 changed files with 737 additions and 376 deletions
|
|
@ -1,25 +1,37 @@
|
|||
{{define "title"}}
|
||||
Cakes
|
||||
Ciasta
|
||||
{{end}}
|
||||
{{define "main"}}
|
||||
<main>
|
||||
<table>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Name</th>
|
||||
<th>Price</th>
|
||||
<th>Category</th>
|
||||
<th>Availability</th>
|
||||
</tr>
|
||||
{{range .}}
|
||||
<tr>
|
||||
<th><a href="/cake/{{.ID}}">edit</a></th>
|
||||
<th>{{.Name}}</th>
|
||||
<th>{{.Price}}</th>
|
||||
<th>{{.Category}}</th>
|
||||
<th>{{.Availability}}</th>
|
||||
</tr>
|
||||
{{end}}
|
||||
</table>
|
||||
<div class="toolbar">
|
||||
<a href="/cake" class="btn-primary">
|
||||
<i class="fa-solid fa-plus"></i>
|
||||
Nowe ciasto
|
||||
</a>
|
||||
</div>
|
||||
<div id="results-table" class="scrollable">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Nazwa</th>
|
||||
<th>Cena</th>
|
||||
<th>Kategoria</th>
|
||||
<th>Dostępność</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{range .}}
|
||||
<tr>
|
||||
<th><a href="/cake/{{.ID}}">Edytuj</a></th>
|
||||
<th>{{.Name}}</th>
|
||||
<th>{{.Price}} PLN</th>
|
||||
<th>{{.Category}}</th>
|
||||
<th>{{.Availability}}</th>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</main>
|
||||
{{end}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue