diff options
author | June McEnroe <june@causal.agency> | 2020-07-14 22:35:48 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-07-14 22:35:48 -0400 |
commit | 1f9c439703856f2e9596e541230cbea10506cb27 (patch) | |
tree | 403a63285b3f332fd5aaadda258143b580fad911 /events.c | |
parent | Put events forms in a flex (diff) | |
download | scooper-1f9c439703856f2e9596e541230cbea10506cb27.tar.gz scooper-1f9c439703856f2e9596e541230cbea10506cb27.zip |
Put the checkbox inside the label
Diffstat (limited to 'events.c')
-rw-r--r-- | events.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/events.c b/events.c index 4afdd54..65b869b 100644 --- a/events.c +++ b/events.c @@ -99,16 +99,15 @@ displayForm(struct kreq *req, struct khtmlreq *html, struct Scope scope) { KATTR_VALUE, time->parsed.s, KATTR__MAX ) + || khtml_elem(html, KELEM_LABEL) || khtml_attr( html, KELEM_INPUT, KATTR_TYPE, "checkbox", - KATTR_ID, Keys[Tidy].name, KATTR_NAME, Keys[Tidy].name, KATTR_VALUE, "1", (req->fieldmap[Tidy] ? KATTR_CHECKED : KATTR__MAX), "checked", KATTR__MAX ) - || khtml_attr(html, KELEM_LABEL, KATTR_FOR, Keys[Tidy].name, KATTR__MAX) || khtml_puts(html, "Hide general events") || khtml_closeelem(html, 1) || khtml_attr( |