termine without uploads can now only have 'standard' or 'abgegeben' status based on datum; FHC_Api_Controller method checkUploadSize() -> checks input->server('CONTENT_LENGTH') against min($max_upload, $max_post, $memory_limit) and throws a designated filesizeExceeded error message; added fhc-orange palette for new status 'beurteilungerforderlich';

This commit is contained in:
Johann Hoffmann
2025-11-28 14:09:53 +01:00
parent 095d5acbc5
commit aee6ace42e
7 changed files with 106 additions and 17 deletions
@@ -333,6 +333,9 @@ export const AbgabeMitarbeiterDetail = {
}
else if(abgabedatum > datum) {
return 'verspaetet' // needs upload, missed it and has submitted smth late
} else if(!termin.upload_allowed) {
if(datum > today) return termin.diffinday <= 12 ? 'abzugeben' : 'standard'
else if (today > datum) return 'abgegeben'
} else {
return 'abgegeben' // nothing else to do for that termin
}
@@ -542,18 +542,22 @@ export const AbgabetoolAssistenz = {
// seperate status if termin is in the past, it needs a note but doesnt have one yet
if(today > datum && termin.benotbar && !termin.note) return 'beurteilungerforderlich'
else if (termin.abgabedatum === null) {
if (termin.abgabedatum === null && termin.upload_allowed) {
if(datum < today) {
return termin.upload_allowed ? 'verpasst' : 'abgegeben'
return 'verpasst' // needs upload, missed it and has not submitted anything
} else if (datum > today && termin.diffindays <= 12) {
return 'abzugeben'
return 'abzugeben' // needs to upload soon
} else {
return 'standard'
return 'standard' // upload in distant future
}
} else if(abgabedatum > datum) {
return 'verspaetet'
}
else if(abgabedatum > datum) {
return 'verspaetet' // needs upload, missed it and has submitted smth late
} else if(!termin.upload_allowed) {
if(datum > today) return termin.diffinday <= 12 ? 'abzugeben' : 'standard'
else if (today > datum) return 'abgegeben'
} else {
return 'abgegeben'
return 'abgegeben' // nothing else to do for that termin
}
},
openTimeline(val) {
@@ -63,18 +63,22 @@ export const AbgabetoolStudent = {
termin.diffindays = this.dateDiffInDays(termin.datum)
if(today > datum && termin.benotbar && !termin.note) return 'beurteilungerforderlich'
else if (termin.abgabedatum === null) {
if (termin.abgabedatum === null && termin.upload_allowed) {
if(datum < today) {
return termin.upload_allowed ? 'verpasst' : 'abgegeben'
return 'verpasst' // needs upload, missed it and has not submitted anything
} else if (datum > today && termin.diffindays <= 12) {
return 'abzugeben'
return 'abzugeben' // needs to upload soon
} else {
return 'standard'
return 'standard' // upload in distant future
}
} else if(abgabedatum > datum) {
return 'verspaetet'
}
else if(abgabedatum > datum) {
return 'verspaetet' // needs upload, missed it and has submitted smth late
} else if(!termin.upload_allowed) {
if(datum > today) return termin.diffinday <= 12 ? 'abzugeben' : 'standard'
else if (today > datum) return 'abgegeben'
} else {
return 'abgegeben'
return 'abgegeben' // nothing else to do for that termin
}
},
checkQualityGatesStrict(termine) {