From f45d692e662bf755701bb7c5c1a98d690830a0ee Mon Sep 17 00:00:00 2001 From: Simon Gschnell Date: Mon, 11 Dec 2023 12:55:54 +0100 Subject: [PATCH] used new layout for the different views --- application/controllers/Cis/Profil.php | 1 + public/js/apps/Cis/Profil.js | 2 +- public/js/components/Cis/Profil/Base.js | 13 +- .../Cis/Profil/MitarbeiterProfil.js | 426 +++++++++++------- .../Cis/Profil/MitarbeiterViewProfil.js | 306 +++++++++---- .../js/components/Cis/Profil/StudentProfil.js | 387 +++++++++++----- .../Cis/Profil/StudentViewProfil.js | 294 ++++++++---- 7 files changed, 962 insertions(+), 467 deletions(-) diff --git a/application/controllers/Cis/Profil.php b/application/controllers/Cis/Profil.php index 9dfbc741d..a5640d916 100644 --- a/application/controllers/Cis/Profil.php +++ b/application/controllers/Cis/Profil.php @@ -628,6 +628,7 @@ class Profil extends Auth_Controller } if(!$pid){ + //! if no Person_ID was found, null is returned and the vue component will show a 404 View return null; } diff --git a/public/js/apps/Cis/Profil.js b/public/js/apps/Cis/Profil.js index eb5cfbf4a..825b7a5ce 100644 --- a/public/js/apps/Cis/Profil.js +++ b/public/js/apps/Cis/Profil.js @@ -52,7 +52,7 @@ const app = Vue.createApp({

Es wurden keine oder mehrere Profile für {{this.notFoundUID}} gefunden

- + ` diff --git a/public/js/components/Cis/Profil/Base.js b/public/js/components/Cis/Profil/Base.js index eaa85c6b3..10ff32739 100644 --- a/public/js/components/Cis/Profil/Base.js +++ b/public/js/components/Cis/Profil/Base.js @@ -172,14 +172,14 @@ export default {
-
- +
+
-
+
@@ -254,6 +254,13 @@ export default {
+
+
+

Sollten Ihre Daten nicht mehr aktuell sein, klicken Sie bitte hier

+
+
+ + diff --git a/public/js/components/Cis/Profil/MitarbeiterProfil.js b/public/js/components/Cis/Profil/MitarbeiterProfil.js index 2f3ef7d88..b6f416d43 100644 --- a/public/js/components/Cis/Profil/MitarbeiterProfil.js +++ b/public/js/components/Cis/Profil/MitarbeiterProfil.js @@ -145,178 +145,296 @@ export default { }, template: ` - -
- -
- -
- -
- - - -
- -
-
-

Mitarbeiter

- - -
- - - - -
- -
-
-
-

Profilfoto gesperrt

- Sperre des Profilfotos aufheben -
- Profilfoto sperren -
-
- -
+ +
+ +
+ +
+ - - -
- - - - - -
-
- - -
- - -
-
FH-Ausweis Status
-
{{"Der FH Ausweis ist am "+ wert+ " ausgegeben worden."}}
- -
-
-
{{bez}}
-
{{wert?wert:"-"}}
-
-
- -
- - - - -
- -
- - - +
+
+ +
+
-
-
FH-Ausweis Status
-
-
{{"Der FH Ausweis ist am "+ wert+ " ausgegeben worden."}}
-
-
- - - - -
-
eMail
-
-
{{email.type}}: {{email.email}}
-
-
- - -
-
Private Kontakte
-
-
-
{{element.kontakttyp + ": " + element.kontakt+" " }}
-
{{element?.anmerkung}}
-
- - -
-
-
-
- - -
-
Adressen
-
-
- {{element.strasse}} ({{element.adr_typ}})
{{ element.plz}} {{element.ort}} -
-
-
- -
-
-
+ + +
+ -
-
- + + +
+ +
+ +
+ + + + + + +
-
-

Sollten Ihre Daten nicht mehr aktuell sein, klicken Sie bitte hier

-
-
-
- - -
- - -
-
- -
- +
+
+
+ - + + + + + + +
+
+ + + +
+

Profilfoto gesperrt

+ Sperre des Profilfotos aufheben +
+ + Profilfoto sperren + + + + +
+
+ + + + + + + +
-
-
+ + + +
+ + + + +
+ + + + +
+ + + + + +
+
+
+
{{bez}}
+
{{wert?wert:"-"}}
+
+
+
+
FH-Ausweis Status
+
{{"Der FH Ausweis ist am "+ wert+ " ausgegeben worden."}}
+
+
+ + + + +
+ + + +
+ + + + + + +
+ + + + +
+
eMail
+
+
{{email.type}}: {{email.email}}
+
+
+ + + +
+
Private Kontakte
+
+
+
{{element.kontakttyp + ": " + element.kontakt+" " }}
+
{{element?.anmerkung}}
+
+ + +
+
+
+
+ + + + +
+
Adressen
+
+
+ {{element.strasse}} ({{element.adr_typ}})
{{ element.plz}} {{element.ort}} +
+
+
+ +
+ + + + + +
+ + + + + +
+ + + +
+ +
+ + + + +
+
+

Sollten Ihre Daten nicht mehr aktuell sein, klicken Sie bitte hier

+
+
+ + + + + + +
+ + +
+ +
+ + +
+ +
+ + +
+ + + + + + + + +
+ + + + + +
+ + + + + + + +
+
+ -
-
Mailverteilers
-

Sie sind Mitgglied in folgenden Verteilern:

-
- -
{{verteiler.beschreibung}}
-
-
+
- -
+ + + +
+ +
+ + + + +
Mailverteilers
+

Sie sind Mitgglied in folgenden Verteilern:

+
+ +
{{verteiler.beschreibung}}
+
+ + + +
+ + +
+ + +
+ + + + + + + + +
+ + +
`, }; diff --git a/public/js/components/Cis/Profil/MitarbeiterViewProfil.js b/public/js/components/Cis/Profil/MitarbeiterViewProfil.js index 589f1b204..dfd610672 100644 --- a/public/js/components/Cis/Profil/MitarbeiterViewProfil.js +++ b/public/js/components/Cis/Profil/MitarbeiterViewProfil.js @@ -114,122 +114,230 @@ export default { template: ` -
- -
- -
+ +
+ +
+ +
+ + + + + +
+
+ +
+
+ + + + +
+ + + + + +
+ +
+ +
+ + + + + + + +
+
+ +
+
+ + + + + + + + +
+ + + + +
+ + + +
- -
-
-
-

Mitarbeiter

- + + +
+ + + + + +
+
+
+
{{bez}}
+
{{wert?wert:"-"}}
+
+
+
+
FH-Ausweis Status
+
{{"Der FH Ausweis ist am "+ wert+ " ausgegeben worden."}}
+ + + + +
+ + + +
+ + + + + + +
+ + + + +
+
eMail
+
+
{{email.type}}: {{email.email}}
+
+
+ + +
+ + + + + +
+ + + + +
- - - -
- - - - - -
-
- - -
-
{{bez}}
-
{{wert?wert:"-"}}
-
- -
- - - - -
- -
- - -
-
FH-Ausweis Status
-
{{"Der FH Ausweis ist am "+ wert+ " ausgegeben worden."}}
-
- - - - -
-
eMail
-
{{email.type}}: {{email.email}}
-
- - -
-
Private Kontakte
-
-
{{element.kontakttyp + ": " + element.kontakt+" " }}
-
{{element?.anmerkung}}
-
- - -
-
-
- -
-
-
+ +
+ +
-
+ + + +
+ + +
+ +
+ + +
+ + + + + + + + +
+ + + + + +
+ + + + + + + + + + + +
-
- - -
- - -
- - +
+ + + + +
Mailverteilers
+

Sie sind Mitgglied in folgenden Verteilern:

+
+ +
{{verteiler.beschreibung}}
- + + +
+ +
-
- -
-
Mailverteilers
-

Sie sind Mitgglied in folgenden Verteilern:

-
- -
{{verteiler.beschreibung}}
-
-
-
-
-
- - + +
+ + + + + + + +
+ + +
+ `, }; diff --git a/public/js/components/Cis/Profil/StudentProfil.js b/public/js/components/Cis/Profil/StudentProfil.js index 8df546c67..4d8b2d2da 100644 --- a/public/js/components/Cis/Profil/StudentProfil.js +++ b/public/js/components/Cis/Profil/StudentProfil.js @@ -77,16 +77,15 @@ export default { Postnomen: this.data.postnomen, Geburtsdatum: this.data.gebdatum, Geburtsort: this.data.gebort, - }, - - Adressen: this.data.adressen, - SpecialInformation: { Studiengang: this.data.studiengang, Semester: this.data.semester, Verband: this.data.verband, Gruppe: this.data.gruppe, Personenkennzeichen: this.data.personenkennzeichen, + FhAusweisStatus: this.data.zutrittsdatum, }, + + }; }, //? this computed function returns the data for the second column in the profil @@ -96,9 +95,9 @@ export default { } return { - FhAusweisStatus: this.data.zutrittsdatum, emails: this.data.emails, Kontakte: this.data.kontakte, + Adressen: this.data.adressen, }; }, }, @@ -120,141 +119,297 @@ export default { template: ` +
- -
- -
-
- + +
+ +
+ -
-
-
-

Student

- -
-
-
-
-
-

Profilfoto gesperrt

- Sperre des Profilfotos aufheben -
- Profilfoto sperren + + +
+
+
+
+ + + +
+ - - -
- - - - - + +
+ +
+ +
+ + + + + + +
-
- -
-
Adressen
-
- {{element.strasse}} ({{element.adr_typ}})
{{ element.plz}} {{element.ort}} -
-
- -
-
{{bez}}
-
{{wert?wert:"-"}}
-
- +
+
- - - - -
+
+ + + + + + + + +
+
+ + -
- - -
-
FH-Ausweis Status
-
{{"Der FH Ausweis ist am "+ wert+ " ausgegeben worden."}}
-
- - - - -
-
eMail
-
{{email.type}}: {{email.email}}
-
- - -
-
Private Kontakte
-
-
{{element.kontakttyp + ": " + element.kontakt+" " }}
-
{{element?.anmerkung}}
-
- - -
-
-
- -
+
+

Profilfoto gesperrt

+ Sperre des Profilfotos aufheben
+ + Profilfoto sperren + + + + +
+
+ + + + + + + + +
+ + + + +
+ + + + +
+ + + + +
+ + + + + +
+
+
+
{{bez}}
+
{{wert?wert:"-"}}
+
+
+
+
FH-Ausweis Status
+
{{"Der FH Ausweis ist am "+ wert+ " ausgegeben worden."}}
+
+
+ + + +
+ +
+ + + + + + +
+ + + + +
+
eMail
+
+
{{email.type}}: {{email.email}}
+
+
+ + + +
+
Private Kontakte
+
+
+
{{element.kontakttyp + ": " + element.kontakt+" " }}
+
{{element?.anmerkung}}
+
+ + +
+
+
+
+ + + + +
+
Adressen
+
+
+ {{element.strasse}} ({{element.adr_typ}})
{{ element.plz}} {{element.ort}} +
+
+
+ +
+ + + + + +
+ + + + + +
+ + +
+ +
+ + + + +
+
+

Sollten Ihre Daten nicht mehr aktuell sein, klicken Sie bitte hier

+
+
+ + + + + + +
+ + +
+ +
+ + +
+ +
+ + +
+ + + + + + + +
- -
-
-

Sollten Ihre Daten nicht mehr aktuell sein, klicken Sie bitte hier

-
-
-
- + + + + + +
+ + + + + + + + + + + +
+ +
-
- -
-
- -
- -
- -
- -
- -
-
Mailverteilers
-

Sie sind Mitgglied in folgenden Verteilern:

-
+ + +
Mailverteilers
+

Sie sind Mitgglied in folgenden Verteilern:

+
{{verteiler.beschreibung}}
-
-
-
-
-
+
+ +
+ + +
+ + +
+ + + + + + + + +
+ + +
+ `, diff --git a/public/js/components/Cis/Profil/StudentViewProfil.js b/public/js/components/Cis/Profil/StudentViewProfil.js index b119ebdeb..69c59c6f7 100644 --- a/public/js/components/Cis/Profil/StudentViewProfil.js +++ b/public/js/components/Cis/Profil/StudentViewProfil.js @@ -80,114 +80,220 @@ export default { template: ` - -
- -
- -
+ +
+ +
+ +
+ + + + + +
+
+ +
+
+ + + + +
+ + + + + +
+ +
+ +
+ + + + + + + +
+
+ +
+
+ + + + + + + + + + + + + +
+ + + + +
+ + + +
- - - -
-
-
-

Student

- -
-
- -
- - -
- - - - - -
-
- - -
-
{{bez}}
-
{{wert?wert:"-"}}
-
- -
- - - - -
- -
- - -
-
FH-Ausweis Status
-
{{"Der FH Ausweis ist am "+ wert+ " ausgegeben worden."}}
-
+ +
- + + + + +
+
+
+
{{bez}}
+
{{wert?wert:"-"}}
+
+
- -
-
eMail
-
{{email.type}}: {{email.email}}
-
- - -
-
Private Kontakte
-
-
{{element.kontakttyp + ": " + element.kontakt+" " }}
-
{{element?.anmerkung}}
-
- - -
-
-
- -
-
-
- -
+ + + + +
+ + + +
+ + + + + + +
+ + + + +
+
eMail
+
+
{{email.type}}: {{email.email}}
+
+
+ + + +
+ + + + + +
+ + + + +
- - - + + + +
+ +
+ + + + + + +
+ + + + + +
+ + + + + + + + -
- -
-
Mailverteilers
-

Sie sind Mitgglied in folgenden Verteilern:

-
- -
{{verteiler.beschreibung}}
-
+ + +
+ +
+ + + + +
Mailverteilers
+

Sie sind Mitgglied in folgenden Verteilern:

+
+ +
{{verteiler.beschreibung}}
+ + + +
+ +
-
-
- - + + +
+ + + + + + + + +
+ + +
+ + `, };