As a logged in user
I want to be able to suggest a new location and/or write a message to the admin
so that I would be able to make the app better.
Description
Acceptance Criteria
[x] Clicking "Add" button switches to the AddPage
[x] Input fields "name of location", "address", "opening hours", "which boats can be rented" are displayed
[x] Check buttons to select menu type are displayed
[x] Radio buttons to select the possibility of renting boats are displayed
[x] Loading an image is possible
[x] "Save" button is displayed
[x] "Cancel" button is displayed
[x] Clicking the "Save" button saved the data in the locations collection on MongoDB
[x] Clicking the "Cancel" button switches to the Homepage
[x] The uploaded image is saved on Cloudinary, and its address in the database collection
[x] Input field "wright us a message" is displayed
[x] "Send" button is displayed
[x] Clicking the "Save" button saved the data in the message collection on MongoDB (this data will not be visible in the frontend at first. Displaying them is the task of the next user story).
Tasks
[x] Create an AddLocation component, that renders two forms and hat two async functions (handleAdd and handleSend) for submit the data.
[x] Create AddLocationForm and AddMessageForm components
[x] Create a new collection "Messages" on Mongo DB
[x] Create db model "messages"
[x] Add if (request.method === "POST") to the handler function in api/messages.js
Value Proposition
As a logged in user I want to be able to suggest a new location and/or write a message to the admin so that I would be able to make the app better.
Description
Acceptance Criteria
Tasks
Complexity
L