change text, add config to show hint or not, styling

This commit is contained in:
Harald Bamberger
2024-07-10 15:52:57 +02:00
parent 8b254b3967
commit 46ea054bac
3 changed files with 19 additions and 7 deletions
+2
View File
@@ -332,4 +332,6 @@ define('DOCSBOX_ENABLED', false);
// (true | false) // (true | false)
define('DIENSTVERHAELTNIS_SUPPORT', false); define('DIENSTVERHAELTNIS_SUPPORT', false);
// Falls Studstatus (Abmeldung, AbmeldungStg, Unterbrechung, Wiederholung) verwendet wird zeige Hinweistext bei Eingabe einer kommissionellen oder zusaetzlichen kommissionellen Pruefung
define('FAS_STUDSTATUS_SHOW_KOMM_PRFG_HINT', false);
?> ?>
+2 -1
View File
@@ -5198,7 +5198,8 @@ function StudentPruefungTypChange()
{ {
var typ = document.getElementById('student-pruefung-menulist-typ').value; var typ = document.getElementById('student-pruefung-menulist-typ').value;
var hinweisid = document.getElementById('student-pruefung-textbox-datum-hinweis'); var hinweisid = document.getElementById('student-pruefung-textbox-datum-hinweis');
hinweisid.hidden = (typ != 'kommPruef'); //if(hinweisid === NULL) return;
hinweisid.hidden = (typ != 'kommPruef' && typ != 'zusKommPruef');
} }
// **** // ****
+15 -6
View File
@@ -34,6 +34,11 @@ if(defined('CIS_GESAMTNOTE_PUNKTE') && CIS_GESAMTNOTE_PUNKTE)
else else
$punktehidden = 'true'; $punktehidden = 'true';
if(defined('FAS_STUDSTATUS_SHOW_KOMM_PRFG_HINT') && FAS_STUDSTATUS_SHOW_KOMM_PRFG_HINT)
$show_komm_prfg_hint = true;
else
$show_komm_prfg_hint = false;
echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'; echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
?> ?>
@@ -252,15 +257,19 @@ echo '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>';
<spacer flex="1" /> <spacer flex="1" />
</hbox> </hbox>
</row> </row>
<?php if($show_komm_prfg_hint) { ?>
<row id="student-pruefung-textbox-datum-hinweis" hidden="true"> <row id="student-pruefung-textbox-datum-hinweis" hidden="true">
<label></label> <label></label>
<hbox> <hbox style="font-size: 75%;">
<image height="17" width="17" class="alert-icon"/> <image style="width: 20px; margin: 15px 5px 15px 10px;" class="message-icon"/>
<description class="small-margin"> <vbox>
Bitte das Datum der Benotung eintragen und nicht das Datum der Prüfung. <description class="small-margin">Bitte bei der Neuanlage das Datum der Noteneintragung (i. d. R. heute) eintragen, </description>
</description> <description class="small-margin">um einen korrekten Fristenablauf der Wiederholung zu ermöglichen. </description>
</hbox> <description class="small-margin">Das Datum der Prüfung bitte im Anmerkungsfeld vermerken.</description>
</vbox>
</hbox>
</row> </row>
<?php } ?>
<row> <row>
<label value="Anmerkung" control="student-pruefung-textbox-anmerkung"/> <label value="Anmerkung" control="student-pruefung-textbox-anmerkung"/>
<textbox id="student-pruefung-textbox-anmerkung" disabled="true" maxlength="256"/> <textbox id="student-pruefung-textbox-anmerkung" disabled="true" maxlength="256"/>