Prototype another approach for ctrl

This commit is contained in:
Marcus Kammer 2023-09-04 13:40:51 +02:00
parent 19a4e5990a
commit ebc313f342

View file

@ -37,6 +37,16 @@
(:input :type type :name name-str :value value-str)
(format nil " ~a" (string-trim '(#\Space) value))))))
(defun ctrl-describe (id text)
(spinneret:with-html
(:div :id id :class "form-text" text)))
(defun ctrl-1 (label type placeholder)
(spinneret:with-html
(:div :class (spacing :property "m" :side "b" :size 3)
(:label :class "form-label" label
(:input :class "form-control" :type type :placeholder placeholder)))))
(defmacro ctrl (&rest rest)
"This macro generates Bootstrap form controls.