$# Display a table showing the result of the corrector assignment for possibly several sheets $# Expected variables" $# sids :: list of SheetId $# openSubs :: Map from SheetId to SubAssignInfo, a datatype collecting info about open submissions $# assignmentStatus :: Map from SheetId to (Set SubmissionId, Set SubmisionId), i.e. assigned submissions and unassigned submissions for that sheet $if null sids
_{MsgSheetNoOldUnassigned} $else
| _{MsgSheet} | _{MsgNrSubmissionsTotal} | _{MsgNrSubmissionsUnassigned} | _{MsgNrCorrectors} $# Header-Styling indicates, whether assignment was attempted or not. $with hasAssignment <- not (Map.null assignmentStatus) | _{MsgNrSubmissionsNewlyAssigned} | _{MsgNrSubmissionsNotAssigned} $forall sid <- sids $case Map.lookup sid openSubs $of Nothing $of Just SubAssignInfo{saiName, saiSubmissionNr, saiUnassignedNr, saiCorrectorNr} | ||
|---|---|---|---|---|---|---|---|
| #{saiName} | #{show saiSubmissionNr} | #{show saiUnassignedNr} | #{show saiCorrectorNr} $case Map.lookup sid assignmentStatus $of Nothing | $of Just (assigned,unassigned) | #{show (Set.size assigned)} | #{show (Set.size unassigned)} |