summaryrefslogtreecommitdiff
path: root/src/view-components.lisp
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2023-04-01 18:04:45 -0700
committercolin <colin@cicadas.surf>2023-04-01 18:04:45 -0700
commit2b6e1eec2bf5c27223fbf2d09cd10a322fc09909 (patch)
treed26e6b1b945864bcde8ecb9b2cb7cb1caf277d29 /src/view-components.lisp
parenta73b31c1ca88d0cba7365e648e3da70c4124f27e (diff)
Add: I dunno. lots of little thingsmini-marathon
Diffstat (limited to 'src/view-components.lisp')
-rw-r--r--src/view-components.lisp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/view-components.lisp b/src/view-components.lisp
index 1c21952..ee88628 100644
--- a/src/view-components.lisp
+++ b/src/view-components.lisp
@@ -27,13 +27,13 @@ the class string for the contained list items."
(dolist (item data)
(render :option item))))))
-(defrender :checkboxes ((data list) id class)
+(defrender :checkboxes ((data list) id class item-name)
(with-html
(when data
- (:div :class (or class (format nil "checkboxes ~a" (class-of (first data))))
- :id (or id (format nil "checkboxes-~a" (class-of (first data))))
+ (:div :class (or class (format nil "checkboxes ~a" (class-name (class-of (first data)))))
+ :id (or id (format nil "checkboxes-~a" (class-name (class-of (first data)))))
(dolist (item data)
- (render :checkbox item)
+ (render :checkbox item :name item-name)
(:br))))))