From eade9b7bebf663a65f79d3e9a67269f2a175645d Mon Sep 17 00:00:00 2001 From: Johann Hoffmann Date: Wed, 10 Dec 2025 17:41:01 +0100 Subject: [PATCH] fixed accordion header padding size; student sees public mail, lektor gets notifs to private; remove unused injections; rewrite viewData validation for old Cis to remove console.warnings; clear abgabetermin.kurzbz when changing to smth not quality gate to avoid leaky kurzbz; fixed accordion header style offset for both cis environments; tooltip fix; only show abgabedatum if termin has upload_allowed; lower max-width in old cis; activated custom persistence for assistenz page + stricter promise handling around tableBuilt; activeIndex Handling on Student Page in case of several Projektarbetien; Phrasen gendering; --- .../controllers/api/frontend/v1/Abgabe.php | 12 +- application/views/Cis/Abgabetool.php | 2 +- public/css/components/abgabetool/abgabe.css | 4 + public/js/apps/Abgabetool/Abgabetool.js | 1 + .../Cis/Abgabetool/AbgabeMitarbeiterDetail.js | 13 +- .../Cis/Abgabetool/AbgabeStudentDetail.js | 14 +- .../Cis/Abgabetool/AbgabetoolAssistenz.js | 241 ++++++++++-------- .../Cis/Abgabetool/AbgabetoolMitarbeiter.js | 4 +- .../Cis/Abgabetool/AbgabetoolStudent.js | 5 +- system/phrasesupdate.php | 34 ++- 10 files changed, 193 insertions(+), 137 deletions(-) diff --git a/application/controllers/api/frontend/v1/Abgabe.php b/application/controllers/api/frontend/v1/Abgabe.php index e1c35ba5b..5558beafb 100644 --- a/application/controllers/api/frontend/v1/Abgabe.php +++ b/application/controllers/api/frontend/v1/Abgabe.php @@ -190,12 +190,9 @@ class Abgabe extends FHCAPI_Controller $pa->downloadLink1 = $downloadLink1; } - $result = $this->ProjektarbeitModel->getProjektbetreuerEmail($pa->projektarbeit_id); - $data = getData($result); - if(count($data) > 0) { - $pa->email = $data[0]->private_email; - } + $pa->email = $pa->mitarbeiter_uid.'@'.DOMAIN; + if($pa->zweitbetreuer_person_id !== null) { if($pa->zweitbetreuer_abgeschickt) { @@ -240,7 +237,7 @@ class Abgabe extends FHCAPI_Controller } } - $this->terminateWithSuccess(array($projektarbeiten, DOMAIN, $uid)); + $this->terminateWithSuccess(array($projektarbeiten)); } @@ -857,8 +854,7 @@ class Abgabe extends FHCAPI_Controller if(file_exists($file_path)) { - $this->terminateWithFileOutput('application/octet-stream', filesize($file_path), basename($file_path)); - + $this->terminateWithFileOutput('application/octet-stream', file_get_contents($file_path), basename($file_path)); } else { $this->terminateWithError('File not found'); } diff --git a/application/views/Cis/Abgabetool.php b/application/views/Cis/Abgabetool.php index 1d53cfa77..416f626e6 100644 --- a/application/views/Cis/Abgabetool.php +++ b/application/views/Cis/Abgabetool.php @@ -37,7 +37,7 @@ $includesArray = array( $this->load->view('templates/FHC-Header', $includesArray); ?> -
+
uid= student_uid_prop= stg_kz_prop= > diff --git a/public/css/components/abgabetool/abgabe.css b/public/css/components/abgabetool/abgabe.css index ea980dc29..b1d8c2507 100644 --- a/public/css/components/abgabetool/abgabe.css +++ b/public/css/components/abgabetool/abgabe.css @@ -189,4 +189,8 @@ .bordered-modal .modal-body { overflow-y: visible; +} + +.p-accordion .p-accordion-header .p-accordion-header-link { + padding: 12px!important; } \ No newline at end of file diff --git a/public/js/apps/Abgabetool/Abgabetool.js b/public/js/apps/Abgabetool/Abgabetool.js index 9d9e34214..d1c3e134c 100644 --- a/public/js/apps/Abgabetool/Abgabetool.js +++ b/public/js/apps/Abgabetool/Abgabetool.js @@ -69,5 +69,6 @@ app.use(primevue.config.default, { tooltip: 8000 } }) +app.directive('tooltip', primevue.tooltip); app.use(PluginsPhrasen); app.mount('#abgabetoolroot'); diff --git a/public/js/components/Cis/Abgabetool/AbgabeMitarbeiterDetail.js b/public/js/components/Cis/Abgabetool/AbgabeMitarbeiterDetail.js index 289102f87..2e617f02b 100644 --- a/public/js/components/Cis/Abgabetool/AbgabeMitarbeiterDetail.js +++ b/public/js/components/Cis/Abgabetool/AbgabeMitarbeiterDetail.js @@ -22,8 +22,7 @@ export const AbgabeMitarbeiterDetail = { 'abgabetypenBetreuer', 'allowedNotenOptions', 'turnitin_link', - 'old_abgabe_beurteilung_link', - 'isMobile' + 'old_abgabe_beurteilung_link' ], props: { projektarbeit: { @@ -472,9 +471,11 @@ export const AbgabeMitarbeiterDetail = { }, handleChangeAbgabetyp(termin) { // if paabgabetype qualgate is selected, fill out kurzbz textfield with bezeichnung of quality gate so users - // are possibly less confused, which is a pursuit in vain + // are possibly less confused if(termin.bezeichnung?.paabgabetyp_kurzbz === 'qualgate1' || termin.bezeichnung?.paabgabetyp_kurzbz === 'qualgate2') { termin.kurzbz = termin.bezeichnung.bezeichnung + } else { + termin.kurzbz = '' } } @@ -608,8 +609,6 @@ export const AbgabeMitarbeiterDetail = { }, watch: { 'newTermin.bezeichnung'(newVal) { - console.log('\'newTermin.bezeichnung\' watcher', newVal) - if(newVal?.paabgabetyp_kurzbz === 'qualgate1' || newVal?.paabgabetyp_kurzbz === 'qualgate2') { this.newTermin.kurzbz = newVal.bezeichnung } @@ -760,8 +759,8 @@ export const AbgabeMitarbeiterDetail = {