Reservations-Required/reserve-web

Create an Add Room Feature

Opened this issue · 0 comments

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 for rooms
    ** For buildings**
  • Have form fields for description, location, name, short (short name used by everyone - i.e. Morrison instead of Toni Morrison Hall), and rooms . For now, rooms will only have two elements.
  • On submit, call the appropriate post function in buildings.ts - an example, is in firebase.ts in the client for the function addUser()

** For rooms **

  • Have form fields for description, b_id, r_id, reservations, amenities. For now, reservations and amenities will only have two elements
  • On submit, call the appropriate post function in buildings.ts