Commit 411d9a2d authored by Willard's avatar Willard

Readd edit button on dish

parent 9c12df59
...@@ -25,8 +25,9 @@ ...@@ -25,8 +25,9 @@
<td>{{dish.description}}</td> <td>{{dish.description}}</td>
<td>Php {{dish.price}}</td> <td>Php {{dish.price}}</td>
<td> <td>
<a class="btn btn-primary btn-block btn-lg "href="{{ url_for('edit_dish', stall_id=stall.id, dish_id=dish.id) }}">Edit</a>
<form action="{{ url_for('delete_dish', stall_id=stall.id, dish_id=dish.id) }}" method="POST" onsubmit="return confirm('Are you sure you want to delete {{dish.name}}')"> <form action="{{ url_for('delete_dish', stall_id=stall.id, dish_id=dish.id) }}" method="POST" onsubmit="return confirm('Are you sure you want to delete {{dish.name}}')">
<button type="submit" class="btn btn-danger btn-lg">Delete</button></a> <button type="submit" class="btn btn-danger btn-block btn-lg">Delete</button></a>
</form> </form>
</td> </td>
</tr> </tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment