More UI
This commit is contained in:
parent
a7cea3b13a
commit
43bcfac938
2 changed files with 8 additions and 4 deletions
|
@ -75,11 +75,11 @@
|
|||
<form>
|
||||
<div style="display: contents">
|
||||
<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>
|
||||
</div>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -153,7 +153,7 @@
|
|||
alt="Bargeld"
|
||||
/>
|
||||
</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>
|
||||
<button type="submit" class="shout">
|
||||
Senden
|
||||
|
|
|
@ -31,7 +31,11 @@ async function increment(el) {
|
|||
}
|
||||
|
||||
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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue