Skip to content
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

Interested Users Address Changes #230

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions microsetta_interface/implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1641,9 +1641,12 @@ def post_interested_user_edit(body):
json={
"address_1": body['address_1'],
"address_2": body['address_2'],
"address_3": body.get('address_3', None),
"phone": body['phone'],
"city": body['city'],
"state": body['state'],
"postal": body['postal']
"postal": body['postal'],
"residential_address": body.get('residential_address', True)
}
)
if do_return:
Expand Down Expand Up @@ -2080,12 +2083,14 @@ def post_submit_interest(body):
"country": body['country'],
"address_1": body['address_1'],
"address_2": body['address_2'],
"address_3": body['address_3'],
"city": body['city'],
"state": body['state'],
"postal": body['postal'],
"confirm_consent": body['confirm_consent'],
"over_18": body['over_18'],
"ip_address": ip_address
"ip_address": ip_address,
"residential_address": body['residential_address']
}
)

Expand Down Expand Up @@ -2135,9 +2140,11 @@ def post_update_address(body):
"email": body['email'],
"address_1": body['address_1'],
"address_2": body['address_2'],
"address_3": body['address_3'],
"city": body['city'],
"state": body['state'],
"postal": body['postal']
"postal": body['postal'],
"residential_address": body['residential_address']
}
)

Expand Down
21 changes: 21 additions & 0 deletions microsetta_interface/static/js/spain_states.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
SPAIN_STATES = [
["AN", "Andalucia"],
["AN", "Aragon"],
["AST", "Asturias"],
["IB", "Baleares"],
["CE", "Ceuta"],
["IC", "Canarias"],
["C", "Cantabria"],
["CM", "Castilla-La Mancha"],
["CL", "Castilla y Leon"],
["CAT", "Cataluna"],
["VC", "Comunidad Valenciana"],
["EXT", "Extremadura"],
["G", "Galicia"],
["LR", "La Rioja"],
["M", "Madrid"],
["ML", "Melilla"],
["MU", "Murcia"],
["NA", "Navarra"],
["PA", "Pais Vasco"]
]

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading