feat: prettier index view
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
henne 2024-12-30 19:34:23 +01:00
parent 282c3bbc0e
commit 95e9ae41ef

View file

@ -14,12 +14,12 @@
<thead>
<tr>
<th>User</th>
<th style="min-width:120px">RFID ID</th>
<th class="sticky-top">User</th>
<th style="min-width:120px" class="sticky-top">RFID ID</th>
{{range .Machines}}
<th style="writing-mode:vertical-rl">{{.Name}}</th>
<th style="writing-mode:vertical-rl" class="sticky-top">{{.Name}}</th>
{{end}}
<th></th>
<th class="sticky-top"></th>
</tr>
</thead>
<tbody>
@ -30,7 +30,7 @@
<td><input type="text" class="form-control" value="{{.Nick}}" name="nick"></td>
<td>{{.ID}}</td>
{{range $.Machines}}
<td><input type="checkbox" class="form-check-input" name="machine[{{.ID}}]" value="1" {{if IsAllowed $token .ID}}checked{{end}}/></td>
<td><input type="checkbox" class="form-check-input" name="machine[{{.ID}}]" value="1" {{if IsAllowed $token .ID}}checked{{end}} title="{{.Name}}"/></td>
{{end}}
<td><input type="submit" class="btn btn-sm btn-success" value="Speichern" /><a href="/tokens/{{.ID}}/delete" class="btn btn-sm btn-danger">Löschen</a></td>
</tr>