[ ] On the Admin menu there is an option Rider Applications that takes the admin user to a page /admin/applications/riders
[ ] On that page the admin can see separate tables: one labelled Pending Rider Applications with all currently pending rider applications, and a second labelled All Rider Applications which contains all rider applications.
[ ] Both tables have Review buttons that take the admin to a page /admin/applications/riders/review/:id where the admin can see all of the fields in the application, but can edit the notes field.
[ ] For pending applications, the admin has buttons to "Approve", "Deny", "Save". All three save any edits to the response field. In addition, "Accept" or "Decline" will change the status of the application to "Accepted" or "Declined". There is also a "Return without Saving" button that returns to the /admin/applications/riders without saving any changes to the form.
[ ] For applications in the status "accepted", there is a button on the /admin/applications/riders/review/:id page called "Set Status to Expired", and one called "Return without Saving". In this case the notes field is editable. The "Set Status to Expired" button will update the status to expired and save the changes. The "Return without Saving" returns to the /admin/applications/riders discarding any changes to the form.
[ ] For applications in the status "declined" or "cancelled" there are no editable fields on the /admin/applications/riders/review/:id page and just one button "Return" that returns to the /admin/applications/riders page.
Task
[ ] There is a page component for the /admin/applications/riders url that meets all of the acceptance criteria
[ ] For pending applications, the admin has buttons to "Approve", "Deny", "Save". All three save any edits to the response field. In addition, "Accept" or "Decline" will change the status of the application to "Accepted" or "Declined". There is also a "Return without Saving" button that returns to the /admin/applications/riders without saving any changes to the form.
[ ] For applications in the status "accepted", there is a button on the /admin/applications/riders/review/:id page called "Set Status to Expired", and one called "Return without Saving". In this case the notes field is editable. The "Set Status to Expired" button will update the status to expired and save the changes. The "Return without Saving" returns to the /admin/applications/riders discarding any changes to the form.
[ ] For applications in the status "declined" or "cancelled" there are no editable fields on the /admin/applications/riders/review/:id page and just one button "Return" that returns to the /admin/applications/riders page.
Acceptance Criteria: Admin Perspective
Rider Applications
that takes the admin user to a page/admin/applications/riders
Pending Rider Applications
with all currently pending rider applications, and a second labelledAll Rider Applications
which contains all rider applications./admin/applications/riders/review/:id
where the admin can see all of the fields in the application, but can edit thenotes
field./admin/applications/riders
without saving any changes to the form./admin/applications/riders/review/:id
page called "Set Status to Expired", and one called "Return without Saving". In this case the notes field is editable. The "Set Status to Expired" button will update the status to expired and save the changes. The "Return without Saving" returns to the/admin/applications/riders
discarding any changes to the form./admin/applications/riders/review/:id
page and just one button "Return" that returns to the/admin/applications/riders
page.Task
/admin/applications/riders
url that meets all of the acceptance criteria/admin/applications/riders
without saving any changes to the form./admin/applications/riders/review/:id
page called "Set Status to Expired", and one called "Return without Saving". In this case the notes field is editable. The "Set Status to Expired" button will update the status to expired and save the changes. The "Return without Saving" returns to the/admin/applications/riders
discarding any changes to the form./admin/applications/riders/review/:id
page and just one button "Return" that returns to the/admin/applications/riders
page.