Compare commits
No commits in common. "cf8b3bdde7acffbaadfc58f3ac8d14f8a54d9155" and "00b8012edf98c62045dccb12cdd837abf740f268" have entirely different histories.
cf8b3bdde7
...
00b8012edf
2 changed files with 0 additions and 15 deletions
|
@ -1,8 +0,0 @@
|
|||
package components
|
||||
|
||||
type FormSwitch struct {
|
||||
ID string
|
||||
Label string
|
||||
IsChecked bool
|
||||
IsDisabled bool
|
||||
}
|
|
@ -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}}
|
Loading…
Reference in a new issue