11 lines
No EOL
566 B
HTML
11 lines
No EOL
566 B
HTML
{{define "form_radio"}}
|
|
<div class="input-container">
|
|
<label class="form-label">{{.Label}}</label>
|
|
{{range $options := .AllRadios}}
|
|
<div class="form-check{{if eq $options.IsDisabled true}} disabled{{end}}">
|
|
<input class="form-check-input" type="radio" name="{{$options.Name}}" id="{{$options.ID}}" value="{{$options.Value}}"{{if eq $options.IsDisabled true}} disabled=""{{end}}{{if eq $options.IsChecked true}} checked=""{{end}}>
|
|
<label class="form-check-label" for="{{$options.ID}}">{{$options.Label}}</label>
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
{{end}} |