forked from goffee/core
11 lines
462 B
HTML
11 lines
462 B
HTML
|
{{define "form_checkbox"}}
|
||
|
<div class="input-container">
|
||
|
<label class="form-label">{{.Label}}</label>
|
||
|
{{range $options := .AllCheckbox}}
|
||
|
<div class="form-check">
|
||
|
<input class="form-check-input" type="checkbox" name="{{$options.Name}}" id="{{$options.ID}}" value="{{$options.Value}}"{{if eq $options.IsChecked true}} checked{{end}}>
|
||
|
<label class="form-check-label" for="{{$options.ID}}">{{$options.Label}}</label>
|
||
|
</div>
|
||
|
{{end}}
|
||
|
</div>
|
||
|
{{end}}
|