Commit 9c12df59 authored by Willard's avatar Willard

Add food description to stall view

parent 503ef978
...@@ -16,12 +16,13 @@ ...@@ -16,12 +16,13 @@
{% if dishes|length > 0 %} {% if dishes|length > 0 %}
<table class="table"> <table class="table">
<tr> <tr>
<th>Image</th><th>Name</th><th>Price</th><th>Controls</th> <th>Image</th><th>Name</th><th>Description</th><th>Price</th><th>Controls</th>
</tr> </tr>
{% for dish in dishes %} {% for dish in dishes %}
<tr> <tr>
<td><img width="160px" height="160px" src="{{url_for('static', filename='uploads/'+dish.image_path)}}" alt=""></td> <td><img width="160px" height="160px" src="{{url_for('static', filename='uploads/'+dish.image_path)}}" alt=""></td>
<td>{{dish.name}}</td> <td>{{dish.name}}</td>
<td>{{dish.description}}</td>
<td>Php {{dish.price}}</td> <td>Php {{dish.price}}</td>
<td> <td>
<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}}')">
......
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