FR-11: Mark Property as Sold or Rented
Description
As an authenticated user, I want to mark a property as sold or rented so that it is no longer listed as available.
Context
Sold/rented means unavailable.
This should also use API routing (see https://hexdocs.pm/phoenix/routing.html and https://hexdocs.pm/phoenix/json_and_apis.html).
Acceptance Criteria
-
AC1 - The user should be able to mark their property as sold/rented in the advertisement. -
AC2 - The user should not be redirected to an edit page, rather than the edit should be made in place. -
AC3 - The user should see the new status right after clicking on the new status. -
AC4 - The user should see a flash message on successful update.
Dependencies
Requires #18 (closed)
Edited by nurdaulet