parent
9a12e00f7f
commit
bc63324ddf
@ -400,6 +400,19 @@ examOccurrenceCell Entity{entityVal = ExamOccurrence{..}} =
|
|||||||
wgtCell [whamlet|#{examOccurrenceName}:^{formatTimeRangeW SelFormatDateTime examOccurrenceStart examOccurrenceEnd}|]
|
wgtCell [whamlet|#{examOccurrenceName}:^{formatTimeRangeW SelFormatDateTime examOccurrenceStart examOccurrenceEnd}|]
|
||||||
|
|
||||||
|
|
||||||
|
examCell :: IsDBTable m a => Course -> Exam -> DBCell m a
|
||||||
|
examCell Course{..} Exam{..} = anchorCell link name `mappend` desc
|
||||||
|
where
|
||||||
|
link = CExamR courseTerm courseSchool courseShorthand examName EShowR
|
||||||
|
name = citext2widget examName
|
||||||
|
desc = case examDescription of
|
||||||
|
Nothing -> mempty
|
||||||
|
(Just descr) -> cell [whamlet|
|
||||||
|
$newline never
|
||||||
|
<div>
|
||||||
|
^{modal "Beschreibung" (Right $ toWidget descr)}
|
||||||
|
|]
|
||||||
|
|
||||||
-- also see Handler.Utils.Widgets.companyWidget
|
-- also see Handler.Utils.Widgets.companyWidget
|
||||||
companyCell :: IsDBTable m a => CompanyShorthand -> CompanyName -> Bool -> DBCell m a
|
companyCell :: IsDBTable m a => CompanyShorthand -> CompanyName -> Bool -> DBCell m a
|
||||||
companyCell csh cname isSupervisor = anchorCell curl name
|
companyCell csh cname isSupervisor = anchorCell curl name
|
||||||
|
|||||||
Reference in New Issue
Block a user