simplified vendor form.

This commit is contained in:
2022-07-15 07:38:15 -07:00
parent 586978823e
commit d16b9c9a5e
2 changed files with 359 additions and 396 deletions

View File

@@ -73,6 +73,23 @@
[:label.label label]))
[:div.control [raw-field {} child]]]))]))
(defn horizontal-control []
(let [[label & children] (r/children (r/current-component))]
[:div.field.is-horizontal
(when label
[:div.field-label [:label.label label]])
[:div.field-body
(for [[i child] (map vector (range) children)]
^{:key i}
[:div.field
child])]]))
(defn horizontal-field []
(let [[label child] (r/children (r/current-component))]
[horizontal-control
label
[raw-field {} child]]))
(defn section [{:keys [title]}]
[:<>
[:h4.is-4.title title]