-
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
Syv followup constituency first baob only #3
base: master
Are you sure you want to change the base?
Conversation
Added link and UK/ USA cousin disambiguation text and link
This is a combination of 7 commits. HACKING towards constituency first - step 1-6 unsuccessful in getting the hidden field really hidden. I suspect some CSS skills required
Relates to swapmyvote/swapyourvote-usa#24 1. the method prepopulate_fields_from_session was referencing parties before the state had even been defined (part of the api/prepopulate code) 2. the 'pre_login' code that sequences state-then-candidates questions was unecessarily messing with the session parameters associated with api/prepopulate.
the spec should be moved to the page that does the constituency selection
This is a combination of 3 commits. add postcode field to constituency selection BUT NOT WORKING add postcodes helper to home page (now has constituencies form) fixed postcode helper to work on home page
partially addresses comment on commit 3a94e85
now fully addresses comment on commit 3a94e85
This reverts commit ceeb58e. Addresses comment from @stevebaxter here https://github.com/swapmyvote/swapmyvote/pull/1024/files/02f453739b2f0c5b2e2815c29d330cc1464f1034#r1835805752
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.
Some files could not be reviewed due to errors:
Error: unrecognized cop or department Rails/I18nLocaleTexts found in .rubocop...
Error: unrecognized cop or department Rails/I18nLocaleTexts found in .rubocop.yml Did you mean `Rails/I18nLocaleAssignment`?
- if !pre_login_constituency_form_complete | ||
= render partial: "constituency_form", locals: { constituencies: @constituencies, default_constituency_ons_id: @default_constituency_ons_id } | ||
- else | ||
= render partial: "candidates_form", locals: { parties: @parties, preferred_party_id: @preferred_party_id, willing_party_id: @willing_party_id, constituency_ons_id: @constituency_ons_id } |
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.
Avoid using instance variables in partials views
app/views/home/_swap_form.html.haml
Outdated
cast your preferred vote in a different area where it could count for more. | ||
In return, you will cast their preferred vote in your area. | ||
- if !pre_login_constituency_form_complete | ||
= render partial: "constituency_form", locals: { constituencies: @constituencies, default_constituency_ons_id: @default_constituency_ons_id } |
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.
Avoid using instance variables in partials views
Revert "disable Rails/I18nLocaleTexts cop" This reverts commit e100814.
Really - for testing fixes to swapmyvote#1023 - "Resolve hound complaint about Rails/I18nLocaleTexts found in .rubocop..yml"