feat: add create edit survey page
A new page named edit-survey added under manage-surveys with necessary changes to the view-survey component. the edit-survey page helps the user to edit the surveys and their questions and responses.
Description
Edit Survey page visible.
User can click on edit button on the View Survey page to visit Edit Survey page.
Form auto-initializes with given the survey's existing data.
User can make changes in the form as per requirement.
Submit button saves the updates and redirect to respective View Survey page.
Related issues and discussion
#766
Screenshots
https://user-images.githubusercontent.com/24234639/104058877-68741f00-521a-11eb-8413-9d024a9b43a7.mp4
Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
-
[x] If you have multiple commits please combine them into one commit by squashing them.
-
[x] Read and understood the contribution guidelines at
web-app/.github/CONTRIBUTING.md.
@karantakalkar I just noticed that I made some mistakes while adding the router for the edit page and also I was not using resolver. So I made some changes to correct it.
@BLasan @luckyman20 could any one of you please help in reviewing the code of this PR?
This pull request seems to be stale. Are you still planning to work on it? We will automatically close it in 30 days.
@mittulmandhan Are you still working on this?
This pull request seems to be stale. Are you still planning to work on it? We will automatically close it in 30 days.