@@ -172,7 +181,7 @@ $this->load->view(
abschlussbeurteilung_kurzbz == $abschlusspruefung->abschlussbeurteilung_kurzbz ? " selected" : "" ?>
-
+
diff --git a/public/css/lehre/pruefungsprotokoll.css b/public/css/lehre/pruefungsprotokoll.css
index a73e67950..b5db9b0b5 100644
--- a/public/css/lehre/pruefungsprotokoll.css
+++ b/public/css/lehre/pruefungsprotokoll.css
@@ -1,4 +1,4 @@
-/* threshold for form full screen */
+/* threshold for full screen form */
@media (max-width:1075px) {
#page-wrapper {
margin-right: 0;
@@ -18,6 +18,7 @@
background-color: #f5f5f5;
}
+/* table date and time cell widths */
.timecellwidth {
width: 20%;
}
@@ -35,3 +36,10 @@
margin-top: 10px;
margin-bottom: 10px;
}
+
+/* timepicker */
+.ui-timepicker-table td a {
+ width: inherit;
+ line-height: 1;
+ text-align: center;
+}
diff --git a/public/js/lehre/pruefungsprotokoll.js b/public/js/lehre/pruefungsprotokoll.js
index c11bc9ee7..1834737ff 100644
--- a/public/js/lehre/pruefungsprotokoll.js
+++ b/public/js/lehre/pruefungsprotokoll.js
@@ -16,29 +16,26 @@ $("document").ready(function() {
data.password = $("#password").val();
}
- if ($("#verfCheck").prop('checked'))
+ var checkFields = Pruefungsprotokoll.checkFields(data, $("#verfCheck").prop('checked'));
+ $("#protocolform td").removeClass('has-error');
+ if (checkFields.length > 0)
{
- var checkFields = Pruefungsprotokoll.checkFields(data, $("#verfCheck").prop('checked'));
- $("#protocolform td").removeClass('has-error');
- if (checkFields.length > 0)
+ var errortext = '';
+ for (var i = 0; i < checkFields.length; i++)
{
- var errortext = '';
- for (var i = 0; i < checkFields.length; i++)
+ var error = checkFields[i];
+ $.each(error, function(i, n)
{
- var error = checkFields[i];
- $.each(error, function(i, n)
- {
- console.log($("#"+i).closest('td'));
- $("#"+i).closest('td').addClass('has-error');
- if (errortext !== '')
- errortext += '; ';
- errortext += n;
- });
- }
-
- FHC_DialogLib.alertError(errortext);
- return;
+ console.log($("#"+i).closest('td'));
+ $("#"+i).closest('td').addClass('has-error');
+ if (errortext !== '')
+ errortext += '; ';
+ errortext += n;
+ });
}
+
+ FHC_DialogLib.alertError(errortext);
+ return;
}
Pruefungsprotokoll.saveProtokoll($("#abschlusspruefung_id").val(),data);
@@ -49,17 +46,12 @@ $("document").ready(function() {
function() { // if student not mentally and physically fit (checkbox), no form entry
if ($(this).prop('checked'))
{
- $("#abschlussbeurteilung_kurzbz, #pruefungsbeginn, #pruefungsende").prop('disabled', false);
- $("#abschlussbeurteilung_kurzbz").val($("#abschlussbeurteilung_kurzbz option").first().val());
+ $("#abschlussbeurteilung_kurzbz").prop('disabled', false).val($("#abschlussbeurteilung_kurzbz option").first().val());
}
else
{
- $("#abschlussbeurteilung_kurzbz, #pruefungsbeginn, #pruefungsende").prop('disabled', true).val(null);
+ $("#abschlussbeurteilung_kurzbz").prop('disabled', true).val(null);
}
-
- $("#pruefungsbeginn").val(null);
- $("#pruefungsende").val(null);
-
}
);
@@ -94,10 +86,10 @@ var Pruefungsprotokoll = {
if (dataresponse.freigabedatum)
{
$("#saveProtocolBtn").prop("disabled", true);
- $("#freigegebenText").html(' ' + FHC_PhrasesLib.t("pruefungsprotokoll", "freigegebenAm") +
+ $("#freigegebenText").html(' ' + FHC_PhrasesLib.t("abschlusspruefung", "freigegebenAm") +
' ' + dataresponse.freigabedatum)
}
- FHC_DialogLib.alertSuccess("Prüfung erfolgreich gespeichert!");
+ FHC_DialogLib.alertSuccess(FHC_PhrasesLib.t("abschlusspruefung", "pruefungGespeichert"));
}
else if(FHC_AjaxClient.isError(data))
{
@@ -105,30 +97,39 @@ var Pruefungsprotokoll = {
}
},
errorCallback: function() {
- FHC_DialogLib.alertError("Fehler beim Speichern der Prüfung");
+ FHC_DialogLib.alertError(FHC_PhrasesLib.t("abschlusspruefung", "pruefungSpeichernFehler"));
},
veilTimeout: 0
}
);
},
- checkFields: function(data)
+ checkFields: function(data, verfChecked)
{
var errors = [];
- if (data.abschlussbeurteilung_kurzbz == "")
- errors.push({"abschlussbeurteilung_kurzbz": "Abschlussbeurteilung darf nicht leer sein!"}); // TODO phrases
+ if (data.abschlussbeurteilung_kurzbz == "" && verfChecked)
+ errors.push({"abschlussbeurteilung_kurzbz": FHC_PhrasesLib.t("abschlusspruefung", "abschlussbeurteilungLeer")});
var zeitregex = /^[0-2][0-9]:[0-5][0-9]$/;
if (data.uhrzeit == "")
- errors.push({"pruefungsbeginn": "Beginnzeit darf nicht leer sein!"});
+ {
+ if (verfChecked)
+ errors.push({"pruefungsbeginn": FHC_PhrasesLib.t("abschlusspruefung", "beginnzeitLeer")});
+ }
else if(!zeitregex.test(data.uhrzeit))
- errors.push({"pruefungsbeginn": "Beginnzeit muss Format Stunden:Minuten haben!"});
+ errors.push({"pruefungsbeginn": FHC_PhrasesLib.t("abschlusspruefung", "beginnzeitFormatError")});
if (data.endezeit == "")
- errors.push({"pruefungsende": "Endzeit darf nicht leer sein!"});
+ {
+ if (verfChecked)
+ errors.push({"pruefungsende": FHC_PhrasesLib.t("abschlusspruefung", "endezeitLeer")});
+ }
else if(!zeitregex.test(data.endezeit))
- errors.push({"pruefungsende": "Endzeit muss Format Stunden:Minuten haben!"});
+ errors.push({"pruefungsende": FHC_PhrasesLib.t("abschlusspruefung", "endezeitFormatError")});
+
+ if (data.uhrzeit > data.endezeit && data.endezeit != "" && data.uhrzeit != "")
+ errors.push({"pruefungsende": FHC_PhrasesLib.t("abschlusspruefung", "endezeitBeforeError")});
return errors;
}
diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php
index 9e501aaf2..944f931b9 100644
--- a/system/phrasesupdate.php
+++ b/system/phrasesupdate.php
@@ -4174,6 +4174,46 @@ When on hold, the date is only a reminder.',
)
)
),
+ array(
+ 'app' => 'core',
+ 'category' => 'password',
+ 'phrase' => 'wrongPassword',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => 'Falsches Passwort',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => 'Wrong password',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
+ array(
+ 'app' => 'core',
+ 'category' => 'password',
+ 'phrase' => 'passwordMissing',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => 'Passwort fehlt',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => 'Password missing',
+ 'description' => '',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
array(
'app' => 'core',
'category' => 'global',
@@ -5714,6 +5754,26 @@ When on hold, the date is only a reminder.',
)
)
),
+ array(
+ 'app' => 'lehrauftrag',
+ 'category' => 'ui',
+ 'phrase' => 'ungueltigeParameter',
+ 'insertvon' => 'system',
+ 'phrases' => array(
+ array(
+ 'sprache' => 'German',
+ 'text' => 'Ungültige Parameter',
+ 'description' => '',
+ 'insertvon' => 'system'
+ ),
+ array(
+ 'sprache' => 'English',
+ 'text' => 'Invalid parameters',
+ 'description' => 'Hours',
+ 'insertvon' => 'system'
+ )
+ )
+ ),
array(
'app' => 'core',
'category' => 'table',
@@ -6900,7 +6960,7 @@ When on hold, the date is only a reminder.',
),
array(
'sprache' => 'English',
- 'text' => 'Bachelor paper',
+ 'text' => 'Bachelor Paper',
'description' => '',
'insertvon' => 'system'
)
@@ -7220,7 +7280,7 @@ When on hold, the date is only a reminder.',
),
array(
'sprache' => 'English',
- 'text' => '',
+ 'text' => 'Declaration of Agreement',
'description' => '',
'insertvon' => 'system'
)
@@ -7448,19 +7508,19 @@ Any unusual occurrences
),
array(
'sprache' => 'English',
- 'text' => 'Assesment and criteria Bachelor Examination
+ 'text' => 'Assessment and criteria Bachelor Examination
Passed with distinction
- Der oder die KandidatIn ist in der Lage, Wissen aus verschiedenen Lernbereichen fachlich korrekt in einem weit über das Wesentliche hinausgehenden Ausmaß souverän auf neue Situationen anzuwenden, und das noch dazu auf einem sehr hohen argumentativen Niveau.
+ The candidate is within the scope of the task able to apply knowledge from various learning areas to new situations in a technically correct manner, far beyond what is essential, and at a very high level of argument.
Passed with merit
- Der oder die KandidatIn ist in der Lage, Wissen aus verschiedenen Lernbereichen fachlich korrekt in einem über das Wesentliche hinausgehenden Ausmaß auf neue Situationen anzuwenden, und das noch dazu auf einem hohen argumentativen Niveau.
+ The candidate is within the scope of the task able to apply knowledge from various learning areas in a technically correct manner to an extent beyond what is essential to new situations, and at a high level of argument.
Passed
- Alle Lehrveranstaltungen (einschl. Bachelorarbeit) und Bachelorprüfung wurden positiv beurteilt.
+ Bachelor thesis and Bachelor examination were successfully completed.
Failed
@@ -7491,7 +7551,7 @@ Any unusual occurrences
Bestanden
- Alle Lehrveranstaltungen (einschl. Bachelorarbeit) und Bachelorprüfung wurden positiv beurteilt.
+ Alle Lehrveranstaltungen (einschl. Masterarbeit) und Masterprüfung wurden positiv beurteilt.
Nicht bestanden
@@ -7502,24 +7562,26 @@ Any unusual occurrences
),
array(
'sprache' => 'English',
- 'text' => '\'Assesment and criteria Masters Examination
+ 'text' => 'Assessment and criteria Masters Examination
Passed with distinction
- Der oder die KandidatIn ist in der Lage, Wissen aus verschiedenen Lernbereichen fachlich korrekt in einem weit über das Wesentliche hinausgehenden Ausmaß souverän auf neue Situationen anzuwenden, und das noch dazu auf einem sehr hohen argumentativen Niveau.
+ Master thesis was graded "excellent"
+ The candidate is within the scope of the task able to apply knowledge from various learning areas to new situations in a technically correct manner, far beyond what is essential, and at a very high level of argument.
Passed with merit
- Der oder die KandidatIn ist in der Lage, Wissen aus verschiedenen Lernbereichen fachlich korrekt in einem über das Wesentliche hinausgehenden Ausmaß auf neue Situationen anzuwenden, und das noch dazu auf einem hohen argumentativen Niveau.
+ Master thesis graded not worse than "good"
+ The candidate is within the scope of the task able to apply knowledge from various learning areas in a technically correct manner to an extent beyond what is essential to new situations, and at a high level of argument.
Passed
- Alle Lehrveranstaltungen (einschl. Bachelorarbeit) und Bachelorprüfung wurden positiv beurteilt.
+ Master thesis and Master examination were successfully completed.