Initial create device page
This commit is contained in:
23
templates/create_device.gohtml
Normal file
23
templates/create_device.gohtml
Normal file
@@ -0,0 +1,23 @@
|
||||
{{- /*gotype: main.CreateDeviceVM */}}
|
||||
{{define "create_device"}}
|
||||
{{template "header" "Create Device"}}
|
||||
<form action="/create?id={{.Qr}}" method="post">
|
||||
<label for="qr">QR Code:</label>
|
||||
<input type="text" id="qr" name="qr" value="{{.Qr}}" required disabled>
|
||||
<br>
|
||||
<label for="type">Type:</label>
|
||||
<input type="text" id="type" name="type" required>
|
||||
<br>
|
||||
<label for="brand">Brand:</label>
|
||||
<input type="text" id="brand" name="brand">
|
||||
<br>
|
||||
<label for="name">Name:</label>
|
||||
<input type="text" id="name" name="name">
|
||||
<br>
|
||||
<label for="description">Description:</label>
|
||||
<textarea id="description" name="description"></textarea>
|
||||
<br>
|
||||
<button type="submit">Create</button>
|
||||
</form>
|
||||
{{template "footer"}}
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user