Implement create questions and create categories for editors #11

Closed
opened 2020-05-31 16:19:19 +02:00 by christoph.lienhard · 0 comments
christoph.lienhard commented 2020-05-31 16:19:19 +02:00 (Migrated from git.verdigado.com)

Also fix the existing questions list.

Acceptance Criteria

  • On the home page of a logged-in user two lists are displayed.
    One for the existing questions, the other for the categories.
  • Only the "title" of the questions and categories should be displayed at first.
    However, further descriptions can be viewed via extendable stuff (see MUI Accordion)
  • There is a button for adding a new question and a new category respectively
  • Clicking the button shows a dialog where a new question/category can be entered and submitted.
    The lists update accordingly.
  • When expanding a question or category card, an edit and a delete option are displayed.
  • Clicking on the delete button opens a simple confirmation dialog asking if the question/category really should be deleted. Confirming deletes the item in the backend.
  • Clicking on the edit button opens a similar dialog as for the add button. Clicking on confirm, edits the item.

Notes

  • Do not worry about whether the logged-in user is an editor or a candidate.
    This will be handled in #13. However, a candiate should not be able to create new categories or questions in the backend (this should be the case already)
Also fix the existing questions list. ### Acceptance Criteria - [x] On the home page of a logged-in user two lists are displayed. One for the existing questions, the other for the categories. - [x] Only the "title" of the questions and categories should be displayed at first. However, further descriptions can be viewed via extendable stuff (see [MUI Accordion](https://material-ui.com/components/accordion/)) - [x] There is a button for adding a new question and a new category respectively - [x] Clicking the button shows a dialog where a new question/category can be entered and submitted. The lists update accordingly. - [x] When expanding a question or category card, an edit and a delete option are displayed. - [x] Clicking on the delete button opens a simple confirmation dialog asking if the question/category really should be deleted. Confirming deletes the item in the backend. - [x] Clicking on the edit button opens a similar dialog as for the add button. Clicking on confirm, edits the item. ### Notes * Do not worry about whether the logged-in user is an editor or a candidate. This will be handled in #13. However, a candiate should not be able to create new categories or questions in the backend (this should be the case already)
Sign in to join this conversation.
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: NB-Public/kandimat#11
No description provided.