<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>View Inventory</title> {% include 'favicon.html' %} </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> </body> </html>