Skip to content

Commit

Permalink
Absent list
Browse files Browse the repository at this point in the history
  • Loading branch information
deciduously committed Feb 27, 2018
1 parent 3bc81f6 commit c872269
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 8 additions & 2 deletions resource/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ ul {
}

.kidlist {
display: inline-block;
}

.absentlist {
display: inline-block;
vertical-align: top;
}

.classlist {
Expand All @@ -27,8 +33,8 @@ ul {
}

.room {
width: 200px;
max-width: 200px;
width: 400px;
max-width: 400px;
max-height: 400px;
max-height: 400px;
display: inline-block;
Expand Down
9 changes: 6 additions & 3 deletions src/cljs/attendance/ui.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@
" Max: " (:max r))]
(for [k kids]
^{:key (:idx k)}
[kid k])
(for [out (s/absent name)]
[kid k])]
[:ul.absentlist
[:li [:h4 "Out"]]
(doall
(for [out (s/absent name)]
^{:key out}
[:li.absent out])]]))
[:li.absent out]))]]))

(defn core-roster
"Render all core rooms"
Expand Down

0 comments on commit c872269

Please sign in to comment.