Can create devices nicely

This commit is contained in:
2025-03-24 09:43:41 +01:00
parent 6405e7d692
commit c459148d33
9 changed files with 233 additions and 54 deletions

View File

@@ -0,0 +1,16 @@
{{- /*gotype: main.CreateDeviceVM */}}
{{define "create_device_step1"}}
{{template "header" "Create Device - Choose Device Type"}}
<ul>
{{template "create_device_link" createDeviceLink "ram" "Random Access Memory" .Qr}}
</ul>
{{template "footer"}}
{{end}}
{{define "create_device_link"}}
{{if .Qr}}
<li><a href="/create?type=ram&qr={{.Qr}}">Random Access Memory</a></li>
{{- else}}
<li><a href="/create?type=ram">Random Access Memory</a></li>
{{- end}}
{{end}}