<!DOCTYPE HTML> <html> <body> <form action="./quantities"> <input type="text" placeholder="Location" name="location" /> <input type="submit" /> <br> <input type="reset" value="Reset" onclick="parent.location='./quantities'" /> </form> <table border=1> <tr> <th>UPC</th> <td>Quantity</td> <td>Location</td> </tr> {% for upc, quantity, location in data %} <tr> <th> {{ upc }} </th> <td> {{ quantity }} </td> <td> {{ location }} </td> </tr> {% endfor %} </table> </body> </html>