fradrive/templates/widgets/exam-correct.hamlet
2020-01-08 16:38:16 +01:00

31 lines
1.2 KiB
Plaintext

$newline never
<section>
<table #exam-correct uw-hide-columns="exam-corrections" .table .table--striped>
<thead>
<tr .table__row .table__row--head>
<th .table__th uw-hide-column-header="participant">
_{MsgExamCorrectHeadParticipant}
^{iconTooltip participantHeadTooltip Nothing True}
$forall ExamPart{examPartNumber,examPartName} <- examParts
<th .table__th>
$maybe name <- examPartName
<span .tooltip>
<span>
_{MsgExamCorrectHeadPart examPartNumber}
<span .tooltip__content>
_{MsgExamCorrectHeadPartName name}
$nothing
_{MsgExamCorrectHeadPart examPartNumber}
<th .table__th uw-hide-column-header="status">_{MsgExamCorrectHeadStatus}
<tbody>
<tr #exam-correct__new .table__row>
<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}