Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

MUMPFL-110 : Fix state country drop downs #32

Merged
merged 6 commits into from
Jul 28, 2015

Conversation

timlevett
Copy link
Collaborator

  • Country is now preselected as USA for new form
    image
  • State is now preselected as WI for new form
    image
  • Fix country order (now A-Z)
    screenshot - 07272015 - 03 10 22 pm
  • Fix State Order (now A-Z)
    screenshot - 07272015 - 03 11 04 pm
  • Clean up empty state ... of state when a country doesn't have state/province/regions... in our database
    http://goo.gl/v8mdMX

@apetro
Copy link
Member

apetro commented Jul 27, 2015

👍

1 similar comment
@jhanstra
Copy link
Contributor

👍

<option ng-repeat='item in states | filter:{country: address.country} | orderBy:value' ng-if='address.country' value='{{item.key}}' ng-attr-selected="{{isSelection(address.state, item.key)}}">{{item.value}}</option>
class="form-control"
ng-model='address.state' ng-disabled='!address.country || (states | filter:{country: address.country}).length === 0'>
<option ng-if='!address.country' value=''>Select Country First</option>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe sentence-case as "Select country first".

@vertein
Copy link
Contributor

vertein commented Jul 28, 2015

👍 Does it show the correct country/state when someone goes in to edit mode?

@timlevett
Copy link
Collaborator Author

@vertein - yes, yes it does

timlevett pushed a commit that referenced this pull request Jul 28, 2015
@timlevett timlevett merged commit 7c2b3b7 into master Jul 28, 2015
@timlevett timlevett deleted the fix_state_country_drop_downs branch July 28, 2015 13:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants