-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feedback survey #669
Merged
Merged
Feedback survey #669
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MatMoore
force-pushed
the
fmj-557-feedback-page
branch
from
August 13, 2024 14:49
62e6dfd
to
ca82c7e
Compare
MatMoore
force-pushed
the
fmj-557-feedback-page
branch
from
August 13, 2024 15:29
04ede5e
to
e085c4f
Compare
This follows the pattern set by GOV.UK but stores responses in the database. We are building our own because we're in private beta this is an internal service (not on GOV.UK) The form is linked from the MOJ internal header, rather than the phase banner where we would put it on an external service.
MatMoore
force-pushed
the
fmj-557-feedback-page
branch
from
August 13, 2024 15:34
e085c4f
to
b1cb3fd
Compare
MatMoore
commented
Aug 13, 2024
Closed
murdo-moj
reviewed
Aug 14, 2024
MatMoore
force-pushed
the
fmj-557-feedback-page
branch
from
August 14, 2024 09:24
91c64b1
to
be5f5a2
Compare
MatMoore
force-pushed
the
fmj-557-feedback-page
branch
from
August 14, 2024 12:53
6a6b081
to
3ecb3e9
Compare
MatMoore
force-pushed
the
fmj-557-feedback-page
branch
from
August 14, 2024 12:57
3ecb3e9
to
d786897
Compare
MatMoore
force-pushed
the
fmj-557-feedback-page
branch
from
August 14, 2024 13:09
d786897
to
cd23937
Compare
MatMoore
force-pushed
the
fmj-557-feedback-page
branch
from
August 14, 2024 13:20
cd23937
to
6e7c0b0
Compare
To export data:
|
mitchdawson1982
approved these changes
Aug 14, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This adds a GOV.UK style survey to the page that writes to the database.
To get the data out I've added a ./manage.py command that outputs CSV.
Screenshots
Details
I've created a new app for this rather than adding to the
home
one, as they are quite separate things. The only dependency onhome
is the base layout.I had to put a weird workaround in the ModelForm in order for the form to not render an empty choice with label "-----". (ModelForm behaviour is described here: https://docs.djangoproject.com/en/5.0/topics/forms/modelforms/#field-types)
I'm sure I'm missing something simple here but I was banging my ahead against it so just wanted to get something working for now.