{{define "form_select"}} <div class="input-container"> <label for="{{.ID}}" class="form-label">{{.Label}}</label> <select class="form-select" id="{{.ID}}" name="{{.ID}}"> {{range $options := .AllOptions}} <option value="{{$options.Value}}" {{if eq $options.Value $.SelectedOption.Value }}selected="selected"{{end}}>{{$options.Caption}}</option> {{end}} </select> </div> {{end}}