about summary refs log tree commit diff
path: root/users/grfn
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-12-26T15·20-0500
committerclbot <clbot@tvl.fyi>2021-12-26T16·06+0000
commit24815f58fe219916b2a48ac66d0ac0d17f9bc1c9 (patch)
tree17f213da3082aba024196b0901ee39a86874d4f7 /users/grfn
parenta4aa42bbdacb154dc1a3abd3a8ef20be4736ba6a (diff)
feat(grfn/bbbg): Style attendee notes r/3418
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>
Diffstat (limited to 'users/grfn')
-rw-r--r--users/grfn/bbbg/src/bbbg/handlers/attendees.clj22
1 files changed, 15 insertions, 7 deletions
diff --git a/users/grfn/bbbg/src/bbbg/handlers/attendees.clj b/users/grfn/bbbg/src/bbbg/handlers/attendees.clj
index 2410dd74e2..99815ab6aa 100644
--- a/users/grfn/bbbg/src/bbbg/handlers/attendees.clj
+++ b/users/grfn/bbbg/src/bbbg/handlers/attendees.clj
@@ -40,7 +40,10 @@
       [:th "Last Vaccination Check"]
       [:th "Notes"]]]
     [:tbody
-     (for [attendee attendees
+     (for [attendee (sort-by
+                     (comp #{edit-notes} ::attendee/id)
+                     (comp - compare)
+                     attendees)
            :let [id (::attendee/id attendee)]]
        [:tr
         [:td (::attendee/meetup-name attendee)]
@@ -64,13 +67,18 @@
           [:td
            [:form.organizer-notes {:method :post
                                    :action (str "/attendees/" id "/notes")}
-            [:input {:type :text :name "notes"
-                     :value (::attendee/organizer-notes attendee)}]
-            [:input {:type "Submit" :value "Save Notes"}]]]
+            [:div.form-group
+             [:input {:type :text :name "notes"
+                      :value (::attendee/organizer-notes attendee)
+                      :autofocus true}]]
+            [:div.form-group
+             [:input {:type "Submit" :value "Save Notes"}]]]]
           [:td
-           (::attendee/organizer-notes attendee)
-           [:a {:href (str "/attendees?edit-notes=" id)}
-            "Edit Notes"]])])]]])
+           [:p
+            (::attendee/organizer-notes attendee)]
+           [:p
+            [:a {:href (str "/attendees?edit-notes=" id)}
+             "Edit Notes"]]])])]]])
 
 (defn attendees-routes [{:keys [db]}]
   (routes