feat: targets on InfoLecturerR

This commit is contained in:
Gregor Kleen 2020-02-19 11:14:51 +01:00
parent c0d319e0fd
commit 5ffee38979
9 changed files with 221 additions and 179 deletions

View File

@ -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!');
} }

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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} |]

View File

@ -1,9 +1,8 @@
$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:
<dl .deflist> <dl .deflist>
<dt .deflist__dt> <dt .deflist__dt>
_{MsgAllocationStaffRegister} _{MsgAllocationStaffRegister}
<dd .deflist__dd> <dd .deflist__dd>
@ -74,13 +73,13 @@ $newline text
Teilnehmer selbst an-/abmelden Teilnehmer selbst an-/abmelden
und ggf. Nachrücker für freigewordene Plätze anfordern. und ggf. Nachrücker für freigewordene Plätze anfordern.
<p> <p>
Der Ablauf einer Zentralanmeldung kann unter Umständen noch variieren. Der Ablauf einer Zentralanmeldung kann unter Umständen noch variieren.
<em> <em>
Insbesondere: # Insbesondere: #
Fehlt in der Übersichtsseite einer Zentralanmeldung die Angabe einer dieser Fehlt in der Übersichtsseite einer Zentralanmeldung die Angabe einer dieser
Phasen, dann wurden die entsprechenden Zeiten noch nicht festgelegt! Phasen, dann wurden die entsprechenden Zeiten noch nicht festgelegt!
<p> <p>
Mehrere Zentralanmeldungen werden völlig unabhängig voneinander Mehrere Zentralanmeldungen werden völlig unabhängig voneinander
abgewickelt. abgewickelt.

View File

@ -1,8 +1,7 @@
$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>
<dt .deflist__dt> <dt .deflist__dt>
_{MsgAllocationStaffRegister} _{MsgAllocationStaffRegister}
<dd .deflist__dd> <dd .deflist__dd>
@ -74,7 +73,7 @@ $newline text
Course administrators can request to be assigned successors to fill Course administrators can request to be assigned successors to fill
their courses' remaining capacity. their courses' remaining capacity.
<p> <p>
Central allocation procedure may vary. Central allocation procedure may vary.
<em> <em>
@ -82,7 +81,7 @@ $newline text
If, on the central allocation's page, no times are specified for one of the If, on the central allocation's page, no times are specified for one of the
phases mentioned above, the time in question has not been determined yet! phases mentioned above, the time in question has not been determined yet!
<p> <p>
Multiple central allocations are handled entirely independently of one Multiple central allocations are handled entirely independently of one
another. another.

View File

@ -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

View File

@ -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