Skip to content

Commit 828cc17

Browse files
committed
make label text clickable
1 parent 12493ff commit 828cc17

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

templates/repo/actions/workflow_dispatch_inputs.tmpl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
{{end}}
1616
</select>
1717
{{else if eq .Type "boolean"}}
18-
<div class="ui inline checkbox">
19-
<label>{{or .Description .Name}}</label>
18+
{{/* htmx doesn't trigger our JS code to attach fomantic label to checkbox, so here we use standard checkbox */}}
19+
<label class="tw-flex flex-text-inline">
2020
<input type="checkbox" name="{{.Name}}" {{if eq .Default "true"}}checked{{end}}>
21-
</div>
21+
{{or .Description .Name}}
22+
</label>
2223
{{else if eq .Type "number"}}
2324
<label>{{or .Description .Name}}:</label>
2425
<input name="{{.Name}}" value="{{.Default}}" {{if .Required}}required{{end}}>

0 commit comments

Comments
 (0)