diff --git a/application/core/Notiz_Controller.php b/application/core/Notiz_Controller.php index 8a93c4f0f..1b78f15f7 100644 --- a/application/core/Notiz_Controller.php +++ b/application/core/Notiz_Controller.php @@ -158,8 +158,7 @@ abstract class Notiz_Controller extends FHCAPI_Controller $text = $this->input->post('text'); $erledigt = $this->input->post('erledigt'); $verfasser_uid = isset($_POST['verfasser']) ? $_POST['verfasser'] : $uid; - //$verfasser_uid = isset($_POST['verfasser_uid']) ? $_POST['verfasser_uid'] : $uid; - $bearbeiter_uid = isset($_POST['bearbeiter_uid']) ? $_POST['bearbeiter_uid'] : null; + $bearbeiter_uid = isset($_POST['bearbeiter']) ? $_POST['bearbeiter'] : null; $type = $this->input->post('typeId'); $start = $this->input->post('start'); $ende = $this->input->post('ende'); diff --git a/public/js/components/Notiz/Notiz.js b/public/js/components/Notiz/Notiz.js index bff0ad6c7..ec2c7696b 100644 --- a/public/js/components/Notiz/Notiz.js +++ b/public/js/components/Notiz/Notiz.js @@ -29,13 +29,13 @@ export default { }, notizLayout: { type: String, - default: 'twoColumnsFormLeft', + default: 'popupModal', validator(value) { - // TODO(chris): modal version return [ 'classicFas', 'twoColumnsFormRight', - 'twoColumnsFormLeft' + 'twoColumnsFormLeft', + 'popupModal' ].includes(value) } }, @@ -278,6 +278,9 @@ export default { } }) .then(() => { + if(this.notizLayout == 'popupModal') { + this.$refs.NotizModal.show(); + } if (this.notizData.dms_id) { this.loadDocEntries(this.notizData.notiz_id); } else @@ -286,6 +289,9 @@ export default { }, actionNewNotiz() { this.resetFormData(); + if(this.notizLayout == 'popupModal') { + this.$refs.NotizModal.show(); + } }, addNewNotiz() { const formData = new FormData(); @@ -297,6 +303,9 @@ export default { .then(response => { this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successSave')); this.resetFormData(); + if(this.notizLayout == 'popupModal') { + this.$refs.NotizModal.hide(); + } this.reload(); }) .catch(this.$fhcAlert.handleSystemError) @@ -346,6 +355,9 @@ export default { .then(response => { this.$fhcAlert.alertSuccess(this.$p.t('ui', 'successSave')); this.resetFormData(); + if(this.notizLayout == 'popupModal') { + this.$refs.NotizModal.hide(); + } this.reload(); }) .catch(this.$fhcAlert.handleSystemError) @@ -1024,6 +1036,194 @@ export default { +
+ + + + + + + + + + + + +
+ + +
+
+

Falsches Layout übergeben: {{notizLayout}}

Kein Layout übergeben

diff --git a/public/js/components/Stv/Studentenverwaltung/Details/Notizen.js b/public/js/components/Stv/Studentenverwaltung/Details/Notizen.js index 78a0940f8..7f09d3d05 100644 --- a/public/js/components/Stv/Studentenverwaltung/Details/Notizen.js +++ b/public/js/components/Stv/Studentenverwaltung/Details/Notizen.js @@ -13,6 +13,7 @@ export default {