Tom Byers
f95d57cfde
Add GovukSearchField - extends SearchField
2020-08-12 10:34:50 +01:00
Tom Byers
427b01999c
Update UKMobileNumber & InternationalPhoneNumber
...
Changes those classes so they have the same
interface as a GOVUK field when instantiated and
render GovukTextInputField HTML.
Includes changes to templates that use this form
and associated tests.
2020-08-12 10:34:50 +01:00
Pea Tyczynska
39bc7cf721
Convert EmailFields to GovukEmailFields
...
Changes those fields (and sometimes also regular text input fields)
in the following forms:
- LoginForm
- RegisterUserForm
- ChangeEmailForm
- FeedbackOrProblem
- AcceptAgreementForm
- ChangeNameForm (only name field here, but used in the same template
field as ChangeEmailForm here: app/templates/views/user-profile/change.html)
Also includes changes to templates that use this form
and associated tests.
2020-08-12 10:34:42 +01:00
Tom Byers
7e771a5fa1
Add GovukEmailField - extends EmailField
2020-08-12 10:23:43 +01:00
Tom Byers
139616a0a9
Add data attributes to send errors to analytics
2020-08-12 10:23:43 +01:00
Pea Tyczynska
8219ae7861
Allow html in error messages for text input fields
2020-08-12 10:23:43 +01:00
Pea Tyczynska
1d21b5b96e
Refactor gov uk textbox field classes to avoid repetition
2020-08-12 10:23:43 +01:00
Tom Byers
e316e33180
Convert PasswordFields to GovukPasswordFields
...
Converts them directly in the following forms:
- LoginForm
- ConfirmPasswordForm
Changes the password function to return
GovukPasswordField instead of PasswordField which
effects the following forms:
- RegisterUserForm
- RegisterUserFromInviteForm
- RegisterUserFromOrgInviteForm
- NewPasswordForm
- ChangePasswordForm
It also updates StringField on RegisterUserFromOrgInviteForm
to GovukTextInputField
Also includes changes to templates that use this
form and associated tests.
2020-08-12 10:23:43 +01:00
Tom Byers
5cbf57e1fb
Add GovukPasswordField - extends PasswordField
...
Also adds it to the list of fields
StripWhitespaceForm skips when processing field
data.
2020-08-12 10:22:20 +01:00
Tom Byers
a3e661830d
Convert text inputs on ServiceUpdateEmailBranding
...
Includes changes to templates that use this form
and associated tests.
2020-08-12 10:22:20 +01:00
Tom Byers
87beaf49ae
Use GovukTextInputField in RenameServiceForm
...
Includes changes to templates that use this form
and associated tests.
2020-08-12 10:22:20 +01:00
Tom Byers
57d5f31be4
Add GovukTextInputField - extends StringField
2020-08-12 10:22:20 +01:00
Tom Byers
02514df9fa
Bring in Jinja and Sass for text-input component
2020-08-12 10:22:20 +01:00
Chris Hill-Scott
3f9e49603d
Merge pull request #3544 from alphagov/choose-electoral-ward
...
Let users select specific electoral wards in a local authority to broadcast to
2020-08-12 08:48:13 +01:00
Chris Hill-Scott
8570901731
Let users select electoral wards of local authorities
...
If a library has groups, we should show a link instead of selecting the
group directly.
Then we can give the user the choice of selecting the whole of that
group, or specific areas within the group.
For now the only libraries we have with groups are local authorities,
which group electoral wards.
2020-08-11 17:38:15 +01:00
David McDonald
38953d1c28
Merge pull request #3560 from alphagov/turn-redis-back-on
...
Turn redis back on
2020-08-11 15:40:26 +01:00
David McDonald
2aaca11f8b
Turn redis back on
2020-08-11 14:26:12 +01:00
David McDonald
32cc168c23
Merge pull request #3556 from alphagov/turn-redis-off
...
Turn off redis in all environments for rotation
2020-08-11 14:25:30 +01:00
Chris Hill-Scott
0ce64bcfde
Merge pull request #3553 from alphagov/move-broadcast-areas-into-admin
...
Move broadcast areas into admin
2020-08-11 13:25:21 +01:00
Chris Hill-Scott
ac470ff350
Merge pull request #3559 from alphagov/hidden-email-on-register
...
Put hidden email field on register from invite page
2020-08-11 13:18:22 +01:00
Toby Lorne
b0ff2d41c5
broadcast-areas: examples are deterministic
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-11 12:04:02 +01:00
Chris Hill-Scott
cf999b5d8e
Add inline comment explaining presence of field
2020-08-11 11:26:31 +01:00
Chris Hill-Scott
b0fc1cd271
Make test name more explicit
2020-08-11 11:22:59 +01:00
Toby Lorne
73e68c355b
broadcast-areas: include electoral wards
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 18:09:15 +01:00
Toby Lorne
6649d0ac70
broadcast-areas: use area ids in tests
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 18:09:15 +01:00
Chris Hill-Scott
834b0fc3d5
Put hidden email field on register from invite page
...
Password managers will try to guess what they should save as a username
by looking at the fields on the page where you set up your password.
When registering from an invite the email address (what we use as a
username) is predefined, and only shown on the page as text, not an
input.
This commit also adds a hidden input field for password managers to pick
up.
Adapted from: https://github.com/UKGovernmentBEIS/beis-opss-psd/blob/master/app/views/users/complete_registration.html.erb#L29-L36
2020-08-10 15:59:27 +01:00
Toby Lorne
8c3a8ecd04
broadcast-areas: view test does not assert order
...
the descriptions are liable to change esp for wards
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 13:04:03 +01:00
Toby Lorne
7a1b80e533
broadcast-areas: sort imports
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:22 +01:00
Toby Lorne
698e9816ec
models: use broadcast areas from admin package
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:22 +01:00
Toby Lorne
74b83ffa8b
broadcast-areas: vendor areas sqlite3 db
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:22 +01:00
Toby Lorne
488a5440cd
broadcast-areas: move broadcast areas into app
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:20 +01:00
Toby Lorne
3243faa9a9
broadcast-areas: import LAs to wards dataset groups
...
instead of our shonky groupings
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
dde285ef03
broadcast-areas: buffer areas by a larger degree
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
1301ae4bba
broadcast-areas: vendor sqlite3 areas
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
4d97ad4399
broadcast-areas: big buffer & try simplify to 99
...
we want, if possible only 99 points per polygon
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
8b8005966f
broadcast-areas: remove unused import
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
0e3158da97
broadcast-areas: only store local authorities once
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
b7e6b94e87
broadcast-areas: and in get_examples
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
b98cf6616c
broadcast-areas: remove unused imports
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
01ffc815e7
broadcast-areas: do not use group table
...
do not need it
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
17af32978f
broadcast-areas: use cached_property not a hack
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
8ecbfe5996
broadcast-areas: package works with groups
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
58915ac968
broadcast-areas: plot script works with groups
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
7f4dd0acb5
broadcast-areas: create broadcast areas in groups
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
65bef7bdc3
broadcast-areas: only parse geojson once
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
35a881d950
broadcast-areas: only load geojson when needed
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
0ae8ef650f
broadcast-areas: apply buffer to areas
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
22cf63a440
broadcast-areas: simple feature plots show points
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
e21d424f97
broadcast-areas: (dev) add visualisation tool
...
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00
Toby Lorne
6d5593dc32
broadcast-areas: include simple feature
...
simple feature is a feature where there are no islands and all polygons
are capped to 125 points
Signed-off-by: Toby Lorne <toby.lornewelch-richards@digital.cabinet-office.gov.uk >
2020-08-10 12:50:18 +01:00