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 {
_element;
navIdent;
idPrefix;
radioButton;
closeButton;
container;
@ -47,12 +48,20 @@ export class PageActionSecondaryUtil {
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) {
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) {
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
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
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
, 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
{ navLink = NavLink

View File

@ -49,6 +49,8 @@ getInfoLecturerR =
setTitleI MsgInfoLecturerTitle
$(i18nWidgetFile "info-lecturer")
where
allocationInfo = $(i18nWidgetFile "allocation-info")
tooltipNew, tooltipProblem, tooltipPlanned, tooltipNewU2W :: WidgetFor UniWorX ()
tooltipNew = [whamlet| _{MsgLecturerInfoTooltipNew} |]
tooltipProblem = [whamlet| _{MsgLecturerInfoTooltipProblem} |]

View File

@ -1,86 +1,85 @@
$newline text
<section>
<p>
Jede Zentralanmeldung durchläuft
der Reihe nach folgende Phasen:
<dl .deflist>
<dt .deflist__dt>
_{MsgAllocationStaffRegister}
<dd .deflist__dd>
<p>
Veranstalter können nur in diesem Zeitraum ihre Veranstaltungen
zur Zentralanmeldung hinzufügen oder entfernen.
<p>
Pro Veranstaltung wird einzeln festgelegt,
ob Studierende einen Bewerbungstext und/oder Bewerbungsdateien
einreichen sollen.
Veranstalter stellen auch Anweisungen zur Bewerbung ein,
z.B. welchen Inhalt abzugebende Bewerbungsdateien enthalten sollen.
<p>
Zur Zentralanmeldung eingetragene Kurse
erlauben während dem gesamten Ablauf
der Zentralanmeldung keine anderweitigen Kursanmeldung mehr,
auch nicht durch den Veranstalter selbst.
<p>
Jede Zentralanmeldung durchläuft
der Reihe nach folgende Phasen:
<dl .deflist>
<dt .deflist__dt>
_{MsgAllocationStaffRegister}
<dd .deflist__dd>
<p>
Veranstalter können nur in diesem Zeitraum ihre Veranstaltungen
zur Zentralanmeldung hinzufügen oder entfernen.
<p>
Pro Veranstaltung wird einzeln festgelegt,
ob Studierende einen Bewerbungstext und/oder Bewerbungsdateien
einreichen sollen.
Veranstalter stellen auch Anweisungen zur Bewerbung ein,
z.B. welchen Inhalt abzugebende Bewerbungsdateien enthalten sollen.
<p>
Zur Zentralanmeldung eingetragene Kurse
erlauben während dem gesamten Ablauf
der Zentralanmeldung keine anderweitigen Kursanmeldung mehr,
auch nicht durch den Veranstalter selbst.
<dt .deflist__dt>
_{MsgAllocationRegister}
<dd .deflist__dd>
<p>
Studierende können sich nur in diesem Zeitraum
auf Plätze in Kursen einer Zentralanmeldung bewerben.
<p>
Bewerber können jedem Kurs der Zentralanmeldung eine Priorität zuweisen,
zwischen "dieser Kurs wäre meine erste Wahl" und "diesen Kurs besuche
ich nur, wenn ich keinen anderen Platz kriege".
Es kann auch mehreren Kursen die gleiche Priorität eingeräumt werden.
<p>
Bewerbungen für und Prioritisierung der Kurse können innerhalb des
Bewerbungszeitraums beliebig angepasst und zurückgezogen werden.
<p>
Studierende können auch mehr als einen Platz
in verschiedenen Kursen einer Zentralanmeldung anfordern,
falls die Kurskapazitäten und/oder Dringlichkeit ausreichend sind.
<p>
Bewerbungstexte und/oder Bewerbungsdateien
sind pro Kurs anzugeben, falls vom Veranstalter gefordert.
<dt .deflist__dt>
_{MsgAllocationRegister}
<dd .deflist__dd>
<p>
Studierende können sich nur in diesem Zeitraum
auf Plätze in Kursen einer Zentralanmeldung bewerben.
<p>
Bewerber können jedem Kurs der Zentralanmeldung eine Priorität zuweisen,
zwischen "dieser Kurs wäre meine erste Wahl" und "diesen Kurs besuche
ich nur, wenn ich keinen anderen Platz kriege".
Es kann auch mehreren Kursen die gleiche Priorität eingeräumt werden.
<p>
Bewerbungen für und Prioritisierung der Kurse können innerhalb des
Bewerbungszeitraums beliebig angepasst und zurückgezogen werden.
<p>
Studierende können auch mehr als einen Platz
in verschiedenen Kursen einer Zentralanmeldung anfordern,
falls die Kurskapazitäten und/oder Dringlichkeit ausreichend sind.
<p>
Bewerbungstexte und/oder Bewerbungsdateien
sind pro Kurs anzugeben, falls vom Veranstalter gefordert.
<dt .deflist__dt>
_{MsgAllocationStaffAllocation}
<dd .deflist__dd>
<p>
Veranstalter können nur in diesem Zeitraum die
Bewerbungen einsehen und bewerten.
$# <p>
$# Nur in manchen Zentralanmeldungen dürfen Veranstalter
$# Bewerber jetzt direkt ablehnen und/oder übernehmen.
$# <p>
$# Veranstalter haben noch eine letzte Möglichkeit,
$# die Kurskapazität anzupassen.
<dt .deflist__dt>
_{MsgAllocationStaffAllocation}
<dd .deflist__dd>
<p>
Veranstalter können nur in diesem Zeitraum die
Bewerbungen einsehen und bewerten.
$# <p>
$# Nur in manchen Zentralanmeldungen dürfen Veranstalter
$# Bewerber jetzt direkt ablehnen und/oder übernehmen.
$# <p>
$# Veranstalter haben noch eine letzte Möglichkeit,
$# die Kurskapazität anzupassen.
<dt .deflist__dt>
_{MsgAllocationProcess}
<dd .deflist__dd>
<p>
Die Plätze werden gemäß Studienfortschritt, Dringlichkeit
und der Bewertung durch den Veranstalter auf die Bewerber verteilt.
<p>
Die Bewerber werden diekt in den jeweiligen Kursen angemeldet.
Übernommene Bewerber, welche einen zugeteilten Platz
ohne Angabe eines triftigen Grundes nicht antreten,
werden in zukünftigen Zentralanmeldungen
unter Umständen benachteiligt.
<p>
Veranstalter können frühestens nach der erfolgten Zuteilung
Teilnehmer selbst an-/abmelden
und ggf. Nachrücker für freigewordene Plätze anfordern.
<dt .deflist__dt>
_{MsgAllocationProcess}
<dd .deflist__dd>
<p>
Die Plätze werden gemäß Studienfortschritt, Dringlichkeit
und der Bewertung durch den Veranstalter auf die Bewerber verteilt.
<p>
Die Bewerber werden diekt in den jeweiligen Kursen angemeldet.
Übernommene Bewerber, welche einen zugeteilten Platz
ohne Angabe eines triftigen Grundes nicht antreten,
werden in zukünftigen Zentralanmeldungen
unter Umständen benachteiligt.
<p>
Veranstalter können frühestens nach der erfolgten Zuteilung
Teilnehmer selbst an-/abmelden
und ggf. Nachrücker für freigewordene Plätze anfordern.
<p>
Der Ablauf einer Zentralanmeldung kann unter Umständen noch variieren.
<em>
Insbesondere: #
Fehlt in der Übersichtsseite einer Zentralanmeldung die Angabe einer dieser
Phasen, dann wurden die entsprechenden Zeiten noch nicht festgelegt!
<p>
Mehrere Zentralanmeldungen werden völlig unabhängig voneinander
abgewickelt.
<p>
Der Ablauf einer Zentralanmeldung kann unter Umständen noch variieren.
<em>
Insbesondere: #
Fehlt in der Übersichtsseite einer Zentralanmeldung die Angabe einer dieser
Phasen, dann wurden die entsprechenden Zeiten noch nicht festgelegt!
<p>
Mehrere Zentralanmeldungen werden völlig unabhängig voneinander
abgewickelt.

View File

@ -1,88 +1,87 @@
$newline text
<section>
<p>
Every central allocations progresses through the following stages in order:
<dl .deflist>
<dt .deflist__dt>
_{MsgAllocationStaffRegister}
<dd .deflist__dd>
<p>
Course administrators may register their courses for participation in
the central allocation and deregister them again at will.
<p>
Whether students are expected to provide text or files with their
applications is configured on a course-by-course basis.
Course administrators may specify instructions for application e.g. what
content the application files should have.
<p>
Courses registered for participation in the central allocation can not
gain participants through the entire course of the allocation.
Not even through manual enrollment by course administrators.
<p>
Every central allocations progresses through the following stages in order:
<dl .deflist>
<dt .deflist__dt>
_{MsgAllocationStaffRegister}
<dd .deflist__dd>
<p>
Course administrators may register their courses for participation in
the central allocation and deregister them again at will.
<p>
Whether students are expected to provide text or files with their
applications is configured on a course-by-course basis.
Course administrators may specify instructions for application e.g. what
content the application files should have.
<p>
Courses registered for participation in the central allocation can not
gain participants through the entire course of the allocation.
Not even through manual enrollment by course administrators.
<dt .deflist__dt>
_{MsgAllocationRegister}
<dd .deflist__dd>
<p>
Only during this phase may students apply to the various courses which
participate in the central allocation.
<p>
Applicants may assign priorities ("this course would be my first choice"
down to "I will only participate in this course if nothing else is
available to me") to courses they apply to.
Multiple courses may have the same priority.
<p>
Applications and priorities may be freely edited and retracted during
the application period.
<p>
Students may request more than one placement from a central allocation.
<dt .deflist__dt>
_{MsgAllocationRegister}
<dd .deflist__dd>
<p>
Only during this phase may students apply to the various courses which
participate in the central allocation.
<p>
Applicants may assign priorities ("this course would be my first choice"
down to "I will only participate in this course if nothing else is
available to me") to courses they apply to.
Multiple courses may have the same priority.
<p>
Applications and priorities may be freely edited and retracted during
the application period.
<p>
Students may request more than one placement from a central allocation.
Additional placements are made if sufficient capacity is available
and/or placements are sufficiently urgent.
<p>
Application texts and/or files need to be specified for each course
individually, as requested by the course administrators.
Additional placements are made if sufficient capacity is available
and/or placements are sufficiently urgent.
<p>
Application texts and/or files need to be specified for each course
individually, as requested by the course administrators.
<dt .deflist__dt>
_{MsgAllocationStaffAllocation}
<dd .deflist__dd>
<p>
Only during this phase may course administrators inspect and grade
applications.
$# <p>
$# Nur in manchen Zentralanmeldungen dürfen Veranstalter
$# Bewerber jetzt direkt ablehnen und/oder übernehmen.
$# <p>
$# Veranstalter haben noch eine letzte Möglichkeit,
$# die Kurskapazität anzupassen.
<dt .deflist__dt>
_{MsgAllocationStaffAllocation}
<dd .deflist__dd>
<p>
Only during this phase may course administrators inspect and grade
applications.
$# <p>
$# Nur in manchen Zentralanmeldungen dürfen Veranstalter
$# Bewerber jetzt direkt ablehnen und/oder übernehmen.
$# <p>
$# Veranstalter haben noch eine letzte Möglichkeit,
$# die Kurskapazität anzupassen.
<dt .deflist__dt>
_{MsgAllocationProcess}
<dd .deflist__dd>
<p>
Placements in courses are made with regard to the current study
progress, urgency, and the grading of the application as determined by a
course administrator.
<p>
Applicants are directly enrolled in the selected courses.
<dt .deflist__dt>
_{MsgAllocationProcess}
<dd .deflist__dd>
<p>
Placements in courses are made with regard to the current study
progress, urgency, and the grading of the application as determined by a
course administrator.
<p>
Applicants are directly enrolled in the selected courses.
Applicants which leave courses they were assigned in the course of a
central allocation may be affected negatively by this in future central
allocations.
<p>
Only after placements have been made, may course administrators enroll
and deregister participants of their courses.
Course administrators can request to be assigned successors to fill
their courses' remaining capacity.
Applicants which leave courses they were assigned in the course of a
central allocation may be affected negatively by this in future central
allocations.
<p>
Only after placements have been made, may course administrators enroll
and deregister participants of their courses.
Course administrators can request to be assigned successors to fill
their courses' remaining capacity.
<p>
Central allocation procedure may vary.
<p>
Central allocation procedure may vary.
<em>
In particular: #
<em>
In particular: #
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!
<p>
Multiple central allocations are handled entirely independently of one
another.
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!
<p>
Multiple central allocations are handled entirely independently of one
another.

View File

@ -1,7 +1,6 @@
$newline text
<section>
<section>
<h2>Veranstaltungen
<h2 #courses>_{MsgInfoLecturerCourses}
<dl .deflist>
<dt .deflist__dt> Veranstaltungs-Bezeichner
@ -138,7 +137,7 @@ $newline text
In Zukunft sind E-Mail-Benachrichtigungen bei Änderungen an den Terminen geplant.
<section>
<h2>Übungsbetrieb
<h2 #exercises>_{MsgInfoLecturerExercises}
<dl .deflist>
<dt .deflist__dt> Korrektoren
@ -230,7 +229,7 @@ $newline text
dem jeweiligen Korrektor zum Arbeitspensum angerechnet.
<section>
<h2>Tutorien
<h2 #tutorials>_{MsgInfoLecturerTutorials}
<dl .deflist>
<dt .deflist__dt> Termine
@ -286,8 +285,8 @@ $newline text
Kursverwalter können über die Teilnehmerliste der Veranstaltung Kursteilnehmer in Tutorien einteilen.
<section id="exams">
<h2> Prüfungen
<section>
<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.
<dl .deflist>
@ -366,8 +365,8 @@ $newline text
hierüber automatisiert eine Benachrichtigung.
<section id="allocations">
<h2> Zentralanmeldungen
<section>
<h2 #allocations>_{MsgInfoLecturerAllocations}
<dl .deflist>
<dt .deflist__dt> Namensschema
@ -399,6 +398,10 @@ $newline text
Veranstalter können, wenn sie das möchten, den Bewerbern ein Feedback
zu ihren Bewerbungen geben.
<dt .deflist__dt> Ablauf
<dd .defilst__dd>
^{allocationInfo}
<section>
<h2>Sonstiges

View File

@ -1,7 +1,6 @@
$newline text
<section>
<section>
<h2>Courses
<h2 #courses>_{MsgInfoLecturerCourses}
<dl .deflist>
<dt .deflist__dt> Course Names
@ -121,7 +120,7 @@ $newline text
Email notifications on changes of the dates are planned in the future.
<section>
<h2>Course Exercises
<h2 #exercises>_{MsgInfoLecturerExercises}
<dl .deflist>
<dt .deflist__dt> Correctors
@ -200,7 +199,7 @@ $newline text
submissions according to the corrector's correction proportions.
<section>
<h2>Tutorials
<h2 #tutorials>_{MsgInfoLecturerTutorials}
<dl .deflist>
<dt .deflist__dt> Occurrences
@ -253,8 +252,8 @@ $newline text
Course administrators can assign course participants to tutorials using the list of course participants.
<section id="exams">
<h2> Exams
<section>
<h2 #exams>_{MsgInfoLecturerExams}
<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.
@ -339,8 +338,8 @@ $newline text
to the exam offices. The offices that are affected by these changes will be automatically notified.
<section id="allocations">
<h2> Central Allocations
<section>
<h2 #allocations>_{MsgInfoLecturerAllocations}
<dl .deflist>
<dt .deflist__dt> Naming Schema
@ -368,6 +367,10 @@ $newline text
<dd .deflist__dd>
If so desired, course administrators can send back feedback on student's applications.
<dt .deflist__dt> Process
<dt .deflist__dd>
^{allocationInfo}
<section>
<h2>Miscellaneous