Skip to content
Snippets Groups Projects
Commit e5bc43d8 authored by Omar Ibrahim Arfa's avatar Omar Ibrahim Arfa
Browse files

Merge remote-tracking branch 'origin/main' into main

parents 0ba41ffb c0c3dc8c
No related branches found
No related tags found
No related merge requests found
...@@ -126,18 +126,18 @@ HTML; ...@@ -126,18 +126,18 @@ HTML;
<legend>Bestellung {$order->getOrderingId()} Pizza {$pizzaName}</legend> <legend>Bestellung {$order->getOrderingId()} Pizza {$pizzaName}</legend>
Status: <br> Status: <br>
<label> <label>
Bestellt
<input type="radio" name="{$orderedArticleId}" value="0" {$statusArray[0]} onclick="document.forms['formBaecker'].submit();"> <input type="radio" name="{$orderedArticleId}" value="0" {$statusArray[0]} onclick="document.forms['formBaecker'].submit();">
Bestellt
</label> <br> </label> <br>
<label> <label>
Im Ofen
<input type="radio" name="{$orderedArticleId}" value="1" {$statusArray[1]} onclick="document.forms['formBaecker'].submit();"> <input type="radio" name="{$orderedArticleId}" value="1" {$statusArray[1]} onclick="document.forms['formBaecker'].submit();">
Im Ofen
</label> <br> </label> <br>
<label> <label>
Fertig
<input type="radio" name="{$orderedArticleId}" value="2" {$statusArray[2]} onclick="document.forms['formBaecker'].submit();"> <input type="radio" name="{$orderedArticleId}" value="2" {$statusArray[2]} onclick="document.forms['formBaecker'].submit();">
Fertig
</label> </label>
</fieldset>\n </fieldset>\n
HTML; HTML;
......
...@@ -135,9 +135,9 @@ function buildInputs(pizzaNode, orderedArticleID, status) { ...@@ -135,9 +135,9 @@ function buildInputs(pizzaNode, orderedArticleID, status) {
for (let value = 0; value < 5; value++) { for (let value = 0; value < 5; value++) {
let inputLabel = document.createElement("label"); let inputLabel = document.createElement("label");
pizzaNode.append(inputLabel); pizzaNode.append(inputLabel);
inputLabel.innerText = statusArray[value];
let inputRadio = document.createElement("input"); let inputRadio = document.createElement("input");
inputLabel.append(inputRadio); inputLabel.append(inputRadio);
inputLabel.innerText = statusArray[value];
inputRadio.type = "radio"; inputRadio.type = "radio";
inputRadio.name = orderedArticleID; inputRadio.name = orderedArticleID;
inputRadio.value = value.toString(); inputRadio.value = value.toString();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment