This commit is contained in:
@ -231,4 +231,13 @@ button#cancel-button:disabled {
|
||||
|
||||
button#cancel-button:not(:disabled):hover {
|
||||
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">
|
||||
<form onsubmit="event.preventDefault(); addProduct();" id="product-form">
|
||||
<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>
|
||||
<input list="products" name="my_combobox" id="my_combobox" placeholder="Lebensmittel" oninput="updateButtonState()" autocomplete="off">
|
||||
<datalist id="products">
|
||||
<!-- Produkte werden hier dynamisch eingefügt -->
|
||||
</datalist>
|
||||
<input type="number" id="weight" name="weight" placeholder="Gramm" oninput="updateButtonState()">
|
||||
<button type="submit" id="submit-button" disabled>Hinzufügen</button>
|
||||
|
||||
|
||||
|
||||
|
||||
<form onsubmit="event.preventDefault(); addProduct();" id="product-form" class="form-layout">
|
||||
<div class="form-row">
|
||||
<input type="number" id="portions" name="portions" placeholder="Portionen" min="1" value="1" oninput="recalculateTableBasedOnPortions()">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="my_combobox">Wählen Sie ein Lebensmittel</label>
|
||||
<input list="products" name="my_combobox" id="my_combobox" placeholder="Lebensmittel" oninput="updateButtonState()" autocomplete="off">
|
||||
<datalist id="products">
|
||||
<!-- Produkte werden hier dynamisch eingefügt -->
|
||||
</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>
|
||||
|
||||
|
||||
<table id="nutrition-table">
|
||||
<tr>
|
||||
|
Reference in New Issue
Block a user