Skip to content

Commit 971096b

Browse files
committed
modify edit recipe template
1 parent df6ec03 commit 971096b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fork_recipes/recipes/templates/recipes/edit_recipe.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
<input type="text" name="ingredient_quantity[]" required placeholder="Quantity (e.g., 2)"
149149
value="{{ ingredient.quantity }}"
150150
class="flex-1 rounded-md border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-mint-500 focus:border-mint-500 shadow-sm">
151-
<input type="text" name="ingredient_metric[]" required placeholder="Metric (e.g., cups)"
151+
<input type="text" name="ingredient_metric[]" placeholder="Metric (e.g., cups)"
152152
value="{{ ingredient.metric }}"
153153
class="flex-1 rounded-md border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-mint-500 focus:border-mint-500 shadow-sm">
154154
<button type="button" class="text-red-500 px-4 py-2 hover:text-red-700 ml-2"
@@ -309,7 +309,7 @@
309309
class="flex-1 rounded-md border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-mint-500 focus:border-mint-500 shadow-sm">
310310
<input type="text" name="ingredient_quantity[]" required placeholder="Quantity (e.g., 2)"
311311
class="flex-1 rounded-md border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-mint-500 focus:border-mint-500 shadow-sm">
312-
<input type="text" name="ingredient_metric[]" required placeholder="Metric (e.g., cups)"
312+
<input type="text" name="ingredient_metric[]" placeholder="Metric (e.g., cups)"
313313
class="flex-1 rounded-md border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-mint-500 focus:border-mint-500 shadow-sm">
314314
<button type="button" class="text-red-500 px-4 py-2 hover:text-red-700 ml-2"
315315
onclick="this.parentElement.remove()">

0 commit comments

Comments
 (0)