mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
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:
@@ -85,6 +85,18 @@
|
||||
--fhc-pink-70: rgb(160, 40, 90);
|
||||
--fhc-pink-80: rgb(130, 25, 70);
|
||||
--fhc-pink-90: rgb(100, 15, 50);
|
||||
|
||||
/* --- Orange --- */
|
||||
--fhc-orange-5: rgb(255, 250, 240);
|
||||
--fhc-orange-10: rgb(255, 235, 200);
|
||||
--fhc-orange-20: rgb(255, 210, 140);
|
||||
--fhc-orange-30: rgb(255, 185, 80);
|
||||
--fhc-orange-40: rgb(255, 155, 40);
|
||||
--fhc-orange-50: rgb(255, 128, 0);
|
||||
--fhc-orange-60: rgb(230, 110, 0);
|
||||
--fhc-orange-70: rgb(200, 90, 0);
|
||||
--fhc-orange-80: rgb(170, 70, 0);
|
||||
--fhc-orange-90: rgb(130, 50, 0);
|
||||
|
||||
--fhc-beige-10: rgba(245, 233, 215, 0.5);
|
||||
--fhc-beige-20: rgba(172, 153, 125, 0.5);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user