parent
6803ef5c9b
commit
02fbb4c913
@ -1,19 +1,22 @@
|
||||
- if selector_region.regions.present? || selector_region.url.blank?
|
||||
%span.region{ title: selector_region.code }
|
||||
.region{ title: selector_region.code }
|
||||
= f.radio_button :region_id, selector_region.id
|
||||
= f.label "region_id_#{selector_region.id}" do
|
||||
- if selector_region.code.present?
|
||||
= flag_icon selector_region.code.downcase
|
||||
= t selector_region.code, scope: :countries, default: selector_region.name
|
||||
%span.name
|
||||
= t selector_region.code, scope: :countries,
|
||||
default: selector_region.name
|
||||
- else
|
||||
%em.fa.fa-map
|
||||
= t selector_region, scope: :countries, default: selector_region
|
||||
%span.name
|
||||
= t selector_region, scope: :countries, default: selector_region
|
||||
- if selector_region.regions.present?
|
||||
%small
|
||||
%em.fa.fa-chevron-right
|
||||
%em.fa.fa-chevron-right
|
||||
- if selector_region.regions.present?
|
||||
.radios
|
||||
= f.collection_radio_buttons :region_id,
|
||||
Region.where(region: selector_region), :id, :name, include_hidden: false do |b|
|
||||
Region.where(region: selector_region), :id, :name,
|
||||
include_hidden: false do |b|
|
||||
= b.radio_button
|
||||
= b.label { t(b.text, scope: :countries, default: b.text) }
|
||||
|
Loading…
Reference in new issue