diff --git a/public/js/components/Stv/Studentenverwaltung/Details/Mobility/List/Purpose.js b/public/js/components/Stv/Studentenverwaltung/Details/Mobility/List/Purpose.js index 8e2c61f1f..381351f42 100644 --- a/public/js/components/Stv/Studentenverwaltung/Details/Mobility/List/Purpose.js +++ b/public/js/components/Stv/Studentenverwaltung/Details/Mobility/List/Purpose.js @@ -114,6 +114,7 @@ export default { zweck_code: "" }, localData: [], + isCentered: false, } }, watch: { @@ -123,9 +124,15 @@ export default { } }, }, + computed: { + modalClasses() { + return this.isCentered ? "modal-dialog-centered" : ""; + }, + }, methods: { actionNewPurpose() { this.resetModal(); + this.isCentered = true; this.$refs.mobilityPurpose.show(); }, actionDeletePurpose(zweck_code) { @@ -182,11 +189,10 @@ export default { closeModal(){ this.$refs.mobilityPurpose.hide(); - this.$emit('close-modal'); }, openModal(){ + this.isCentered = true; this.$refs.mobilityPurpose.show(); - this.$emit('open-modal'); }, reload() { this.$refs.table.reloadTable(); @@ -218,10 +224,9 @@ export default {
- + diff --git a/public/js/components/Stv/Studentenverwaltung/Details/Mobility/Mobility.js b/public/js/components/Stv/Studentenverwaltung/Details/Mobility/Mobility.js index 308a4f7a4..3b3a9bd9d 100644 --- a/public/js/components/Stv/Studentenverwaltung/Details/Mobility/Mobility.js +++ b/public/js/components/Stv/Studentenverwaltung/Details/Mobility/Mobility.js @@ -176,9 +176,6 @@ export default { this.$refs.table.reloadTable(); } }, -/* formData.lehrveranstaltung_id(){ - - }*/ }, computed:{ lv_teile(){ @@ -189,11 +186,13 @@ export default { actionNewMobility() { this.resetForm(); this.statusNew = true; + this.$refs.mobilityModal.show(); }, actionEditMobility(bisio_id) { this.resetForm(); this.statusNew = false; this.loadMobility(bisio_id); + this.$refs.mobilityModal.show(); }, actionDeleteMobility(bisio_id) { this.$fhcAlert @@ -212,6 +211,7 @@ export default { return this.$fhcApi.factory.stv.mobility.addNewMobility(this.$refs.formMobility, dataToSend) .then(response => { this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successSave')); + this.hideModal("mobilityModal"); this.resetForm(); }) .catch(this.$fhcAlert.handleSystemError) @@ -237,6 +237,9 @@ export default { }) .catch(this.$fhcAlert.handleSystemError); }, + hideModal(modalRef){ + this.$refs[modalRef].hide(); + }, reload() { this.$refs.table.reloadTable(); }, @@ -255,6 +258,7 @@ export default { this.$fhcApi.factory.stv.mobility.updateMobility(this.$refs.formMobility, dataToSend) .then(response => { this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successSave')); + this.hideModal("mobilityModal"); this.resetForm(); }) .catch(this.$fhcAlert.handleSystemError) @@ -282,6 +286,7 @@ export default { this.formData.bisio_id = null; this.formData.localPurposes = []; this.formData.localSupports = []; + this.statusNew = true; }, // ----------------------------------- methods purposes ----------------------------------- addMobilityPurpose({zweck_code, bisio_id}){ @@ -387,217 +392,233 @@ export default { @click:new="actionNewMobility" > + + + + - -
- BIS - Outgoing -
- -
- - - - - - + + +
+ BIS + Outgoing
- -
- - - - -
- -
- - - - - - -
- -
- - - - - - -
- -
- - - - - - - -
- -
-
-
-
- +
+ + + +
-
+ +
+ + + + -
+ +
+ +
+ + + + + + +
+ +
+ + + + + + + +
+ +
+
+ +
+ +
+ +
+
+ + + + + + - +
diff --git a/system/phrasesupdate.php b/system/phrasesupdate.php index 0d8e95d41..6b4a507f9 100644 --- a/system/phrasesupdate.php +++ b/system/phrasesupdate.php @@ -40231,6 +40231,46 @@ array( ) ) ), + array( + 'app' => 'core', + 'category' => 'mobility', + 'phrase' => 'mobility_anlegen', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Mobilität anlegen', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Create mobility', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), + array( + 'app' => 'core', + 'category' => 'mobility', + 'phrase' => 'mobility_bearbeiten', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => 'Mobilität bearbeiten', + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Edit mobility', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), // FHC4 Phrases Mobility End );