codersforcauses / codersforcauses/teach-learn-grow

As an administrator I want to be able to add/edit/remove available programs

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

In the admins page, administrators should be able to add programs, alter programs and remove programs. All the programs should be listed in a table, each with a view info, edit and remove button. There should be an add new program button above the table and when clicked it should open a dialog to insert information including the name start/end date, a general description and the closing application date. When the view information button is clicked it should open the existing program information for view, the information can also be edited here. When delete is clicked a confirmation should pop up to confirm deletion.

**Tasks**

Frontend
- [ ] Admin page
- Create a new admin page and link it in the base admin page in #3
- list all programs in a table
- when user click on a program, open a modal that shows the program's full description
- in this modal, the user can click edit or delete
- delete shows a confirmation modal and call backend to delete the program
- edit turns on edit mode and replace the buttons with save and cancel

Backend
- [ ] List programs endpoint
- GET request, list all programs
- restrict access through permission to administrators only
- [ ] Update program endpoint
- PATCH request, given a program id and information in the body, update the program to reflect the request body
- restrict access through permission to administrators only
- [ ] Delete program endpoint
- DELETE request, given a program id, delete the program and associated information
- restrict access through permission to administrators only

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.