<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>View Inventory</title> </head> <body align="center"> {% include 'header.html' %} <h2>Item Inventory</h2> <table border="1" align="center"> <tr> <!-- Table headers --> {% for attrib in item_attributes %} <th>{{ attrib.display_name }}</th> {% endfor %} <th colspan="2">Actions</th> </tr> <!-- Table rows --> {% for item in items %} <tr> {% for attrib in item_attributes %} <td>{{ item[attrib.attrib_name] }}</td> {% endfor %} <td> <form action="/update/{{ item[primary_attrib] }}" method="get"> <button type="submit">Edit</button> </form> </td> <td> <form action="/delete/{{ item[primary_attrib] }}" method="get"> <button type="submit">Delete</button> </form> </td> </tr> {% endfor %} </table> <!-- br> <form action="/create" method="get"> <button type="submit">Add new Item</button> </form> <form action="/import_from_csv" method="get"> <button type="submit">Import from CSV</button> </form> <form action="/edit_using_csv" method="get"> <button type="submit">Edit using CSV</button> </form> <form action="/export_csv" method="POST"> <button type="submit">Export Data</button> </form> <form action="/logout" method="get"> <button type="submit">Logout</button> </form --> </body> </html>