Compare commits
No commits in common. "789a15757196f683a0b302fa2791f3445accb069" and "b9cd82867baea26d3db70f4f87426915289d8580" have entirely different histories.
789a157571
...
b9cd82867b
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