This commit is contained in:
Bianca Fürstenau 2025-02-15 20:42:22 +01:00
parent a7cea3b13a
commit 43bcfac938
2 changed files with 8 additions and 4 deletions

View file

@ -75,11 +75,11 @@
<form> <form>
<div style="display: contents"> <div style="display: contents">
<div class="labelled-input"> <div class="labelled-input">
<input type="radio" id="cafe-inventory-acc-sumpf" name="cafe-inventory-acc"> <input type="radio" id="cafe-inventory-acc-sumpf" name="cafe-inventory-acc" value="sumpf">
<label for="cafe-inventory-acc-sumpf">Sumpf</label> <label for="cafe-inventory-acc-sumpf">Sumpf</label>
</div> </div>
<div class="labelled-input"> <div class="labelled-input">
<input type="radio" id="cafe-inventory-acc-hs" name="cafe-inventory-acc"> <input type="radio" id="cafe-inventory-acc-hs" name="cafe-inventory-acc" value="hs">
<label for="cafe-inventory-acc-hs">Heinersyndikat</label> <label for="cafe-inventory-acc-hs">Heinersyndikat</label>
</div> </div>
</div> </div>
@ -153,7 +153,7 @@
alt="Bargeld" alt="Bargeld"
/> />
</label> </label>
<input type="number" id="cafe-inventory-cash" name="cafe-inventory-cash" min="0"> <input type="number" id="cafe-inventory-cash" name="cafe-inventory-cash" min="0" step=".01">
</div> </div>
<button type="submit" class="shout"> <button type="submit" class="shout">
Senden Senden

View file

@ -31,7 +31,11 @@ async function increment(el) {
} }
async function inventory() { async function inventory() {
alert("Hi!"); const form = document.querySelector("#cafe-inventory form");
const fd = new FormData(form);
for (let item of fd) {
alert(item);
}
} }
async function swap(s) { async function swap(s) {