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

@ -2327,4 +2327,10 @@ 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

@ -2327,4 +2327,10 @@ 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,86 +1,85 @@
$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> <p>
<p> Veranstalter können nur in diesem Zeitraum ihre Veranstaltungen
Veranstalter können nur in diesem Zeitraum ihre Veranstaltungen zur Zentralanmeldung hinzufügen oder entfernen.
zur Zentralanmeldung hinzufügen oder entfernen. <p>
<p> Pro Veranstaltung wird einzeln festgelegt,
Pro Veranstaltung wird einzeln festgelegt, ob Studierende einen Bewerbungstext und/oder Bewerbungsdateien
ob Studierende einen Bewerbungstext und/oder Bewerbungsdateien einreichen sollen.
einreichen sollen. Veranstalter stellen auch Anweisungen zur Bewerbung ein,
Veranstalter stellen auch Anweisungen zur Bewerbung ein, z.B. welchen Inhalt abzugebende Bewerbungsdateien enthalten sollen.
z.B. welchen Inhalt abzugebende Bewerbungsdateien enthalten sollen. <p>
<p> Zur Zentralanmeldung eingetragene Kurse
Zur Zentralanmeldung eingetragene Kurse erlauben während dem gesamten Ablauf
erlauben während dem gesamten Ablauf der Zentralanmeldung keine anderweitigen Kursanmeldung mehr,
der Zentralanmeldung keine anderweitigen Kursanmeldung mehr, auch nicht durch den Veranstalter selbst.
auch nicht durch den Veranstalter selbst.
<dt .deflist__dt> <dt .deflist__dt>
_{MsgAllocationRegister} _{MsgAllocationRegister}
<dd .deflist__dd> <dd .deflist__dd>
<p> <p>
Studierende können sich nur in diesem Zeitraum Studierende können sich nur in diesem Zeitraum
auf Plätze in Kursen einer Zentralanmeldung bewerben. auf Plätze in Kursen einer Zentralanmeldung bewerben.
<p> <p>
Bewerber können jedem Kurs der Zentralanmeldung eine Priorität zuweisen, Bewerber können jedem Kurs der Zentralanmeldung eine Priorität zuweisen,
zwischen "dieser Kurs wäre meine erste Wahl" und "diesen Kurs besuche zwischen "dieser Kurs wäre meine erste Wahl" und "diesen Kurs besuche
ich nur, wenn ich keinen anderen Platz kriege". ich nur, wenn ich keinen anderen Platz kriege".
Es kann auch mehreren Kursen die gleiche Priorität eingeräumt werden. Es kann auch mehreren Kursen die gleiche Priorität eingeräumt werden.
<p> <p>
Bewerbungen für und Prioritisierung der Kurse können innerhalb des Bewerbungen für und Prioritisierung der Kurse können innerhalb des
Bewerbungszeitraums beliebig angepasst und zurückgezogen werden. Bewerbungszeitraums beliebig angepasst und zurückgezogen werden.
<p> <p>
Studierende können auch mehr als einen Platz Studierende können auch mehr als einen Platz
in verschiedenen Kursen einer Zentralanmeldung anfordern, in verschiedenen Kursen einer Zentralanmeldung anfordern,
falls die Kurskapazitäten und/oder Dringlichkeit ausreichend sind. falls die Kurskapazitäten und/oder Dringlichkeit ausreichend sind.
<p> <p>
Bewerbungstexte und/oder Bewerbungsdateien Bewerbungstexte und/oder Bewerbungsdateien
sind pro Kurs anzugeben, falls vom Veranstalter gefordert. sind pro Kurs anzugeben, falls vom Veranstalter gefordert.
<dt .deflist__dt> <dt .deflist__dt>
_{MsgAllocationStaffAllocation} _{MsgAllocationStaffAllocation}
<dd .deflist__dd> <dd .deflist__dd>
<p> <p>
Veranstalter können nur in diesem Zeitraum die Veranstalter können nur in diesem Zeitraum die
Bewerbungen einsehen und bewerten. Bewerbungen einsehen und bewerten.
$# <p> $# <p>
$# Nur in manchen Zentralanmeldungen dürfen Veranstalter $# Nur in manchen Zentralanmeldungen dürfen Veranstalter
$# Bewerber jetzt direkt ablehnen und/oder übernehmen. $# Bewerber jetzt direkt ablehnen und/oder übernehmen.
$# <p> $# <p>
$# Veranstalter haben noch eine letzte Möglichkeit, $# Veranstalter haben noch eine letzte Möglichkeit,
$# die Kurskapazität anzupassen. $# die Kurskapazität anzupassen.
<dt .deflist__dt> <dt .deflist__dt>
_{MsgAllocationProcess} _{MsgAllocationProcess}
<dd .deflist__dd> <dd .deflist__dd>
<p> <p>
Die Plätze werden gemäß Studienfortschritt, Dringlichkeit Die Plätze werden gemäß Studienfortschritt, Dringlichkeit
und der Bewertung durch den Veranstalter auf die Bewerber verteilt. und der Bewertung durch den Veranstalter auf die Bewerber verteilt.
<p> <p>
Die Bewerber werden diekt in den jeweiligen Kursen angemeldet. Die Bewerber werden diekt in den jeweiligen Kursen angemeldet.
Übernommene Bewerber, welche einen zugeteilten Platz Übernommene Bewerber, welche einen zugeteilten Platz
ohne Angabe eines triftigen Grundes nicht antreten, ohne Angabe eines triftigen Grundes nicht antreten,
werden in zukünftigen Zentralanmeldungen werden in zukünftigen Zentralanmeldungen
unter Umständen benachteiligt. unter Umständen benachteiligt.
<p> <p>
Veranstalter können frühestens nach der erfolgten Zuteilung Veranstalter können frühestens nach der erfolgten Zuteilung
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,88 +1,87 @@
$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> <p>
<p> Course administrators may register their courses for participation in
Course administrators may register their courses for participation in the central allocation and deregister them again at will.
the central allocation and deregister them again at will. <p>
<p> Whether students are expected to provide text or files with their
Whether students are expected to provide text or files with their applications is configured on a course-by-course basis.
applications is configured on a course-by-course basis. Course administrators may specify instructions for application e.g. what
Course administrators may specify instructions for application e.g. what content the application files should have.
content the application files should have. <p>
<p> Courses registered for participation in the central allocation can not
Courses registered for participation in the central allocation can not gain participants through the entire course of the allocation.
gain participants through the entire course of the allocation. Not even through manual enrollment by course administrators.
Not even through manual enrollment by course administrators.
<dt .deflist__dt> <dt .deflist__dt>
_{MsgAllocationRegister} _{MsgAllocationRegister}
<dd .deflist__dd> <dd .deflist__dd>
<p> <p>
Only during this phase may students apply to the various courses which Only during this phase may students apply to the various courses which
participate in the central allocation. participate in the central allocation.
<p> <p>
Applicants may assign priorities ("this course would be my first choice" Applicants may assign priorities ("this course would be my first choice"
down to "I will only participate in this course if nothing else is down to "I will only participate in this course if nothing else is
available to me") to courses they apply to. available to me") to courses they apply to.
Multiple courses may have the same priority. Multiple courses may have the same priority.
<p> <p>
Applications and priorities may be freely edited and retracted during Applications and priorities may be freely edited and retracted during
the application period. the application period.
<p> <p>
Students may request more than one placement from a central allocation. Students may request more than one placement from a central allocation.
Additional placements are made if sufficient capacity is available Additional placements are made if sufficient capacity is available
and/or placements are sufficiently urgent. and/or placements are sufficiently urgent.
<p> <p>
Application texts and/or files need to be specified for each course Application texts and/or files need to be specified for each course
individually, as requested by the course administrators. individually, as requested by the course administrators.
<dt .deflist__dt> <dt .deflist__dt>
_{MsgAllocationStaffAllocation} _{MsgAllocationStaffAllocation}
<dd .deflist__dd> <dd .deflist__dd>
<p> <p>
Only during this phase may course administrators inspect and grade Only during this phase may course administrators inspect and grade
applications. applications.
$# <p> $# <p>
$# Nur in manchen Zentralanmeldungen dürfen Veranstalter $# Nur in manchen Zentralanmeldungen dürfen Veranstalter
$# Bewerber jetzt direkt ablehnen und/oder übernehmen. $# Bewerber jetzt direkt ablehnen und/oder übernehmen.
$# <p> $# <p>
$# Veranstalter haben noch eine letzte Möglichkeit, $# Veranstalter haben noch eine letzte Möglichkeit,
$# die Kurskapazität anzupassen. $# die Kurskapazität anzupassen.
<dt .deflist__dt> <dt .deflist__dt>
_{MsgAllocationProcess} _{MsgAllocationProcess}
<dd .deflist__dd> <dd .deflist__dd>
<p> <p>
Placements in courses are made with regard to the current study Placements in courses are made with regard to the current study
progress, urgency, and the grading of the application as determined by a progress, urgency, and the grading of the application as determined by a
course administrator. course administrator.
<p> <p>
Applicants are directly enrolled in the selected courses. Applicants are directly enrolled in the selected courses.
Applicants which leave courses they were assigned in the course of a Applicants which leave courses they were assigned in the course of a
central allocation may be affected negatively by this in future central central allocation may be affected negatively by this in future central
allocations. allocations.
<p> <p>
Only after placements have been made, may course administrators enroll Only after placements have been made, may course administrators enroll
and deregister participants of their courses. and deregister participants of their courses.
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>
In particular: # In particular: #
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