implement SSR for instance config page
This commit is contained in:
11
web/templates/select.go.tmpl
Normal file
11
web/templates/select.go.tmpl
Normal file
@@ -0,0 +1,11 @@
|
||||
{{define "select"}}
|
||||
<select class="w3-select w3-border" id="{{.ID}}" name="{{.ID}}">
|
||||
{{range .Options}}
|
||||
{{if .Selected}}
|
||||
<option value="{{.Value}}" selected>{{.Display}}</option>
|
||||
{{else}}
|
||||
<option value="{{.Value}}">{{.Display}}</option>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</select>
|
||||
{{end}}
|
Reference in New Issue
Block a user