28 lines
984 B
HTML
28 lines
984 B
HTML
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Category</th>
|
|
<th>Total</th>
|
|
<th>Free</th>
|
|
<th style="text-align: right;">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{ range . }}
|
|
<tr>
|
|
<td style="font-weight: 600;">{{ .Name }}</td>
|
|
<td>
|
|
<span style="background: rgba(255,255,255,0.05); padding: 0.25rem 0.6rem; border-radius: 999px; font-size: 0.8rem; color: var(--text-muted); border: 1px solid var(--border);">
|
|
{{ .Category }}
|
|
</span>
|
|
</td>
|
|
<td style="font-family: monospace; font-size: 1.05rem;">{{ .TotalQuantity }}</td>
|
|
<td style="font-family: monospace; font-size: 1.05rem; color: var(--success);">{{ .FreeQuantity }}</td>
|
|
<td style="text-align: right;">
|
|
<button class="btn btn-secondary" style="width: auto; padding: 0.4rem 0.8rem; font-size: 0.85rem;">Edit</button>
|
|
</td>
|
|
</tr>
|
|
{{ end }}
|
|
</tbody>
|
|
</table> |