Example scenario: The facilities no longer provides the service. In this situation, the user may uncheck certain
In the facilities information popup, add an Edit button
Clicking Edit takes you to store information page that lets you update the facilities. The form should be pre-populate the details of the business from the same form in the add business page
Since the facility is existing, there will be hidden id field in the form that matches the DB ID of the facility
After updating the business details, clicking Submit updates the records in the database and updates the facilities as approval_status = "pending" to mark that it needs to go through the moderation process.
Delete
Clicking on the Edit store link, the page should have a "Delete" button
Clicking on this button marks the location deleted.
You will need to have "active" column in the locations table
Side effects
Do not return locations that have active = 0 in the map
Do not display locations that have approval_status = "pending" in the map (should already be happening)
Blocker(s):
Update
Example scenario: The facilities no longer provides the service. In this situation, the user may uncheck certain
add business page
approval_status = "pending"
to mark that it needs to go through the moderation process.Delete
Side effects
active = 0
in the mapapproval_status = "pending"
in the map (should already be happening)