From b17195992042dc8ca2a1aa6b7146c7847fbe61da Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Thu, 18 Jul 2024 13:19:28 +0200 Subject: [PATCH] Improvements to statusModal & use Status insert function in Component --- .../Details/Prestudent/MultiStatus.js | 259 +++++++++--------- 1 file changed, 133 insertions(+), 126 deletions(-) diff --git a/public/js/components/Stv/Studentenverwaltung/Details/Prestudent/MultiStatus.js b/public/js/components/Stv/Studentenverwaltung/Details/Prestudent/MultiStatus.js index 2c469d99b..c6aba8040 100644 --- a/public/js/components/Stv/Studentenverwaltung/Details/Prestudent/MultiStatus.js +++ b/public/js/components/Stv/Studentenverwaltung/Details/Prestudent/MultiStatus.js @@ -2,6 +2,7 @@ import {CoreFilterCmpt} from "../../../../filter/Filter.js"; import BsModal from "../../../../Bootstrap/Modal.js"; import FormForm from '../../../../Form/Form.js'; import FormInput from '../../../../Form/Input.js'; +import FormValidation from '../../../../Form/Validation.js'; export default{ components: { @@ -9,6 +10,7 @@ export default{ BsModal, FormForm, FormInput, + FormValidation, }, inject: { defaultSemester: { @@ -526,6 +528,20 @@ export default{ this.resetModal(); }); }, + // Manually inserts a new Status with use of the statusModal + insertStatus() { + this.$refs.statusData + .post( + 'api/frontend/v1/stv/status/insert/' + this.modelValue.prestudent_id, + this.statusData + ) + .then(result => { + this.reload(); + this.$reloadList(); + this.$refs.statusModal.hide(); + }) + .catch(this.$fhcAlert.handleSystemError); + }, addNewStatus(prestudentIds){ //Array.isArray(prestudentIds) ? this.modelValue.prestudent_id : [prestudentIds]; let changeData = {}; @@ -790,14 +806,14 @@ export default{
- + - -

Details {{modelValue.nachname}} {{modelValue.vorname}}

+ +

{{$p.t('bismeldestichtag', 'info_MeldestichtagStatusgrund')}}

@@ -805,116 +821,109 @@ export default{ {{$p.t('bismeldestichtag', 'info_MeldestichtagStatusgrundSemester')}}

-
- - - - - - - - - - - -
-
- - - -
+ + + + + + + + + + + + + -
- - - -
- -
- -
-
- -
-
- -
-
- {{ number }} + + + + + + + + - - -
-
- {{sp.bezeichnung}} + + - -
- -
- + - -
+ -
- - - - -
+ + + +
-
+