truckerswelcome / webapp

Web application components (UI and backend)
MIT License
2 stars 2 forks source link

As a concerned citizen, I should be able to update/delete existing business information #11

Closed iamjillsanluis closed 4 years ago

iamjillsanluis commented 4 years ago

Blocker(s):

Update

Example scenario: The facilities no longer provides the service. In this situation, the user may uncheck certain

  1. In the facilities information popup, add an Edit button
  2. 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
    1. Since the facility is existing, there will be hidden id field in the form that matches the DB ID of the facility
  3. 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

  1. Clicking on the Edit store link, the page should have a "Delete" button
  2. Clicking on this button marks the location deleted.
    1. You will need to have "active" column in the locations table

Side effects

  1. Do not return locations that have active = 0 in the map
  2. Do not display locations that have approval_status = "pending" in the map (should already be happening)
domcho commented 4 years ago

Implemented and pushed in a01c532..5bd71da