Browse Source

Removed territory field for org addresses when there is no territory

development
Godwin 7 years ago
committed by GitHub
parent
commit
5290b2e7df
  1. 3
      app/views/registration_steps/_org_create_address.html.haml

3
app/views/registration_steps/_org_create_address.html.haml

@ -5,5 +5,6 @@
= textfield :address, @address, required: true, big: true
.multi-field
= textfield :city, (@city.city || '').html_safe, readonly: true
= textfield :territory, (@city.translate_territory || '').html_safe, readonly: true
- territory = @city.translate_territory
= (textfield :territory, (@city.translate_territory || '').html_safe, readonly: true) if territory.present?
= textfield :country, (@city.translate_country || '').html_safe, readonly: true

Loading…
Cancel
Save