1
0
Fork 0
forked from goffee/core

add form components

This commit is contained in:
Zeni Kim 2024-10-08 07:58:42 -05:00
parent 015e85bf7b
commit 8f17bf6a8c
8 changed files with 87 additions and 0 deletions

View file

@ -0,0 +1,11 @@
{{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}}