fradrive/templates/course/applications-list.hamlet

30 lines
1015 B
Plaintext

$newline never
$if not (null allocationsBounds)
<section>
<h2>_{MsgCourseAllocationsBounds (length allocationsBounds)}
<dl .deflist>
$forall (Allocation{allocationName, allocationRegisterTo}, numApps, numFirstChoice, capped) <- allocationsBounds
<dt .deflist__dt>
#{allocationName}
<dd .deflist__dd>
<p>
$if numApps == numFirstChoice
_{MsgCourseAllocationsBoundCoincide numFirstChoice}
$else
_{MsgCourseAllocationsBound numApps numFirstChoice}
$if capped
<p .bound_explanation>
_{MsgCourseAllocationsBoundCapped}
$if registrationOpen allocationRegisterTo
<p .bound_explanation>
_{MsgCourseAllocationsBoundWarningOpen}
$if mayAccept
<section>
<p>_{MsgBtnAcceptApplicationsTip}
^{acceptWgt}
<section>
<h2>_{MsgMenuCourseApplications}
^{notification NotificationBroad =<< messageWidget Warning studyFeaturesWarning}
^{table}