diff --git a/src/new/var/plugins/Custom/PSC/LaufkartenLayouter/Resources/views/designer/start.html.twig b/src/new/var/plugins/Custom/PSC/LaufkartenLayouter/Resources/views/designer/start.html.twig
index 84b05d817..018143932 100644
--- a/src/new/var/plugins/Custom/PSC/LaufkartenLayouter/Resources/views/designer/start.html.twig
+++ b/src/new/var/plugins/Custom/PSC/LaufkartenLayouter/Resources/views/designer/start.html.twig
@@ -126,7 +126,7 @@
2-Seitig |
OCR Bereich |
Nummer (OCR) |
- In Rot |
+ Farbe |
OCR |
Löschen |
@@ -249,7 +249,7 @@
uuid: fileData.uuid,
fileName: fileData.fileName,
ocrNumber: fileData.ocrNumber || '',
- inRed: fileData.inRed || false,
+ color: fileData.color || 'black',
numPages: fileData.numPages || 0,
isDuplex: fileData.isDuplex || false
};
@@ -275,7 +275,7 @@
numPages: fileData.numPages,
isDuplex: fileData.isDuplex,
ocrNumber: fileData.ocrNumber,
- inRed: fileData.inRed,
+ color: fileData.color,
processed: fileData.ocrNumber ? true : false,
uploadedUuid: fileData.uuid,
isAlreadyUploaded: true // Mark as already uploaded
@@ -307,12 +307,12 @@
if (currentStep === 2 && pdfData.length > 0) {
pdfData.forEach((pdf, index) => {
const input = document.getElementById(`ocr-input-${index}`);
- const checkbox = document.getElementById(`red-checkbox-${index}`);
+ const colorSelect = document.getElementById(`color-select-${index}`);
if (input) {
pdf.ocrNumber = input.value;
}
- if (checkbox) {
- pdf.inRed = checkbox.checked;
+ if (colorSelect) {
+ pdf.color = colorSelect.value;
}
});
}
@@ -422,7 +422,7 @@
numPages: numPages,
isDuplex: numPages % 2 === 0 && numPages > 1,
ocrNumber: '',
- inRed: false,
+ color: 'black',
processed: false,
isAlreadyUploaded: false // Mark as NOT uploaded yet
});
@@ -556,7 +556,7 @@
numPages: numPages,
isDuplex: numPages % 2 === 0 && numPages > 1,
ocrNumber: '',
- inRed: false,
+ color: 'black',
processed: false,
isAlreadyUploaded: false // New files need to be uploaded
});
@@ -682,10 +682,16 @@
onchange="updateOCRNumber(${index}, this.value)" />
-
+
|
|