12 lines
531 B
Cheetah
12 lines
531 B
Cheetah
{{define "form_input_boolean"}}
|
|
{{ $fullProperty := getFullProperty .Parent .Property }}
|
|
{{ $checked := getValue .Defaults .Values $fullProperty }}
|
|
<label for="yes:{{ $fullProperty }}">
|
|
Yes
|
|
<input type="radio" id="yes:{{ $fullProperty }}" name="bool:{{ $fullProperty }}" value="yes" {{if $checked}}checked="yes"{{end}} />
|
|
</label>
|
|
<label for="no:{{ $fullProperty }}">
|
|
No
|
|
<input type="radio" id="no:{{ $fullProperty }}" name="bool:{{ $fullProperty }}" value="no" {{if not $checked}}checked{{end}} />
|
|
</label>
|
|
{{end}} |