Enhance settings page; add room management functionality with combo box integration and update rendering logic for improved usability

This commit is contained in:
Yaro Kasear 2025-06-18 15:36:34 -05:00
parent ad413c3f1b
commit ec08dd8ef1
4 changed files with 56 additions and 13 deletions

View file

@ -436,4 +436,5 @@ def settings():
types = db.session.query(Item.id, Item.description.label("name")).order_by(Item.description).all()
sections = db.session.query(Area).order_by(Area.name).all()
functions = db.session.query(RoomFunction.id, RoomFunction.description.label("name")).order_by(RoomFunction.description).all()
return render_template('settings.html', title="Settings", brands=brands, types=types, sections=sections, functions=functions)
rooms = eager_load_room_relationships(db.session.query(Room).order_by(Room.name)).all()
return render_template('settings.html', title="Settings", brands=brands, types=types, sections=sections, functions=functions, rooms=rooms)