diff --git a/application/controllers/api/frontend/v1/Stundenplan.php b/application/controllers/api/frontend/v1/Stundenplan.php index 243f4b2c5..37b384630 100644 --- a/application/controllers/api/frontend/v1/Stundenplan.php +++ b/application/controllers/api/frontend/v1/Stundenplan.php @@ -90,7 +90,7 @@ class Stundenplan extends FHCAPI_Controller $stunden = getData($stunden); - $result = $this->StundenplanModel->groupedRoomPlanning($ort_kurzbz,$start_date,$end_date); + $result = $this->StundenplanModel->groupedCalendarEvents($ort_kurzbz,$start_date,$end_date); //$this->loglib->logErrorDB(print_r($result,TRUE),"this is the result of the grouped query"); if(isError($result)){ @@ -105,6 +105,8 @@ class Stundenplan extends FHCAPI_Controller // gruppierung hat stattgefunden und das array muss in einem String konvertiert werden } } + + // this is the old way the events were grouped, kept in case that the query doesnt work out as expected /* $final_events = array(); $grouped = array(); diff --git a/application/models/ressource/Stundenplan_model.php b/application/models/ressource/Stundenplan_model.php index 5e5dc779d..693825e79 100755 --- a/application/models/ressource/Stundenplan_model.php +++ b/application/models/ressource/Stundenplan_model.php @@ -48,10 +48,10 @@ class Stundenplan_model extends DB_Model * * @return stdClass */ - public function groupedRoomPlanning($ort_kurzbz,$start_date,$end_date){ + public function groupedCalendarEvents($ort_kurzbz,$start_date,$end_date){ - $gruppierteRaumVerplannung= $this->execReadOnlyQuery(" + $gruppierteEvents= $this->execReadOnlyQuery(" SELECT 'reservierung' as type, @@ -130,7 +130,7 @@ class Stundenplan_model extends DB_Model ORDER BY datum, stunde ", [$ort_kurzbz, $start_date, $end_date, $ort_kurzbz, $start_date, $end_date]); - return $gruppierteRaumVerplannung; + return $gruppierteEvents; } /** diff --git a/application/views/Cis/Stundenplan.php b/application/views/Cis/Stundenplan.php index cb8f8a712..2983f9ae3 100755 --- a/application/views/Cis/Stundenplan.php +++ b/application/views/Cis/Stundenplan.php @@ -9,9 +9,7 @@ $this->load->view('templates/CISHTML-Header', $includesArray); ?>
-

Stundenplan

-
- +
load->view('templates/CISHTML-Footer', $includesArray); ?> diff --git a/public/js/apps/Cis/RoomInformation.js b/public/js/apps/Cis/RoomInformation.js index b5559047e..62920cb66 100644 --- a/public/js/apps/Cis/RoomInformation.js +++ b/public/js/apps/Cis/RoomInformation.js @@ -99,7 +99,7 @@ const app = Vue.createApp({ -
+
{{event.orig.topic}} diff --git a/public/js/apps/Cis/Stundenplan.js b/public/js/apps/Cis/Stundenplan.js index 25823b193..47d945c29 100755 --- a/public/js/apps/Cis/Stundenplan.js +++ b/public/js/apps/Cis/Stundenplan.js @@ -48,7 +48,18 @@ const app = Vue.createApp({ }); }); }); - } + }, + template:/*html*/` +

Stundenplan

+
+ +
+ {{event.orig.title}} + {{event.orig.ort_kurzbz}} + {{event.orig.mitarbeiter_kurzbz}} +
+
+ ` }); app.config.unwrapInjectedRef = true; app.use(Phrasen); diff --git a/public/js/components/Calendar/Week/Page.js b/public/js/components/Calendar/Week/Page.js index 75fef62f1..0a3794295 100755 --- a/public/js/components/Calendar/Week/Page.js +++ b/public/js/components/Calendar/Week/Page.js @@ -108,7 +108,7 @@ export default {
{{hour}}:00
-
+

this is a placeholder which means that no template was passed to the Calendar Page slot