Removed territory field for org addresses when there is no territory

This commit is contained in:
Godwin 2017-07-10 14:37:47 -07:00 committed by GitHub
parent f19d6feff3
commit 5290b2e7df

View File

@ -5,5 +5,6 @@
= textfield :address, @address, required: true, big: true = textfield :address, @address, required: true, big: true
.multi-field .multi-field
= textfield :city, (@city.city || '').html_safe, readonly: true = 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 = textfield :country, (@city.translate_country || '').html_safe, readonly: true