On the New Scan Report form (#736) - we need a popup modal to allow a user to add a new Data Set, if they want a new, as the items in the drop down form don't satisfy them.
Tasks
[ ] A button to add a new data set in the "New Scan Report" form
[ ] A DatasetCreateDialog dialog component to encapsulate the form
[ ] This will take Data Partner ID as an optional argument to attach them to
[ ] If it is not supplied, then allow a user to select a Data Partner.
[ ] A DatasetCreate form with the existing fields
[ ] Move project to the top of the form.
[ ] Selecting a Project, determines who can be Editors, and Admins.
[ ] Only "active" members of the Project can be added.
[ ] Remember a "cancel" button to close the dialog.
[ ] Add information tooltips
[ ] Fetch data:
[ ] Projects into FormikSelect
[ ] Editors and Admins based on Projects
[ ] Submit process - to datasets/create/
[ ] On Data set creation, the modal will close, and the created Dataset will be selected in the dropdown. This may be a prop passed to the dialog, and the dialog then sets it on form completion, after success, before closing.
Acceptance Criteria
[ ] A user is able to add a new Dataset, as they are adding a new Scan Report.
[ ] The form is able to be used on multiple pages and situations.
Stretch
[ ] Add to the datasets list page - "New Dataset +" button
On the New Scan Report form (#736) - we need a popup modal to allow a user to add a new Data Set, if they want a new, as the items in the drop down form don't satisfy them.
Tasks
DatasetCreateDialog
dialog component to encapsulate the formDatasetCreate
form with the existing fieldsdatasets/create/
Acceptance Criteria
Stretch