fradrive/templates/exam-correct.hamlet

37 lines
1.6 KiB
Plaintext

$newline never
<section>
<div uw-hide-columns="exam-correct">
<table .table .table--striped uw-exam-correct=#{intercalate "-" [toPathPiece tid, toPathPiece ssh, toPathPiece csh, toPathPiece examn]}>
<thead>
<tr .table__row .table__row--head>
<th .table__th .sortable .sorted-desc uw-hide-column-header="date">
_{MsgExamCorrectHeadDate}
<th .table__th .sortable uw-hide-column-header="participant">
_{MsgExamCorrectHeadParticipant}
^{iconTooltip participantHeadTooltip Nothing True}
$forall ExamPart{examPartNumber,examPartName} <- examParts
<th .table__th .sortable uw-hide-column-header=#{examPartNumber}>
$maybe name <- examPartName
<span .tooltip>
<span>
_{MsgExamCorrectHeadPart examPartNumber}
<span .tooltip__content>
_{MsgExamCorrectHeadPartName name}
$nothing
_{MsgExamCorrectHeadPart examPartNumber}
<th .table__th .sortable uw-hide-column-header="status">
_{MsgExamCorrectHeadStatus}
<tbody #exam-correct--new>
<tr .table__row>
<td .table__td>
<td .table__td>
<input #exam-correct__participant type="text">
$forall ExamPart{examPartNumber} <- examParts
<td .table__td>
^{ptsInput examPartNumber}
<td #exam-correct__status .table__td>
<button #exam-correct__send-btn .btn .btn-primary>
_{MsgExamCorrectButtonSend}
<tbody>