feat: targets on InfoLecturerR
This commit is contained in:
parent
c0d319e0fd
commit
5ffee38979
@ -12,6 +12,7 @@ const PAGEACTION_SECONDARY_CLASS = 'pagenav-secondary';
|
|||||||
export class PageActionSecondaryUtil {
|
export class PageActionSecondaryUtil {
|
||||||
_element;
|
_element;
|
||||||
navIdent;
|
navIdent;
|
||||||
|
idPrefix;
|
||||||
radioButton;
|
radioButton;
|
||||||
closeButton;
|
closeButton;
|
||||||
container;
|
container;
|
||||||
@ -47,12 +48,20 @@ export class PageActionSecondaryUtil {
|
|||||||
this.navIdent = links[0].id;
|
this.navIdent = links[0].id;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.radioButton = document.getElementById(`pageaction-item__expand-${this.navIdent}`);
|
const idMatch = this.navIdent.match(/^(r[0-9]+__)(.+)$/);
|
||||||
|
if (idMatch) {
|
||||||
|
this.idPrefix = idMatch[1];
|
||||||
|
this.navIdent = idMatch[2];
|
||||||
|
} else {
|
||||||
|
this.idPrefix = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
this.radioButton = document.getElementById(`${this.idPrefix}pageaction-item__expand-${this.navIdent}`);
|
||||||
if (!this.radioButton) {
|
if (!this.radioButton) {
|
||||||
throw new Error('Pageaction Secondary utility could not find associated radio button!');
|
throw new Error('Pageaction Secondary utility could not find associated radio button!');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.closeButton = document.getElementById('pageaction-item__expand-none');
|
this.closeButton = document.getElementById(`${this.idPrefix}pageaction-item__expand-none`);
|
||||||
if (!this.closeButton) {
|
if (!this.closeButton) {
|
||||||
throw new Error('Pageaction Secondary utility could not find radio button for closing!');
|
throw new Error('Pageaction Secondary utility could not find radio button for closing!');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2328,3 +2328,9 @@ NoFilter: Keine Einschränkung
|
|||||||
ExamGradingPass: Bestanden/Nicht Bestanden
|
ExamGradingPass: Bestanden/Nicht Bestanden
|
||||||
ExamGradingGrades: Numerische Noten
|
ExamGradingGrades: Numerische Noten
|
||||||
ExamGradingMixed: Gemischt
|
ExamGradingMixed: Gemischt
|
||||||
|
|
||||||
|
InfoLecturerCourses: Veranstaltungen
|
||||||
|
InfoLecturerExercises: Übungsbetrieb
|
||||||
|
InfoLecturerTutorials: Tutorien
|
||||||
|
InfoLecturerExams: Prüfungen
|
||||||
|
InfoLecturerAllocations: Zentralanmeldungen
|
||||||
@ -2328,3 +2328,9 @@ NoFilter: No restriction
|
|||||||
ExamGradingPass: Passed/Failed
|
ExamGradingPass: Passed/Failed
|
||||||
ExamGradingGrades: Numeric grades
|
ExamGradingGrades: Numeric grades
|
||||||
ExamGradingMixed: Mixed
|
ExamGradingMixed: Mixed
|
||||||
|
|
||||||
|
InfoLecturerCourses: Courses
|
||||||
|
InfoLecturerExercises: Course Exercises
|
||||||
|
InfoLecturerTutorials: Tutorials
|
||||||
|
InfoLecturerExams: Exams
|
||||||
|
InfoLecturerAllocations: Central allocations
|
||||||
@ -2904,7 +2904,22 @@ pageActions HelpR = return
|
|||||||
, navQuick' = mempty
|
, navQuick' = mempty
|
||||||
, navForceActive = False
|
, navForceActive = False
|
||||||
}
|
}
|
||||||
, navChildren = []
|
, navChildren = do
|
||||||
|
(section, navLabel) <-
|
||||||
|
[ ("courses", MsgInfoLecturerCourses)
|
||||||
|
, ("exercises", MsgInfoLecturerExercises)
|
||||||
|
, ("tutorials", MsgInfoLecturerTutorials)
|
||||||
|
, ("exams", MsgInfoLecturerExams)
|
||||||
|
, ("allocations", MsgInfoLecturerAllocations)
|
||||||
|
] :: [(Text, UniWorXMessage)]
|
||||||
|
return NavLink
|
||||||
|
{ navLabel
|
||||||
|
, navRoute = InfoLecturerR :#: section
|
||||||
|
, navAccess' = return True
|
||||||
|
, navType = NavTypeLink { navModal = False }
|
||||||
|
, navQuick' = mempty
|
||||||
|
, navForceActive = False
|
||||||
|
}
|
||||||
}
|
}
|
||||||
, NavPageActionPrimary
|
, NavPageActionPrimary
|
||||||
{ navLink = NavLink
|
{ navLink = NavLink
|
||||||
|
|||||||
@ -49,6 +49,8 @@ getInfoLecturerR =
|
|||||||
setTitleI MsgInfoLecturerTitle
|
setTitleI MsgInfoLecturerTitle
|
||||||
$(i18nWidgetFile "info-lecturer")
|
$(i18nWidgetFile "info-lecturer")
|
||||||
where
|
where
|
||||||
|
allocationInfo = $(i18nWidgetFile "allocation-info")
|
||||||
|
|
||||||
tooltipNew, tooltipProblem, tooltipPlanned, tooltipNewU2W :: WidgetFor UniWorX ()
|
tooltipNew, tooltipProblem, tooltipPlanned, tooltipNewU2W :: WidgetFor UniWorX ()
|
||||||
tooltipNew = [whamlet| _{MsgLecturerInfoTooltipNew} |]
|
tooltipNew = [whamlet| _{MsgLecturerInfoTooltipNew} |]
|
||||||
tooltipProblem = [whamlet| _{MsgLecturerInfoTooltipProblem} |]
|
tooltipProblem = [whamlet| _{MsgLecturerInfoTooltipProblem} |]
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
$newline text
|
$newline text
|
||||||
<section>
|
|
||||||
<p>
|
<p>
|
||||||
Jede Zentralanmeldung durchläuft
|
Jede Zentralanmeldung durchläuft
|
||||||
der Reihe nach folgende Phasen:
|
der Reihe nach folgende Phasen:
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
$newline text
|
$newline text
|
||||||
<section>
|
|
||||||
<p>
|
<p>
|
||||||
Every central allocations progresses through the following stages in order:
|
Every central allocations progresses through the following stages in order:
|
||||||
<dl .deflist>
|
<dl .deflist>
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
$newline text
|
$newline text
|
||||||
<section>
|
<section>
|
||||||
<section>
|
<h2 #courses>_{MsgInfoLecturerCourses}
|
||||||
<h2>Veranstaltungen
|
|
||||||
|
|
||||||
<dl .deflist>
|
<dl .deflist>
|
||||||
<dt .deflist__dt> Veranstaltungs-Bezeichner
|
<dt .deflist__dt> Veranstaltungs-Bezeichner
|
||||||
@ -138,7 +137,7 @@ $newline text
|
|||||||
In Zukunft sind E-Mail-Benachrichtigungen bei Änderungen an den Terminen geplant.
|
In Zukunft sind E-Mail-Benachrichtigungen bei Änderungen an den Terminen geplant.
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>Übungsbetrieb
|
<h2 #exercises>_{MsgInfoLecturerExercises}
|
||||||
|
|
||||||
<dl .deflist>
|
<dl .deflist>
|
||||||
<dt .deflist__dt> Korrektoren
|
<dt .deflist__dt> Korrektoren
|
||||||
@ -230,7 +229,7 @@ $newline text
|
|||||||
dem jeweiligen Korrektor zum Arbeitspensum angerechnet.
|
dem jeweiligen Korrektor zum Arbeitspensum angerechnet.
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>Tutorien
|
<h2 #tutorials>_{MsgInfoLecturerTutorials}
|
||||||
|
|
||||||
<dl .deflist>
|
<dl .deflist>
|
||||||
<dt .deflist__dt> Termine
|
<dt .deflist__dt> Termine
|
||||||
@ -286,8 +285,8 @@ $newline text
|
|||||||
Kursverwalter können über die Teilnehmerliste der Veranstaltung Kursteilnehmer in Tutorien einteilen.
|
Kursverwalter können über die Teilnehmerliste der Veranstaltung Kursteilnehmer in Tutorien einteilen.
|
||||||
|
|
||||||
|
|
||||||
<section id="exams">
|
<section>
|
||||||
<h2> Prüfungen
|
<h2 #exams>_{MsgInfoLecturerExams}
|
||||||
<p> Das Verwalten von Prüfungen im Allgemeinen sind bereits großteils implementiert und einsetzbar. ^{newU2WFeat} In Erweiterung zu UniWorX werden nun neben Klausuren auch allgemeinere Prüfungsformen unterstüzt, z.B. mündliche Prüfungen oder auch Projektabnahmen, bei denen die Teilnehmer in kleineren Gruppen zu verschiedenen Zeitpunkten und in verschiedenen Räumen geprüft werden.
|
<p> Das Verwalten von Prüfungen im Allgemeinen sind bereits großteils implementiert und einsetzbar. ^{newU2WFeat} In Erweiterung zu UniWorX werden nun neben Klausuren auch allgemeinere Prüfungsformen unterstüzt, z.B. mündliche Prüfungen oder auch Projektabnahmen, bei denen die Teilnehmer in kleineren Gruppen zu verschiedenen Zeitpunkten und in verschiedenen Räumen geprüft werden.
|
||||||
|
|
||||||
<dl .deflist>
|
<dl .deflist>
|
||||||
@ -366,8 +365,8 @@ $newline text
|
|||||||
hierüber automatisiert eine Benachrichtigung.
|
hierüber automatisiert eine Benachrichtigung.
|
||||||
|
|
||||||
|
|
||||||
<section id="allocations">
|
<section>
|
||||||
<h2> Zentralanmeldungen
|
<h2 #allocations>_{MsgInfoLecturerAllocations}
|
||||||
|
|
||||||
<dl .deflist>
|
<dl .deflist>
|
||||||
<dt .deflist__dt> Namensschema
|
<dt .deflist__dt> Namensschema
|
||||||
@ -399,6 +398,10 @@ $newline text
|
|||||||
Veranstalter können, wenn sie das möchten, den Bewerbern ein Feedback
|
Veranstalter können, wenn sie das möchten, den Bewerbern ein Feedback
|
||||||
zu ihren Bewerbungen geben.
|
zu ihren Bewerbungen geben.
|
||||||
|
|
||||||
|
<dt .deflist__dt> Ablauf
|
||||||
|
<dd .defilst__dd>
|
||||||
|
^{allocationInfo}
|
||||||
|
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>Sonstiges
|
<h2>Sonstiges
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
$newline text
|
$newline text
|
||||||
<section>
|
<section>
|
||||||
<section>
|
<h2 #courses>_{MsgInfoLecturerCourses}
|
||||||
<h2>Courses
|
|
||||||
|
|
||||||
<dl .deflist>
|
<dl .deflist>
|
||||||
<dt .deflist__dt> Course Names
|
<dt .deflist__dt> Course Names
|
||||||
@ -121,7 +120,7 @@ $newline text
|
|||||||
Email notifications on changes of the dates are planned in the future.
|
Email notifications on changes of the dates are planned in the future.
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>Course Exercises
|
<h2 #exercises>_{MsgInfoLecturerExercises}
|
||||||
|
|
||||||
<dl .deflist>
|
<dl .deflist>
|
||||||
<dt .deflist__dt> Correctors
|
<dt .deflist__dt> Correctors
|
||||||
@ -200,7 +199,7 @@ $newline text
|
|||||||
submissions according to the corrector's correction proportions.
|
submissions according to the corrector's correction proportions.
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>Tutorials
|
<h2 #tutorials>_{MsgInfoLecturerTutorials}
|
||||||
|
|
||||||
<dl .deflist>
|
<dl .deflist>
|
||||||
<dt .deflist__dt> Occurrences
|
<dt .deflist__dt> Occurrences
|
||||||
@ -253,8 +252,8 @@ $newline text
|
|||||||
Course administrators can assign course participants to tutorials using the list of course participants.
|
Course administrators can assign course participants to tutorials using the list of course participants.
|
||||||
|
|
||||||
|
|
||||||
<section id="exams">
|
<section>
|
||||||
<h2> Exams
|
<h2 #exams>_{MsgInfoLecturerExams}
|
||||||
<p> Large parts of the management of exams have been implemented and are already usable.<br />
|
<p> Large parts of the management of exams have been implemented and are already usable.<br />
|
||||||
^{newU2WFeat} In addition to UniWorX, Uni2work supports more general forms of exams (e.g. oral exams, practical exams), for which participants can be grouped and examined in different rooms and on different occurrences per group.
|
^{newU2WFeat} In addition to UniWorX, Uni2work supports more general forms of exams (e.g. oral exams, practical exams), for which participants can be grouped and examined in different rooms and on different occurrences per group.
|
||||||
|
|
||||||
@ -339,8 +338,8 @@ $newline text
|
|||||||
to the exam offices. The offices that are affected by these changes will be automatically notified.
|
to the exam offices. The offices that are affected by these changes will be automatically notified.
|
||||||
|
|
||||||
|
|
||||||
<section id="allocations">
|
<section>
|
||||||
<h2> Central Allocations
|
<h2 #allocations>_{MsgInfoLecturerAllocations}
|
||||||
|
|
||||||
<dl .deflist>
|
<dl .deflist>
|
||||||
<dt .deflist__dt> Naming Schema
|
<dt .deflist__dt> Naming Schema
|
||||||
@ -368,6 +367,10 @@ $newline text
|
|||||||
<dd .deflist__dd>
|
<dd .deflist__dd>
|
||||||
If so desired, course administrators can send back feedback on student's applications.
|
If so desired, course administrators can send back feedback on student's applications.
|
||||||
|
|
||||||
|
<dt .deflist__dt> Process
|
||||||
|
<dt .deflist__dd>
|
||||||
|
^{allocationInfo}
|
||||||
|
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>Miscellaneous
|
<h2>Miscellaneous
|
||||||
|
|||||||
Reference in New Issue
Block a user