-
+
diff --git a/public/js/components/Cis/Mylv/LvModal.js b/public/js/components/Cis/Mylv/LvModal.js
index e873dd5f8..9c42e312f 100644
--- a/public/js/components/Cis/Mylv/LvModal.js
+++ b/public/js/components/Cis/Mylv/LvModal.js
@@ -68,7 +68,7 @@ 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+']'}}
@@ -77,7 +77,7 @@ export default {
{{$p.t('lvinfo','lehrveranstaltungsinformationen')}}
- Lehrveranstaltungs Menu
+ {{$p.t('lehre','lehrveranstaltungsmenue')}}
@@ -87,4 +87,4 @@ export default {
`,
-};
\ No newline at end of file
+};
diff --git a/public/js/components/Cis/Mylv/Semester/Studiengang/Lv.js b/public/js/components/Cis/Mylv/Semester/Studiengang/Lv.js
index 36d67f454..59ede800e 100644
--- a/public/js/components/Cis/Mylv/Semester/Studiengang/Lv.js
+++ b/public/js/components/Cis/Mylv/Semester/Studiengang/Lv.js
@@ -66,6 +66,7 @@ export default {
return bodyStyle;
},
grade() {
+ // TODO: noten phrasen
return this.benotung ? this.znote || this.lvnote || null : null;
},
LvHasPruefungenInformation(){
@@ -159,7 +160,7 @@ export default {
-
Organisatorische Einheit:
+ {{ $p.t('lehre/organisationseinheit') }}:
{{bezeichnung}}
@@ -197,14 +198,14 @@ export default {
- {{ grade || p.t('lehre/noGrades') }}
+ {{ grade || $p.t('lehre/noGrades') }}
- {{ grade || p.t('lehre/noGrades') }}
+ {{ grade || $p.t('lehre/noGrades') }}
diff --git a/public/js/components/Cis/Mylv/Student.js b/public/js/components/Cis/Mylv/Student.js
index 8b6164192..5aab9b28a 100644
--- a/public/js/components/Cis/Mylv/Student.js
+++ b/public/js/components/Cis/Mylv/Student.js
@@ -103,7 +103,7 @@ export default {
-
- {{p.t('lehre/noLvFound')}}
+ {{$p.t('lehre/noLvFound')}}
diff --git a/public/js/components/Cis/Profil/MitarbeiterProfil.js b/public/js/components/Cis/Profil/MitarbeiterProfil.js
index 8bba26ea2..a31594755 100644
--- a/public/js/components/Cis/Profil/MitarbeiterProfil.js
+++ b/public/js/components/Cis/Profil/MitarbeiterProfil.js
@@ -25,7 +25,7 @@ export default {
ProfilInformation,
},
- inject: ["sortProfilUpdates", "collapseFunction"],
+ inject: ["sortProfilUpdates", "collapseFunction", "language"],
data() {
return {
@@ -56,21 +56,21 @@ export default {
visible: true
},
{
- title: "Bezeichnung",
+ title: Vue.computed(() => this.$p.t('ui/bezeichnung')),
field: "Bezeichnung",
headerFilter: true,
minWidth: 200,
visible: true
},
{
- title: "Organisationseinheit",
+ title: Vue.computed(() => this.$p.t('lehre/organisationseinheit')),
field: "Organisationseinheit",
headerFilter: true,
minWidth: 200,
visible: true
},
{
- title: "Gültig_von",
+ title: Vue.computed(() => this.$p.t('global/gueltigVon')),
field: "Gültig_von",
headerFilter: true,
resizable: true,
@@ -78,7 +78,7 @@ export default {
visible: true
},
{
- title: "Gültig_bis",
+ title: Vue.computed(() => this.$p.t('global/gueltigBis')),
field: "Gültig_bis",
headerFilter: true,
resizable: true,
@@ -86,7 +86,7 @@ export default {
visible: true
},
{
- title: "Wochenstunden",
+ title: Vue.computed(() => this.$p.t('profil/wochenstunden')),
field: "Wochenstunden",
headerFilter: true,
minWidth: 200,
@@ -96,6 +96,10 @@ export default {
},
betriebsmittel_table_options: {
+ persistenceID: "filterTableMaProfilBetriebsmittel",
+ persistence: {
+ columns: false
+ },
height: 300,
layout: "fitColumns",
responsiveLayout: "collapse",
@@ -115,14 +119,14 @@ export default {
visible: true
},
{
- title: "Betriebsmittel",
+ title: Vue.computed(() => this.$p.t('profil/entlehnteBetriebsmittel')),
field: "betriebsmittel",
headerFilter: true,
minWidth: 200,
visible: true
},
{
- title: "Nummer",
+ title: Vue.computed(() => this.$p.t('profil/inventarnummer')),
field: "Nummer",
headerFilter: true,
resizable: true,
@@ -130,7 +134,7 @@ export default {
visible: true
},
{
- title: "Ausgegeben_am",
+ title: Vue.computed(() => this.$p.t('profil/ausgabedatum')),
field: "Ausgegeben_am",
headerFilter: true,
minWidth: 200,
@@ -145,17 +149,14 @@ export default {
data: Object,
editData: Object,
},
- 'data.funktionen'(newVal) {
- if(this.$refs.funktionenTable) this.$refs.funktionenTable.tabulator.setData(newVal);
- },
- 'data.mittel'(newVal) {
- if(this.$refs.betriebsmittelTable) this.$refs.betriebsmittelTable.tabulator.setData(newVal);
- },
+
methods: {
betriebsmittelTableBuilt: function () {
+ this.$refs.betriebsmittelTable.tabulator.setColumns(this.betriebsmittel_table_options.columns)
this.$refs.betriebsmittelTable.tabulator.setData(this.data.mittel);
},
funktionenTableBuilt: function () {
+ this.$refs.funktionenTable.tabulator.setColumns(this.funktionen_table_options.columns)
this.$refs.funktionenTable.tabulator.setData(this.data.funktionen);
},
hideEditProfilModal: function () {
@@ -202,6 +203,10 @@ export default {
}
});
},
+ setTableColumnTitles() { // reevaluates computed phrasen
+ if(this.$refs.betriebsmittelTable) this.$refs.betriebsmittelTable.tabulator.setColumns(this.betriebsmittel_table_options.columns)
+ if(this.$refs.funktionenTable) this.$refs.funktionenTable.tabulator.setColumns(this.funktionen_table_options.columns)
+ }
},
computed: {
@@ -274,10 +279,17 @@ export default {
this.data.profilUpdates?.sort(this.sortProfilUpdates);
},
- mounted() {
-
+ watch: {
+ 'data.funktionen'(newVal) {
+ if(this.$refs.funktionenTable) this.$refs.funktionenTable.tabulator.setData(newVal);
+ },
+ 'data.mittel'(newVal) {
+ if(this.$refs.betriebsmittelTable) this.$refs.betriebsmittelTable.tabulator.setData(newVal);
+ },
+ 'language.value'(newVal) {
+ this.setTableColumnTitles()
+ }
},
-
template: /*html*/ `
diff --git a/public/js/components/Cis/Profil/MitarbeiterViewProfil.js b/public/js/components/Cis/Profil/MitarbeiterViewProfil.js
index baf6fe745..cef970ec2 100644
--- a/public/js/components/Cis/Profil/MitarbeiterViewProfil.js
+++ b/public/js/components/Cis/Profil/MitarbeiterViewProfil.js
@@ -14,7 +14,7 @@ export default {
ProfilEmails,
ProfilInformation,
},
- inject: ["collapseFunction"],
+ inject: ["collapseFunction", "language"],
data() {
return {
collapseIconFunktionen: true,
@@ -44,21 +44,21 @@ export default {
visible: true
},
{
- title: "Bezeichnung",
+ title: Vue.computed(() => this.$p.t('ui/bezeichnung')),
field: "Bezeichnung",
headerFilter: true,
minWidth: 200,
visible: true
},
{
- title: "Organisationseinheit",
+ title: Vue.computed(() => this.$p.t('lehre/organisationseinheit')),
field: "Organisationseinheit",
headerFilter: true,
minWidth: 200,
visible: true
},
{
- title: "Gültig_von",
+ title: Vue.computed(() => this.$p.t('global/gueltigVon')),
field: "Gültig_von",
headerFilter: true,
resizable: true,
@@ -66,7 +66,7 @@ export default {
visible: true
},
{
- title: "Gültig_bis",
+ title: Vue.computed(() => this.$p.t('global/gueltigBis')),
field: "Gültig_bis",
headerFilter: true,
resizable: true,
@@ -74,7 +74,7 @@ export default {
visible: true
},
{
- title: "Wochenstunden",
+ title: Vue.computed(() => this.$p.t('profil/wochenstunden')),
field: "Wochenstunden",
headerFilter: true,
minWidth: 200,
@@ -96,6 +96,9 @@ export default {
'data.funktionen'(newVal) {
if(this.$refs.funktionenTable) this.$refs.funktionenTable.tabulator.setData(newVal);
},
+ 'language.value'(newVal) { // reevaluates computed phrasen
+ if(this.$refs.funktionenTable) this.$refs.funktionenTable.tabulator.setColumns(this.funktionen_table_options.columns)
+ }
},
computed: {
getTelefonValue() {
diff --git a/public/js/components/Cis/Profil/ProfilModal/EditProfil.js b/public/js/components/Cis/Profil/ProfilModal/EditProfil.js
index ba5702bc9..cbfde34be 100644
--- a/public/js/components/Cis/Profil/ProfilModal/EditProfil.js
+++ b/public/js/components/Cis/Profil/ProfilModal/EditProfil.js
@@ -181,7 +181,7 @@ export default {
return BsModal.popup(null, options);
},
template: /*html*/ `
-
+
{{title}}
diff --git a/public/js/components/Cis/Profil/StudentProfil.js b/public/js/components/Cis/Profil/StudentProfil.js
index 5b4609e5f..364feecd2 100644
--- a/public/js/components/Cis/Profil/StudentProfil.js
+++ b/public/js/components/Cis/Profil/StudentProfil.js
@@ -24,7 +24,7 @@ export default {
FetchProfilUpdates,
EditProfil,
},
- inject: ["sortProfilUpdates", "collapseFunction"],
+ inject: ["sortProfilUpdates", "collapseFunction", "language"],
data() {
return {
showModal: false,
@@ -33,18 +33,27 @@ export default {
// tabulator options
zutrittsgruppen_table_options: {
+ persistenceID: "filterTableStudentProfilZutrittsgruppen",
+ persistence: {
+ columns: false
+ },
height: 200,
layout: "fitColumns",
- data: [{bezeichnung: ""}],
- columns: [{title: "Zutritt", field: "bezeichnung"}],
+ columns: [{
+ title: Vue.computed(() => this.$p.t('profil/zutrittsGruppen')),
+ field: "bezeichnung"
+ }],
},
betriebsmittel_table_options: {
+ persistenceID: "filterTableStudentProfilBetriebsmittel",
+ persistence: {
+ columns: false
+ },
height: 300,
layout: "fitColumns",
responsiveLayout: "collapse",
responsiveLayoutCollapseUseFormatters: false,
responsiveLayoutCollapseFormatter: Vue.$collapseFormatter,
- data: [{betriebsmittel: "", Nummer: "", Ausgegeben_am: ""}],
columns: [
{
title:
@@ -57,23 +66,26 @@ export default {
headerClick: this.collapseFunction,
},
{
- title: "Betriebsmittel",
+ title: Vue.computed(() => this.$p.t('profil/entlehnteBetriebsmittel')),
field: "betriebsmittel",
headerFilter: true,
minWidth: 200,
+ visible: true
},
{
- title: "Nummer",
+ title: Vue.computed(() => this.$p.t('profil/inventarnummer')),
field: "Nummer",
headerFilter: true,
resizable: true,
minWidth: 200,
+ visible: true
},
{
- title: "Ausgegeben_am",
+ title: Vue.computed(() => this.$p.t('profil/ausgabedatum')),
field: "Ausgegeben_am",
headerFilter: true,
minWidth: 200,
+ visible: true
},
],
},
@@ -92,9 +104,11 @@ export default {
methods: {
betriebsmittelTableBuilt: function () {
+ this.$refs.betriebsmittelTable.tabulator.setColumns(this.betriebsmittel_table_options.columns)
this.$refs.betriebsmittelTable.tabulator.setData(this.data.mittel);
},
zutrittsgruppenTableBuilt: function () {
+ this.$refs.zutrittsgruppenTable.tabulator.setColumns(this.zutrittsgruppen_table_options.columns)
this.$refs.zutrittsgruppenTable.tabulator.setData(
this.data.zuttritsgruppen
);
@@ -212,6 +226,12 @@ export default {
//? sorts the profil Updates: pending -> accepted -> rejected
this.data.profilUpdates?.sort(this.sortProfilUpdates);
},
+ watch: {
+ 'language.value'(newVal) {
+ if(this.$refs.betriebsmittelTable) this.$refs.betriebsmittelTable.tabulator.setColumns(this.betriebsmittel_table_options.columns)
+ if(this.$refs.zutrittsgruppenTable) this.$refs.zutrittsgruppenTable.tabulator.setColumns(this.zutrittsgruppen_table_options.columns)
+ }
+ },
template: /*html*/ `
diff --git a/public/js/components/Cis/ProfilUpdate/AcceptDenyUpdate.js b/public/js/components/Cis/ProfilUpdate/AcceptDenyUpdate.js
index 300cfe51c..f3746af63 100644
--- a/public/js/components/Cis/ProfilUpdate/AcceptDenyUpdate.js
+++ b/public/js/components/Cis/ProfilUpdate/AcceptDenyUpdate.js
@@ -108,7 +108,7 @@ export default {
},
template: /*html*/ `
-
+
{{title}}
diff --git a/public/js/components/Cis/Stundenplan/Stundenplan.js b/public/js/components/Cis/Stundenplan/Stundenplan.js
index d35c9c536..8fc9b77d4 100644
--- a/public/js/components/Cis/Stundenplan/Stundenplan.js
+++ b/public/js/components/Cis/Stundenplan/Stundenplan.js
@@ -206,15 +206,15 @@ export const Stundenplan = {
-
Lehrveranstaltung:
+
{{ $p.t('lehre/lehrveranstaltung') }}:
{{event?.orig.topic}}
-
Lektor:
+
{{ $p.t('lehre/lektor') }}:
{{lektor.kurzbz}}
-
Ort:
+
{{ $p.t('profil/Ort') }}:
{{event?.orig.ort_kurzbz}}
@@ -224,11 +224,11 @@ export const Stundenplan = {
-
Lehrveranstaltungs Menu
+
{{$p.t('lehre','lehrveranstaltungsmenue')}}
- Keine Lehrveranstaltungen
+ {{ $p.t('lehre/noLvFound') }}
`
diff --git a/public/js/components/DashboardWidget/Stundenplan.js b/public/js/components/DashboardWidget/Stundenplan.js
index bf4324f4a..7bb972590 100644
--- a/public/js/components/DashboardWidget/Stundenplan.js
+++ b/public/js/components/DashboardWidget/Stundenplan.js
@@ -192,11 +192,11 @@ export default {
- {{ p.t('lehre/noLvFound') }}
+ {{ $p.t('lehre/noLvFound') }}