chore: strikethrough names of ignored occurrences
This commit is contained in:
parent
25fa6ef0d7
commit
84a50646b0
@ -243,6 +243,8 @@ postEAutoOccurrenceR tid ssh csh examn = do
|
||||
, formSubmit = FormNoSubmit
|
||||
, formAttrs = [("class", "buttongroup")]
|
||||
}
|
||||
isIgnored :: ExamOccurrenceId -> Bool
|
||||
isIgnored occId = maybe False (Set.member occId) $ formResult' calculateRes' ^? _Just . _eaofConfig . _eaocIgnoreRooms . _eaoirIgnored
|
||||
|
||||
ExamAutoOccurrenceAcceptForm{..} <- maybe (redirect $ CExamR tid ssh csh examn EUsersR) return calcResult
|
||||
|
||||
|
||||
@ -28,7 +28,11 @@ $newline never
|
||||
$forall Entity occId ExamOccurrence{ examOccurrenceName, examOccurrenceRoom, examOccurrenceStart, examOccurrenceEnd, examOccurrenceDescription, examOccurrenceCapacity } <- occurrences
|
||||
<tr .table__row>
|
||||
<td .table__td>
|
||||
_{examOccurrenceName}
|
||||
$if isIgnored occId
|
||||
<strike>
|
||||
_{examOccurrenceName}
|
||||
$else
|
||||
_{examOccurrenceName}
|
||||
<td .table__td>
|
||||
_{loadProp (occLoad occId) examOccurrenceCapacity}
|
||||
<td .table__td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user