Create a React component and route for the Edit Page.
The user story this supports is:
As an instructor or admin
I can enter information about my course staff
So that I can delegate some functions to TAs/LAs
[ ] When the user navigates to /staff the page will be populated
with data all rows in the database, and the user will be able to see
all of the data in the table.
[ ] When the index page is accessed by an admin user, they will be able to
see a button to create a new record, and a button to edit each record,
and a button to delete each record.
[ ] When the index page is accessed by an regular logged in user,
the buttons to create a new record, edit a record, and delete a record
will not be visible in the table. Logged in users will be able to see
the data in the table, but that is all.
[ ] When the index page is accessed by an admin user, the edit button will
navigate to the URL for the edit page for that record. (The page should display
if the issue to implement it is already completed, or a blank page with the correct
URL if it is not.)
[ ] When the index page is accessed by an admin user, the delete button will
call the endpoint to delete the record from the database, and then refresh
the page. The refreshed page will not show the deleted record.
Create a React component and route for the Edit Page. The user story this supports is:
As an instructor or admin I can enter information about my course staff So that I can delegate some functions to TAs/LAs
[ ] When the user navigates to /staff the page will be populated with data all rows in the database, and the user will be able to see all of the data in the table.
[ ] When the index page is accessed by an admin user, they will be able to see a button to create a new record, and a button to edit each record, and a button to delete each record.
[ ] When the index page is accessed by an regular logged in user, the buttons to create a new record, edit a record, and delete a record will not be visible in the table. Logged in users will be able to see the data in the table, but that is all.
[ ] When the index page is accessed by an admin user, the edit button will navigate to the URL for the edit page for that record. (The page should display if the issue to implement it is already completed, or a blank page with the correct URL if it is not.)
[ ] When the index page is accessed by an admin user, the delete button will call the endpoint to delete the record from the database, and then refresh the page. The refreshed page will not show the deleted record.