Add Welsh translation page#2298
Conversation
52f2afe to
173e101
Compare
173e101 to
6e52401
Compare
|
Looks good! Will check again when you've rebased? |
6e52401 to
482b10c
Compare
chao-xian
left a comment
There was a problem hiding this comment.
I think we now have an unused controller from my previous PR but we can either rename or just delete it separately
482b10c to
8103218
Compare
Adds placeholder actions for adding Welsh translations to forms. Also updates the path helper from `/translations` to `welsh-translation` and renames the controller to WelshTranslationController.
Adds a new input object for the Welsh translation page, which will handle translations in the future but currently just controls whether the task has been completed.
Adds a form to the new welsh translation page using the input object from the previous commit and including the mark complete component.
Add a validation message if the user doesn't select a radio button. This shouldn't normally happen anyway - 'No' will be selected by default for a new form - but we cover it anyway.
Adds success messages when the Welsh translation is saved, with different text depending on whether the task has been marked complete.
Hides the page behind the `welsh_enabled` feature flag - if the form is in a group without the flag enabled, the user will be redirected to the task list if they try to access this page.
8103218 to
6a74afe
Compare
|
|
🎉 A review copy of this PR has been deployed! You can reach it at: https://pr-2298.admin.review.forms.service.gov.uk/ It may take 5 minutes or so for the application to be fully deployed and working. If it still isn't ready For the sign in details and more information, see the review apps wiki page. |
william-castoncook
left a comment
There was a problem hiding this comment.
Screenshots look as expected.



What problem does this pull request solve?
Trello card: https://trello.com/c/tQCcRdwS/2638-add-new-page-for-adding-welsh-translations
Adds a new page for adding Welsh translations. At the moment it's just the page with a mark complete component on it:
There's a validation message if the user manages to leave the radio button blank (which shouldn't happen by default, because 'No' is the default):
There are different success messages depending on whether the user marked the task complete:


Things to consider when reviewing