33 lines
678 B
Plaintext
33 lines
678 B
Plaintext
{{- /*gotype: main.IndexVM */}}
|
|
{{define "index"}}
|
|
{{template "header"}}
|
|
<h2>Some statistics</h2>
|
|
<ul>
|
|
<li>Database contains {{.AssetCount}} assets.</li>
|
|
<li>Database contains {{.BrandCount}} brands.</li>
|
|
</ul>
|
|
|
|
<h2>Filter Devices</h2>
|
|
<form action="/browse" method="get">
|
|
<h3>Select Brands:</h3>
|
|
{{range .Brands}}
|
|
<label>
|
|
<input type="checkbox" name="brand" checked value="{{.}}">
|
|
{{.}}
|
|
</label><br>
|
|
{{end}}
|
|
|
|
<h3>Select Types:</h3>
|
|
{{range .Types}}
|
|
<label>
|
|
<input type="checkbox" name="type" checked value="{{.}}">
|
|
{{. | formatType}}
|
|
</label><br>
|
|
{{end}}
|
|
|
|
<button type="submit">Browse</button>
|
|
</form>
|
|
|
|
{{template "footer"}}
|
|
{{end}}
|