2017-07-01 19:02:46 +02:00
|
|
|
- if selector_region.regions.present? || selector_region.url.blank?
|
2019-04-25 10:36:33 +02:00
|
|
|
%span.region{ title: selector_region.code }
|
2017-07-01 19:02:46 +02:00
|
|
|
= f.radio_button :region_id, selector_region.id
|
|
|
|
= f.label "region_id_#{selector_region.id}" do
|
2017-09-07 22:36:53 +02:00
|
|
|
- if selector_region.code.present?
|
|
|
|
= flag_icon selector_region.code.downcase
|
2019-04-25 10:36:33 +02:00
|
|
|
= t selector_region.code, scope: :countries, default: selector_region.name
|
2017-09-07 22:36:53 +02:00
|
|
|
- else
|
|
|
|
%em.fa.fa-map
|
2019-04-25 10:36:33 +02:00
|
|
|
= selector_region
|
2017-09-02 20:57:10 +02:00
|
|
|
- if selector_region.regions.present?
|
|
|
|
%small
|
|
|
|
%em.fa.fa-chevron-right
|
2017-07-01 19:02:46 +02:00
|
|
|
- if selector_region.regions.present?
|
|
|
|
.radios
|
|
|
|
= f.collection_radio_buttons :region_id,
|
2018-01-22 00:20:28 +01:00
|
|
|
Region.where(region: selector_region), :id, :name, include_hidden: false
|