Create an Add Room Feature
Opened this issue · 0 comments
DylanTom commented
Issue
There is no way to add a building or room into the database without manually going into the console.
Task
Implement a frontend solution in admin.tsx
- no styling necessary
To-do
- Create two forms, one for
buildings
and one forrooms
** For buildings** - Have form fields for
description
,location
,name
,short
(short name used by everyone - i.e. Morrison instead of Toni Morrison Hall), androoms
. For now,rooms
will only have two elements. - On submit, call the appropriate post function in
buildings.ts
- an example, is infirebase.ts
in the client for the functionaddUser()
** For rooms **
- Have form fields for
description
,b_id
,r_id
,reservations
,amenities
. For now,reservations
andamenities
will only have two elements - On submit, call the appropriate post function in
buildings.ts