diff --git a/public/js/api/factory/abgabe.js b/public/js/api/factory/abgabe.js index 891fe02da..be03c9728 100644 --- a/public/js/api/factory/abgabe.js +++ b/public/js/api/factory/abgabe.js @@ -43,13 +43,23 @@ export default { }; }, postProjektarbeitAbgabe(termin) { + + let dateString = termin.datum + if(termin.datum instanceof Date) { + const year = termin.datum.getFullYear(); + const month = String(termin.datum.getMonth() + 1).padStart(2, '0'); + const day = String(termin.datum.getDate()).padStart(2, '0'); + + dateString = `${year}-${month}-${day}` + } + return { method: 'post', url: '/api/frontend/v1/Abgabe/postProjektarbeitAbgabe', params: { paabgabe_id: termin.paabgabe_id, paabgabetyp_kurzbz: termin.bezeichnung.paabgabetyp_kurzbz, - datum: termin.datum, + datum: dateString, note: termin.note_pk, upload_allowed: !!termin.upload_allowed, beurteilungsnotiz: termin.beurteilungsnotiz ?? '', diff --git a/public/js/components/Cis/Abgabetool/AbgabeMitarbeiterDetail.js b/public/js/components/Cis/Abgabetool/AbgabeMitarbeiterDetail.js index 01d39793e..ba8522510 100644 --- a/public/js/components/Cis/Abgabetool/AbgabeMitarbeiterDetail.js +++ b/public/js/components/Cis/Abgabetool/AbgabeMitarbeiterDetail.js @@ -230,11 +230,11 @@ export const AbgabeMitarbeiterDetail = { async validateZusatzdaten() { // just ask once if(await this.$fhcAlert.confirm({ - message: this.$p.t('abgabetool/confirmEnduploadSpeichern'), + message: this.$p.t('abgabetool/confirmZusatzdatenSpeichern'), acceptLabel: this.$capitalize(this.$p.t('abgabetool/c4AcceptAndProceed')), - acceptClass: 'btn btn-danger', + acceptClass: 'p-button-primary', rejectLabel: this.$capitalize(this.$p.t('abgabetool/c4Cancel')), - rejectClass: 'btn btn-outline-secondary' + rejectClass: 'p-button-secondary' }) === false) { return false } @@ -245,9 +245,9 @@ export const AbgabeMitarbeiterDetail = { if(await this.$fhcAlert.confirm({ message: this.$p.t('abgabetool/c4confirm_delete'), acceptLabel: 'Löschen', - acceptClass: 'btn btn-danger', + acceptClass: 'p-button-danger', rejectLabel: 'Zurück', - rejectClass: 'btn btn-outline-secondary' + rejectClass: 'p-button-secondary' }) === false) { return false } else { diff --git a/public/js/components/Cis/Abgabetool/AbgabeStudentDetail.js b/public/js/components/Cis/Abgabetool/AbgabeStudentDetail.js index b74e12317..2af3c4c9c 100644 --- a/public/js/components/Cis/Abgabetool/AbgabeStudentDetail.js +++ b/public/js/components/Cis/Abgabetool/AbgabeStudentDetail.js @@ -59,9 +59,9 @@ export const AbgabeStudentDetail = { if(await this.$fhcAlert.confirm({ message: this.$p.t('abgabetool/confirmEnduploadSpeichern'), acceptLabel: this.$capitalize(this.$p.t('abgabetool/c4AcceptAndProceed')), - acceptClass: 'btn btn-danger', + acceptClass: 'p-button-primary', rejectLabel: this.$capitalize(this.$p.t('abgabetool/c4Cancel')), - rejectClass: 'btn btn-outline-secondary' + rejectClass: 'p-button-secondary' }) === false) { return false } diff --git a/public/js/components/Cis/Abgabetool/AbgabetoolAssistenz.js b/public/js/components/Cis/Abgabetool/AbgabetoolAssistenz.js index 8053ea3f1..8ca1b931e 100644 --- a/public/js/components/Cis/Abgabetool/AbgabetoolAssistenz.js +++ b/public/js/components/Cis/Abgabetool/AbgabetoolAssistenz.js @@ -1067,7 +1067,6 @@ export const AbgabetoolAssistenz = { :style="{'width': '100%'}" v-model="serienTermin.bezeichnung" :options="abgabeTypeOptions" - @change="handleChangeAbgabetypSerientermin(termin)" :optionLabel="getOptionLabelAbgabetyp"> diff --git a/public/js/components/Cis/Abgabetool/AbgabetoolMitarbeiter.js b/public/js/components/Cis/Abgabetool/AbgabetoolMitarbeiter.js index 6752319e1..0cecb10e2 100644 --- a/public/js/components/Cis/Abgabetool/AbgabetoolMitarbeiter.js +++ b/public/js/components/Cis/Abgabetool/AbgabetoolMitarbeiter.js @@ -432,7 +432,13 @@ export const AbgabetoolMitarbeiter = { } }, watch: { + 'serienTermin.bezeichnung'(newVal) { + if(newVal?.paabgabetyp_kurzbz === 'qualgate1' || newVal?.paabgabetyp_kurzbz === 'qualgate2') { + this.serienTermin.kurzbz = newVal.bezeichnung + } + this.serienTermin.upload_allowed = newVal.upload_allowed_default + }, }, computed: { getAllowedAbgabeTypeOptions() { @@ -524,7 +530,7 @@ export const AbgabetoolMitarbeiter = {
- 'core', + 'category' => 'abgabetool', + 'phrase' => 'confirmZusatzdatenSpeichern', + 'insertvon' => 'system', + 'phrases' => array( + array( + 'sprache' => 'German', + 'text' => "Möchten Sie die Zusatzdaten speichern?", + 'description' => '', + 'insertvon' => 'system' + ), + array( + 'sprache' => 'English', + 'text' => 'Do you want to save the additional data?', + 'description' => '', + 'insertvon' => 'system' + ) + ) + ), array( 'app' => 'core', 'category' => 'abgabetool',