Compare commits

..

No commits in common. "789a15757196f683a0b302fa2791f3445accb069" and "b9cd82867baea26d3db70f4f87426915289d8580" have entirely different histories.

2 changed files with 0 additions and 15 deletions

View file

@ -1,8 +0,0 @@
package components
type FormSwitch struct {
ID string
Label string
IsChecked bool
IsDisabled bool
}

View file

@ -1,7 +0,0 @@
{{define "form_switch"}}
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" name="{{.ID}}" id="{{.ID}}" {{if eq .IsChecked true}} checked{{end}} {{if eq .IsDisabled true}} disabled{{end}}>
<label class="form-check-label" for="{{.ID}}">{{.Label}}</label>
</div>
{{end}}