Files
pcinv/templates/browse.gohtml

32 lines
680 B
Plaintext

{{- /*gotype: main.BrowseVM */}}
{{define "browse"}}
{{template "header" "Search Results"}}
<table border="1">
<tr>
<th>QR</th>
<th>Type</th>
<th>Name</th>
<th>Brand</th>
<th>Description</th>
{{if .HasRam}}
<th>RAM Type</th>
<th>RAM Capacity</th>
{{end}}
</tr>
{{range .Assets}}
<tr>
<td><a href="/device?id={{.Qr}}">{{.Qr}}</a></td>
<td><a href="/device?id={{.Qr}}">{{.Type | formatType}}</a></td>
<td>{{.Name}}</td>
<td>{{.Brand}}</td>
<td>{{.Description}}</td>
{{if $.HasRam}}
<td>{{.RamType}}</td>
<td>{{.RamCapacity | formatMemorySize}}</td>
{{end}}
</tr>
{{end}}
</table>
{{template "footer"}}
{{end}}