This commit is contained in:
@ -231,4 +231,13 @@ button#cancel-button:disabled {
|
|||||||
|
|
||||||
button#cancel-button:not(:disabled):hover {
|
button#cancel-button:not(:disabled):hover {
|
||||||
background-color: #490000; /* Dunkleres Rot */
|
background-color: #490000; /* Dunkleres Rot */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-layout {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form-row {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
@ -240,21 +240,25 @@ function updateTotalNutrition() {
|
|||||||
|
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<form onsubmit="event.preventDefault(); addProduct();" id="product-form">
|
<form onsubmit="event.preventDefault(); addProduct();" id="product-form" class="form-layout">
|
||||||
<input type="number" id="portions" name="portions" placeholder="Portionen" min="1" value="1" oninput="recalculateTableBasedOnPortions()">
|
<div class="form-row">
|
||||||
|
<input type="number" id="portions" name="portions" placeholder="Portionen" min="1" value="1" oninput="recalculateTableBasedOnPortions()">
|
||||||
<label for="my_combobox">Wählen Sie ein Lebensmittel</label>
|
</div>
|
||||||
<input list="products" name="my_combobox" id="my_combobox" placeholder="Lebensmittel" oninput="updateButtonState()" autocomplete="off">
|
<div class="form-row">
|
||||||
<datalist id="products">
|
<label for="my_combobox">Wählen Sie ein Lebensmittel</label>
|
||||||
<!-- Produkte werden hier dynamisch eingefügt -->
|
<input list="products" name="my_combobox" id="my_combobox" placeholder="Lebensmittel" oninput="updateButtonState()" autocomplete="off">
|
||||||
</datalist>
|
<datalist id="products">
|
||||||
<input type="number" id="weight" name="weight" placeholder="Gramm" oninput="updateButtonState()">
|
<!-- Produkte werden hier dynamisch eingefügt -->
|
||||||
<button type="submit" id="submit-button" disabled>Hinzufügen</button>
|
</datalist>
|
||||||
|
</div>
|
||||||
|
<div class="form-row">
|
||||||
|
<input type="number" id="weight" name="weight" placeholder="Gramm" oninput="updateButtonState()">
|
||||||
|
</div>
|
||||||
|
<div class="form-row">
|
||||||
|
<button type="submit" id="submit-button" disabled>Hinzufügen</button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
<table id="nutrition-table">
|
<table id="nutrition-table">
|
||||||
<tr>
|
<tr>
|
||||||
|
Reference in New Issue
Block a user