feat(grfn/bbbg): Style attendee notes
Change-Id: Ib2c5be57194cd4cc25dd72aa458462534450a01e Reviewed-on: https://cl.tvl.fyi/c/depot/+/4636 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi>
This commit is contained in:
parent
a4aa42bbda
commit
24815f58fe
1 changed files with 15 additions and 7 deletions
|
@ -40,7 +40,10 @@
|
||||||
[:th "Last Vaccination Check"]
|
[:th "Last Vaccination Check"]
|
||||||
[:th "Notes"]]]
|
[:th "Notes"]]]
|
||||||
[:tbody
|
[:tbody
|
||||||
(for [attendee attendees
|
(for [attendee (sort-by
|
||||||
|
(comp #{edit-notes} ::attendee/id)
|
||||||
|
(comp - compare)
|
||||||
|
attendees)
|
||||||
:let [id (::attendee/id attendee)]]
|
:let [id (::attendee/id attendee)]]
|
||||||
[:tr
|
[:tr
|
||||||
[:td (::attendee/meetup-name attendee)]
|
[:td (::attendee/meetup-name attendee)]
|
||||||
|
@ -64,13 +67,18 @@
|
||||||
[:td
|
[:td
|
||||||
[:form.organizer-notes {:method :post
|
[:form.organizer-notes {:method :post
|
||||||
:action (str "/attendees/" id "/notes")}
|
:action (str "/attendees/" id "/notes")}
|
||||||
|
[:div.form-group
|
||||||
[:input {:type :text :name "notes"
|
[:input {:type :text :name "notes"
|
||||||
:value (::attendee/organizer-notes attendee)}]
|
:value (::attendee/organizer-notes attendee)
|
||||||
[:input {:type "Submit" :value "Save Notes"}]]]
|
:autofocus true}]]
|
||||||
|
[:div.form-group
|
||||||
|
[:input {:type "Submit" :value "Save Notes"}]]]]
|
||||||
[:td
|
[:td
|
||||||
(::attendee/organizer-notes attendee)
|
[:p
|
||||||
|
(::attendee/organizer-notes attendee)]
|
||||||
|
[:p
|
||||||
[:a {:href (str "/attendees?edit-notes=" id)}
|
[:a {:href (str "/attendees?edit-notes=" id)}
|
||||||
"Edit Notes"]])])]]])
|
"Edit Notes"]]])])]]])
|
||||||
|
|
||||||
(defn attendees-routes [{:keys [db]}]
|
(defn attendees-routes [{:keys [db]}]
|
||||||
(routes
|
(routes
|
||||||
|
|
Loading…
Reference in a new issue