feat: add organisation creation, link org project and survey pages #55
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves #20
Related to #16 #17 #18
Note: I'd made a bit of a mess with some of the models so I'd had to clear out the migration files. You will likely need to re-create your database.
The
Projects
navigation is changedMy organisation
. When clicking on the navigation link, user without an organisation will be asked to create one:Note: Users are not supposed to be able to belong to multiple organisations.
User will then be taken to their organisation page that shows a listing of their projects, they can only create new projects at the moment:
Clicking on
View
will take the user to theProject
details page that lists all of the surveys in the project:Clicking view will take you to the
Survey
details page which does not have much at the moment:But you can test the survey response out by clicking on the
Link to fill in survey
(token not implemented at the moment)After filling in the survey, you can see the survey response (I'm just printing raw json for now)