Compare commits

..

No commits in common. "main" and "v0.0.4" have entirely different histories.
main ... v0.0.4

2 changed files with 26 additions and 13 deletions

View file

@ -19,6 +19,27 @@ steps:
GOARCH: amd64
commands:
- go build -v -o dist/machinelock-manager-linux-amd64
- name: Building for Windows
image: golang
environment:
GOOS: windows
GOARCH: amd64
commands:
- go build -v -o dist/machinelock-manager-windows-amd64
- name: Building for Mac
image: golang
environment:
GOOS: darwin
GOARCH: amd64
commands:
- go build -v -o dist/machinelock-manager-darwin-amd64
- name: Building for Mac Silicon
image: golang
environment:
GOOS: darwin
GOARCH: arm64
commands:
- go build -v -o dist/machinelock-manager-darwin-arm64
- name: gitea release
image: plugins/gitea-release
settings:
@ -30,12 +51,4 @@ steps:
- md5
- sha1
- sha256
- name: build docker image
image: plugins/docker
settings:
username: ctdo
password:
from_secret: dockerhub_password
repo: ctdo/machinelock-manager
tags: latest

View file

@ -14,12 +14,12 @@
<thead>
<tr>
<th class="sticky-top">User</th>
<th style="min-width:120px" class="sticky-top">RFID ID</th>
<th>User</th>
<th style="min-width:120px">RFID ID</th>
{{range .Machines}}
<th style="writing-mode:vertical-rl" class="sticky-top">{{.Name}}</th>
<th style="writing-mode:vertical-rl">{{.Name}}</th>
{{end}}
<th class="sticky-top"></th>
<th></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}} title="{{.Name}}"/></td>
<td><input type="checkbox" class="form-check-input" name="machine[{{.ID}}]" value="1" {{if IsAllowed $token .ID}}checked{{end}}/></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>