2024-10-08 08:58:42 -04:00
|
|
|
{{define "form_checkbox"}}
|
|
|
|
<div class="input-container">
|
2024-12-17 14:26:57 -05:00
|
|
|
{{ if .Label }}<label class="form-label">{{.Label}}</label>{{end}}
|
2024-10-08 08:58:42 -04:00
|
|
|
{{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}}
|