This repository has been archived on 2024-10-24. You can view files and clone it, but cannot push or open issues or pull requests.
fradrive-old/templates/exam-correct.hamlet
2022-10-12 09:35:16 +02:00

70 lines
3.7 KiB
Plaintext

$newline never
$# SPDX-FileCopyrightText: 2022 Gregor Kleen <gregor.kleen@ifi.lmu.de>,Sarah Vaupel <vaupel.sarah@campus.lmu.de>,Winnie Ros <winnie.ros@campus.lmu.de>
$#
$# SPDX-License-Identifier: AGPL-3.0-or-later
<section .uw-exam-correct--explanation>
^{examCorrectExplanation}
<section>
<div uw-hide-columns="exam-correct" .scrolltable .scrolltable--bordered>
<table .table .table--striped .table--hover uw-exam-correct=#{toPathPiece examCorrectIdent} uw-sort-table=exam-correct-#{toPathPiece examCorrectIdent} uw-no-check-all>
<thead>
<tr .table__row .table__row--head>
<th .table__th .uw-exam-correct--date-cell uw-exam-correct-header="date" uw-hide-column-header="date">
_{MsgExamCorrectHeadDate}
<th .table__th .uw-exam-correct--user-cell uw-exam-correct-header="user" uw-hide-column-header="user">
_{MsgExamCorrectHeadParticipant}
$forall ExamPart{examPartNumber} <- examParts
<th .table__th .uw-exam-correct--part-cell uw-exam-correct-header=#{examPartNumber} uw-hide-column-header=#{examPartNumber}>
_{MsgExamCorrectHeadPart examPartNumber}
$if mayEditResults
<th .table__th .uw-exam-correct--result-cell uw-exam-correct-header="result" uw-hide-column-header="result" colspan=2>
_{MsgTableExamResult}
<th .table__th uw-exam-correct-header="status" uw-hide-column-header="status">
_{MsgExamCorrectHeadStatus}
<tbody>
<tr .table__row #exam-correct__new>
<td .table__td .uw-exam-correct--date-cell>
<td .table__td .exam-correct--input-status>
<input #exam-correct__user .uw-exam-correct--user-cell type="text" autofocus minLength=#{minNeedleLength}>
<i #exam-correct__user-status .fas .fa-fw>
<ul #exam-correct__user-candidates>
<div #exam-correct__user-candidates-more hidden=true>
_{MsgExamCorrectUserCandidatesMore}
$forall ExamPart{examPartNumber} <- examParts
<td .table__td .uw-exam-correct--part-cell>
^{ptsInput examPartNumber}
<input #exam-correct__#{examPartNumber}--delete type="checkbox" style="display:none" uw-no-checkbox .uw-exam-correct--delete-exam-part>
<label for=exam-correct__#{examPartNumber}--delete .fas .fa-fw .fa-trash>
$if mayEditResults
<td .table__td #uw-exam-correct__result>
<select>
<option value="none">
_{MsgExamCorrectExamResultNone}
$if is _ExamGradingGrades examGradingMode || is _ExamGradingMixed examGradingMode
<option value="grade">
_{MsgExamResultGrade}
$if is _ExamGradingPass examGradingMode || is _ExamGradingMixed examGradingMode
<option value="pass">
_{MsgExamResultPass}
<option value="voided">
_{MsgExamResultVoided}
<option value="no-show">
_{MsgExamResultNoShow}
<option value="delete">
_{MsgExamCorrectExamResultDelete}
<td .table__td #uw-exam-correct__result__pass-grade>
<select .uw-exam-correct__grade>
$forall grade <- examGrades
<option value=#{toPathPiece grade}>
_{grade}
<select .uw-exam-correct__pass>
$forall pass <- [ExamPassed True, ExamPassed False]
<option value=#{toPathPiece pass}>
_{pass}
<td #exam-correct__status .table__td>
<button #exam-correct__send-btn .btn .btn-primary>
_{MsgExamCorrectButtonSend}