Add inventory index route and update templates for breadcrumb navigation

This commit is contained in:
Yaro Kasear 2025-06-11 13:10:02 -05:00
parent 795b23fbae
commit 14384c3d22
8 changed files with 149 additions and 53 deletions

View file

@ -144,6 +144,11 @@ def list_inventory():
entry_route="inventory_item"
)
@main.route("/inventory/index")
def inventory_index():
category = request.args.get('category')
return render_template('inventory_index.html', title="Inventory Index", category=category)
@main.route("/inventory_item/<int:id>")
def inventory_item(id):
worklog_page = request.args.get("worklog_page", default=1, type=int)