Fix indentation
This commit is contained in:
parent
d9985dcc98
commit
9538f5713e
1 changed files with 8 additions and 9 deletions
|
@ -103,15 +103,14 @@ BODY: The contents of the select menu, typically options.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
(select (:size \"sm\")
|
(select (:size \"sm\")
|
||||||
(select-option (:content \"Option 1\" :value \"opt1\")))"
|
(:content \"Option 1\" :value \"opt1\"))"
|
||||||
(let ((class-attr (cond
|
(let ((class-attr (cond ((null size) "form-select")
|
||||||
((null size) "form-select")
|
((numberp size) "form-select")
|
||||||
((numberp size) "form-select")
|
((and (stringp size)
|
||||||
((and (stringp size)
|
(string= size "multiple")) "form-select")
|
||||||
(string= size "multiple")) "form-select")
|
((stringp size)
|
||||||
((stringp size)
|
(format nil "form-select form-select-~a" size))
|
||||||
(format nil "form-select form-select-~a" size))
|
(t (error "Invalid size specification: ~a" size)))))
|
||||||
(t (error "Invalid size specification: ~a" size)))))
|
|
||||||
`(spinneret:with-html
|
`(spinneret:with-html
|
||||||
(:select :class ,class-attr
|
(:select :class ,class-attr
|
||||||
,@(when (numberp size) `(:size ,size))
|
,@(when (numberp size) `(:size ,size))
|
||||||
|
|
Loading…
Add table
Reference in a new issue