-
-
-
- - {{event.topic}}
-
-
-
-
-
-
- {{convertTime(event.beginn.split(":"))}}
- {{convertTime(event.ende.split(":"))}}
-
-
-
-
{{ $p.t('lehre/lehrveranstaltung') }}:
-
{{event?.topic}}
-
-
-
{{ $p.t('lehre/lektor') }}:
-
{{lektor.kurzbz}}
-
-
-
{{ $p.t('profil/Ort') }}:
-
{{event?.ort_kurzbz}}
-
-
-
+
@@ -362,7 +358,8 @@ const Stundenplan = {
{{ $p.t('lehre/noLvFound') }}
- `
+
+ `
}
-export default Stundenplan
\ No newline at end of file
+export default LvPlan;
diff --git a/public/js/components/Cis/Mylv/LvInfo.js b/public/js/components/Cis/Mylv/LvInfo.js
index 7120c5821..4fdbb695d 100644
--- a/public/js/components/Cis/Mylv/LvInfo.js
+++ b/public/js/components/Cis/Mylv/LvInfo.js
@@ -10,13 +10,6 @@ export default {
}
},
computed: {
- LV_TYPES: function () {
- return {
- lehreinheit: "lehreinheit",
- reservierung: "reservierung",
- moodle: "moodle",
- };
- },
lektorenLinks: function () {
if (!this.event || !Array.isArray(this.event.lektor) || !this.event.lektor.length) return "a";
@@ -56,49 +49,6 @@ export default {
},
template:/*html*/`
-
-
-
- | {{
- $p.t('global','datum')?
- $p.t('global','datum')+':'
- :''
- }} |
- {{methodFormatDate(event?.datum)}} |
-
-
- | {{$p.t('global','aktivitaet')}}: |
- |
-
-
- | {{$p.t('global','typ')}}: |
- {{event?.purpose}} |
-
-
- | {{$p.t('fristenmanagement','frist')}}: |
- {{start_time}} |
-
-
- | {{$p.t('lvinfo','actionname')}}: |
-
- {{event?.actionname}}
- |
-
-
- | {{$p.t('lvinfo','overdue')}}: |
-
- {{$p.t('lvinfo','overdueEvent')}}
- |
-
-
- | {{$p.t('lvinfo','moodleLink')}} |
-
-
- |
-
-
-
-
| {{
@@ -157,7 +107,6 @@ export default {
| {{event.organisationseinheit}} |
-
`
}
diff --git a/public/js/components/Cis/Mylv/LvMenu.js b/public/js/components/Cis/Mylv/LvMenu.js
index e7a96f6d8..5f25bff5d 100644
--- a/public/js/components/Cis/Mylv/LvMenu.js
+++ b/public/js/components/Cis/Mylv/LvMenu.js
@@ -7,7 +7,7 @@ export default {
},
containerStyles: Array,
rowStyles: Array,
- hasLvStundenplanEintraege: {
+ hasLvPlanEintraege: {
required:false,
default:true,
type:Boolean,
@@ -23,7 +23,7 @@ export default {
if (!this.c4_link(menuItem) && !menuItem.c4_moodle_links?.length) {
return true;
}
- if (menuItem.id == "addon_fhtw_menu_lvplan_lva" && !this.hasLvStundenplanEintraege){
+ if (menuItem.id == "addon_fhtw_menu_lvplan_lva" && !this.hasLvPlanEintraege){
return true;
}
return null;
diff --git a/public/js/components/Cis/Mylv/LvModal.js b/public/js/components/Cis/Mylv/LvModal.js
index 435caa97c..537012ee6 100644
--- a/public/js/components/Cis/Mylv/LvModal.js
+++ b/public/js/components/Cis/Mylv/LvModal.js
@@ -1,9 +1,8 @@
import BsModal from "../../Bootstrap/Modal.js";
import Alert from "../../Bootstrap/Alert.js";
import LvMenu from "./LvMenu.js"
-import LvInfo from "./LvInfo.js"
-import ApiStundenplan from '../../../api/factory/stundenplan.js';
+import ApiLvPlan from '../../../api/factory/lvPlan.js';
import ApiAddons from '../../../api/factory/addons.js';
export default {
@@ -11,7 +10,6 @@ export default {
BsModal,
Alert,
LvMenu,
- LvInfo,
},
mixins: [BsModal],
props: {
@@ -44,6 +42,9 @@ export default {
};
},
methods:{
+ onHideModal: function(){
+ this.menu = null;
+ },
onModalShow: function()
{
// do not load the menu if the menu is not getting rendered
@@ -51,7 +52,7 @@ export default {
if (this.event.type == 'lehreinheit') {
this.$api
- .call(ApiStundenplan.getLehreinheitStudiensemester(Array.isArray(this.event.lehreinheit_id) ? this.event.lehreinheit_id[0] : this.event.lehreinheit_id))
+ .call(ApiLvPlan.getLehreinheitStudiensemester(Array.isArray(this.event.lehreinheit_id) ? this.event.lehreinheit_id[0] : this.event.lehreinheit_id))
.then(res => res.data)
.then(studiensemester_kurzbz => this.$api.call(
ApiAddons.getLvMenu(
@@ -74,22 +75,13 @@ export default {
return BsModal.popup.bind(this)(null, options);
},
template: /*html*/ `
-
+
-
- {{ event.titel + ' - ' + event.lehrfach_bez + ' [' + event.ort_kurzbz+']'}}
- {{ event.lehrfach_bez + ' [' + event.ort_kurzbz+']'}}
+
-
-
- {{$p.t('lvinfo','Moodleinformationen')}}
-
-
- {{$p.t('lvinfo','lehrveranstaltungsinformationen')}}
-
-
-
+
+
{{$p.t('lehre','lehrveranstaltungsmenue')}}
diff --git a/public/js/components/Cis/Mylv/LvUebersicht.js b/public/js/components/Cis/Mylv/LvUebersicht.js
index e5162730c..1ec93590f 100644
--- a/public/js/components/Cis/Mylv/LvUebersicht.js
+++ b/public/js/components/Cis/Mylv/LvUebersicht.js
@@ -33,7 +33,7 @@ export default {
result: false,
menu: [],
isMenuSelected:false,
- hasLvStundenplanEintraege: true,
+ hasLvPlanEintraege: true,
lvEvaluierungMessage: "",
}
},
@@ -70,15 +70,15 @@ export default {
})
}
- // check if the lv has stundenplan entries for this studiensemester
+ // check if the lv has lvplan entries for this studiensemester
if (this.studiensemester && this.event) {
- return this.$fhcApi.factory.studium.getLvStundenplanForStudiensemester(this.studiensemester, this.event.lehreinheit_id ?? this.event.lehrveranstaltung_id)
+ return this.$fhcApi.factory.studium.getLvPlanForStudiensemester(this.studiensemester, this.event.lehreinheit_id ?? this.event.lehrveranstaltung_id)
.then(data => data.data)
.then(res => {
if (Array.isArray(res) && res.length > 0) {
- this.hasLvStundenplanEintraege = true;
+ this.hasLvPlanEintraege = true;
} else {
- this.hasLvStundenplanEintraege = false;
+ this.hasLvPlanEintraege = false;
}
});
}
@@ -107,7 +107,7 @@ export default {
-
+
diff --git a/public/js/components/Cis/Mylv/RoomInformation.js b/public/js/components/Cis/Mylv/RoomInformation.js
index 3960b1d28..6a9a7dbcd 100644
--- a/public/js/components/Cis/Mylv/RoomInformation.js
+++ b/public/js/components/Cis/Mylv/RoomInformation.js
@@ -3,7 +3,7 @@ import CalendarDate from "../../../composables/CalendarDate.js";
import LvModal from "../../../components/Cis/Mylv/LvModal.js";
import LvInfo from "../../../components/Cis/Mylv/LvInfo.js"
-import ApiStudenplan from '../../../api/factory/stundenplan.js';
+import ApiStudenplan from '../../../api/factory/lvPlan.js';
export const DEFAULT_MODE_RAUMINFO = 'Week'
@@ -107,7 +107,7 @@ const RoomInformation = {
String(this.currentDay.getDate()).padStart(2, "0");
this.$router.push({
- name: "Stundenplan",
+ name: "LvPlan",
params: {
mode: this.calendarMode,
focus_date: date,
diff --git a/public/js/components/Cis/Mylv/modalContent.js b/public/js/components/Cis/Mylv/modalContent.js
new file mode 100644
index 000000000..c0050e9cc
--- /dev/null
+++ b/public/js/components/Cis/Mylv/modalContent.js
@@ -0,0 +1,113 @@
+import { numberPadding, formatDate } from "../../../helpers/DateHelpers.js"
+
+
+export default {
+ props:{
+ event: {
+ type: Object,
+ required: true,
+ }
+ },
+ computed: {
+ lektorenLinks: function () {
+ if (!this.event || !Array.isArray(this.event.lektor) || !this.event.lektor.length) return "a";
+
+ let lektorenLinks = {};
+ this.event.lektor.forEach((lektor) => {
+ lektorenLinks[lektor.kurzbz] = FHC_JS_DATA_STORAGE_OBJECT.app_root + FHC_JS_DATA_STORAGE_OBJECT.ci_router + `/Cis/Profil/View/${lektor.mitarbeiter_uid}`;
+ })
+ return lektorenLinks;
+ },
+ getOrtContentLink: function () {
+ if (!this.event || !this.event.ort_content_id) return "a";
+
+ return FHC_JS_DATA_STORAGE_OBJECT.app_root + FHC_JS_DATA_STORAGE_OBJECT.ci_router + `/CisVue/Cms/content/${this.event.ort_content_id}`
+ },
+ start_time: function () {
+ if (!this.event.start) return 'N/A';
+ if (!this.event.start instanceof Date) {
+ return this.event.start;
+ }
+ return numberPadding(this.event.start.getHours()) + ":" + numberPadding(this.event.start.getMinutes());
+ },
+ end_time: function () {
+ if (!this.event.end) return 'N/A';
+ if (!this.event.end instanceof Date) {
+ return this.event.end;
+ }
+ return numberPadding(this.event.end.getHours()) + ":" + numberPadding(this.event.end.getMinutes());
+ }
+ },
+ methods: {
+ mehtodNumberPadding: function (number) {
+ return numberPadding(number);
+ },
+ methodFormatDate: function (d) {
+ return formatDate(d);
+ },
+ },
+ template: `
+
+ {{$p.t('lvinfo','lehrveranstaltungsinformationen')}}
+
+
+
+
+ | {{
+ $p.t('global','datum')?
+ $p.t('global','datum')+':'
+ :''
+ }} |
+ {{methodFormatDate(event.datum)}} |
+
+
+ | {{
+ $p.t('global','raum')?
+ $p.t('global','raum')+':'
+ :''
+ }} |
+
+
+ {{event.ort_kurzbz}}
+ |
+
+
+ | {{
+ $p.t('lehre','lehrveranstaltung')?
+ $p.t('lehre','lehrveranstaltung')+':'
+ :''
+ }} |
+ {{'('+event.lehrform+') ' + event.lehrfach_bez}} |
+
+
+ | {{
+ $p.t('lehre','lektor')?
+ $p.t('lehre','lektor')+':'
+ :''
+ }} |
+
+
+ |
+
+
+ | {{
+ $p.t('ui','zeitraum')?
+ $p.t('ui','zeitraum')+':'
+ :''
+ }} |
+ {{start_time + ' - ' + end_time}} |
+
+
+ | {{
+ $p.t('lehre','organisationseinheit')?
+ $p.t('lehre','organisationseinheit')+':'
+ :''
+ }} |
+ {{event.organisationseinheit}} |
+
+
+
`,
+}
\ No newline at end of file
diff --git a/public/js/components/Cis/Mylv/modalTitle.js b/public/js/components/Cis/Mylv/modalTitle.js
new file mode 100644
index 000000000..4acb90248
--- /dev/null
+++ b/public/js/components/Cis/Mylv/modalTitle.js
@@ -0,0 +1,12 @@
+export default {
+ props:{
+ event: {
+ type: Object,
+ required: true,
+ }
+ },
+ template:`
+ {{ event.titel + ' - ' + event.lehrfach_bez + ' [' + event.ort_kurzbz+']'}}
+ {{ event.lehrfach_bez + ' [' + event.ort_kurzbz+']'}}
+`
+}
\ No newline at end of file
diff --git a/public/js/components/Cis/Profil/ProfilComponents/Kontakt.js b/public/js/components/Cis/Profil/ProfilComponents/Kontakt.js
index 3d703f6b6..6dd6edeb4 100644
--- a/public/js/components/Cis/Profil/ProfilComponents/Kontakt.js
+++ b/public/js/components/Cis/Profil/ProfilComponents/Kontakt.js
@@ -12,6 +12,7 @@ export default{
},
template:/*html*/`
+
@@ -35,5 +36,6 @@ export default{
+
`,
};
\ No newline at end of file
diff --git a/public/js/components/Cis/Profil/ProfilComponents/Mailverteiler.js b/public/js/components/Cis/Profil/ProfilComponents/Mailverteiler.js
index cf2bc22e3..e911453f1 100644
--- a/public/js/components/Cis/Profil/ProfilComponents/Mailverteiler.js
+++ b/public/js/components/Cis/Profil/ProfilComponents/Mailverteiler.js
@@ -10,6 +10,7 @@ export default {
},
template: /*html*/`
+
- `,
+