orders html
This commit is contained in:
parent
d95d8b996e
commit
ad24105328
1 changed files with 17 additions and 19 deletions
|
|
@ -1,21 +1,23 @@
|
||||||
{{define "title"}}
|
{{define "title"}}
|
||||||
Orders
|
Zamówienia
|
||||||
{{end}}
|
{{end}}
|
||||||
{{define "main"}}
|
{{define "main"}}
|
||||||
<main>
|
<main>
|
||||||
<form class="search-container" hx-get="/orders/search" hx-target="#results-table"
|
<form class="search-container" hx-get="/orders/search" hx-target="#results-table"
|
||||||
hx-trigger="keyup delay:500ms, change">
|
hx-trigger="keyup delay:500ms, change">
|
||||||
<label>
|
<label>
|
||||||
<input type="search" name="q" placeholder="Search orders...">
|
<input type="search" name="q" placeholder="Wyszukaj po numerze zamówienia">
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
<label for="from">from</label>
|
<label>Data początkowa
|
||||||
<input type="date" value="{{.First}}" id="from" name="from">
|
<input type="date" value="{{.First}}" name="from">
|
||||||
<label for="from">to</label>
|
</label>
|
||||||
<label for="to"></label><input type="date" value="{{.Last}}" id="to" name="to">
|
<label>Data końcowa
|
||||||
|
<input type="date" value="{{.Last}}" name="to">
|
||||||
|
</label>
|
||||||
|
|
||||||
<div class="htmx-indicator">
|
<div class="htmx-indicator">
|
||||||
Searching...
|
Szukanie...
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="results-table">
|
<div id="results-table">
|
||||||
|
|
@ -28,25 +30,21 @@ Orders
|
||||||
{{define "orders-table"}}
|
{{define "orders-table"}}
|
||||||
<table id="orders_table">
|
<table id="orders_table">
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th>Numer zamówienia</th>
|
||||||
<th>Name</th>
|
<th>Klient</th>
|
||||||
<th>Surname</th>
|
<th>Lokalizacja</th>
|
||||||
<th>Phone</th>
|
<th>Data zamówienia</th>
|
||||||
<th>Location</th>
|
<th>Pozostało do zapłaty</th>
|
||||||
<th>Date</th>
|
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
<th>Total</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
{{range .}}
|
{{range .}}
|
||||||
<tr>
|
<tr>
|
||||||
<th><a href="/order/{{.ID}}">edit</a></th>
|
<th><a href="/order/{{.ID}}">{{.ID}}</a></th>
|
||||||
<th>{{.Name}}</th>
|
<th>{{.Surname}} {{.Name}} {{.Phone}}</th>
|
||||||
<th>{{.Surname}}</th>
|
|
||||||
<th>{{.Phone}}</th>
|
|
||||||
<th>{{.Location}}</th>
|
<th>{{.Location}}</th>
|
||||||
<th>{{.Date.Format "2006-01-02"}}</th>
|
<th>{{.Date.Format "2006-01-02"}}</th>
|
||||||
<th>{{.Status}}</th>
|
|
||||||
<th>{{.Total}}</th>
|
<th>{{.Total}}</th>
|
||||||
|
<th>{{.Status}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
</table>
|
</table>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue