fix(exam-correct): different values for examResult options
This commit is contained in:
parent
edacc2016d
commit
aa794c06e0
@ -104,14 +104,13 @@ export class ExamCorrect {
|
||||
);
|
||||
|
||||
this._resultSelect.addEventListener('change', () => {
|
||||
// FIXME not internationalized
|
||||
if (this._resultSelect.value !== 'Prüfungsergebnis')
|
||||
if (this._resultSelect.value !== 'result')
|
||||
this._resultGradeSelect.classList.add('grade-hidden');
|
||||
else
|
||||
this._resultGradeSelect.classList.remove('grade-hidden');
|
||||
});
|
||||
|
||||
if (this._resultSelect.value !== 'Prüfungsergebnis')
|
||||
if (this._resultSelect.value !== 'result')
|
||||
this._resultGradeSelect.classList.add('grade-hidden');
|
||||
|
||||
this._lastColumnIndex = this._element.querySelector('thead > tr').querySelectorAll('th').length - 1;
|
||||
|
||||
@ -38,19 +38,19 @@ $newline never
|
||||
$if mayEditResults
|
||||
<td .table__td #uw-exam-correct__result>
|
||||
<select>
|
||||
<option>
|
||||
<option value="none">
|
||||
_{MsgExamResultNone}
|
||||
$if examShowGrades
|
||||
<option>
|
||||
<option value="result">
|
||||
_{MsgExamResult}
|
||||
$else
|
||||
<option>
|
||||
<option value="passed">
|
||||
_{MsgExamPassed}
|
||||
<option>
|
||||
<option value="failed">
|
||||
_{MsgExamNotPassed}
|
||||
<option>
|
||||
<option value="voided">
|
||||
_{MsgExamResultVoided}
|
||||
<option>
|
||||
<option value="no-show">
|
||||
_{MsgExamResultNoShow}
|
||||
<td .table__td #uw-exam-correct__result__grade>
|
||||
<select>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user