2017-07-01 19:02:46 +02:00
|
|
|
- if selector_region.regions.present? || selector_region.url.blank?
|
|
|
|
%span.region
|
|
|
|
= f.radio_button :region_id, selector_region.id
|
|
|
|
= f.label "region_id_#{selector_region.id}" do
|
|
|
|
= flag_icon selector_region.code.try :downcase
|
|
|
|
= selector_region
|
|
|
|
- if selector_region.regions.present?
|
|
|
|
%em.fa.fa-chevron-right
|
|
|
|
.radios
|
|
|
|
= f.collection_radio_buttons :region_id,
|
|
|
|
Region.where(region: selector_region), :id, :name
|