Files
pcinv/templates/create_device_step1.gohtml
Sebastiaan de Schaetzen ff1d95edab
All checks were successful
Build / build (push) Successful in 1m30s
Add ability to add hard drives
2025-03-24 16:15:52 +01:00

19 lines
627 B
Plaintext

{{- /*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}}">{{"ram" | formatType}}</a></li>
<li><a href="/create?type=hdd&qr={{.Qr}}">{{"hdd" | formatType}}</a></li>
{{- else}}
<li><a href="/create?type=ram">{{"ram" | formatType}}</a></li>
<li><a href="/create?type=hdd">{{"hdd" | formatType}}</a></li>
{{- end}}
{{end}}