mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-30 11:19:59 +00:00
Update dashboard.html
This commit is contained in:
@@ -33,13 +33,13 @@ Food Nutritional Info
|
|||||||
<td class="bg-body-tertiary">{{ food.protein_100g }}</td>
|
<td class="bg-body-tertiary">{{ food.protein_100g }}</td>
|
||||||
<td class="bg-body-tertiary">
|
<td class="bg-body-tertiary">
|
||||||
<div class="d-flex gap-1">
|
<div class="d-flex gap-1">
|
||||||
|
<form method="GET" action="{{ url_for('user.edit_food_item', barcode=food.barcode) }}">
|
||||||
|
<button type="submit" class="btn btn-warning btn-sm">Edit</button>
|
||||||
|
</form>
|
||||||
<form method="POST" action="{{ url_for('user.delete_food_item', barcode=food.barcode) }}"
|
<form method="POST" action="{{ url_for('user.delete_food_item', barcode=food.barcode) }}"
|
||||||
onsubmit="return confirm('Are you sure you want to delete this item?');">
|
onsubmit="return confirm('Are you sure you want to delete this item?');">
|
||||||
<button type="submit" class="btn btn-danger btn-sm">Delete</button>
|
<button type="submit" class="btn btn-danger btn-sm">Delete</button>
|
||||||
</form>
|
</form>
|
||||||
<form method="GET" action="{{ url_for('user.edit_food_item', barcode=food.barcode) }}">
|
|
||||||
<button type="submit" class="btn btn-warning btn-sm">Edit</button>
|
|
||||||
</form>
|
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user