From 46ea054bac435a6af98bfe5438d224927b92e56d Mon Sep 17 00:00:00 2001 From: Harald Bamberger Date: Wed, 10 Jul 2024 15:52:57 +0200 Subject: [PATCH] change text, add config to show hint or not, styling --- config/global.config-default.inc.php | 2 ++ content/student/studentoverlay.js.php | 3 ++- .../student/studentpruefungoverlay.xul.php | 21 +++++++++++++------ 3 files changed, 19 insertions(+), 7 deletions(-) diff --git a/config/global.config-default.inc.php b/config/global.config-default.inc.php index d12b23828..b945a15d2 100644 --- a/config/global.config-default.inc.php +++ b/config/global.config-default.inc.php @@ -332,4 +332,6 @@ define('DOCSBOX_ENABLED', false); // (true | 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); ?> diff --git a/content/student/studentoverlay.js.php b/content/student/studentoverlay.js.php index 687729ae5..86a56c916 100644 --- a/content/student/studentoverlay.js.php +++ b/content/student/studentoverlay.js.php @@ -5198,7 +5198,8 @@ function StudentPruefungTypChange() { var typ = document.getElementById('student-pruefung-menulist-typ').value; var hinweisid = document.getElementById('student-pruefung-textbox-datum-hinweis'); - hinweisid.hidden = (typ != 'kommPruef'); + //if(hinweisid === NULL) return; + hinweisid.hidden = (typ != 'kommPruef' && typ != 'zusKommPruef'); } // **** diff --git a/content/student/studentpruefungoverlay.xul.php b/content/student/studentpruefungoverlay.xul.php index 6fcbca6de..0e2148a43 100644 --- a/content/student/studentpruefungoverlay.xul.php +++ b/content/student/studentpruefungoverlay.xul.php @@ -34,6 +34,11 @@ if(defined('CIS_GESAMTNOTE_PUNKTE') && CIS_GESAMTNOTE_PUNKTE) else $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 ''; ?> @@ -252,15 +257,19 @@ echo ''; + +