2022-04-22 09:40:52 +02:00
|
|
|
%li{ class: editing ? 'mb-1' : 'flex column mb-2', data: { controller: 'geo-area', geo_area_id_value: geo_area.id } }
|
2021-05-25 16:10:01 +02:00
|
|
|
- if editing
|
2022-04-22 09:40:52 +02:00
|
|
|
= link_to '#', data: { action: 'geo-area#onClick' } do
|
2022-08-31 13:09:00 +02:00
|
|
|
= geo_area.label
|
2022-04-22 09:40:52 +02:00
|
|
|
= text_field_tag :description, geo_area.description, data: { action: 'focus->geo-area#onFocus input->geo-area#onInput', geo_area_target: 'description' }, placeholder: 'Description', class: 'no-margin'
|
2021-05-25 16:10:01 +02:00
|
|
|
- else
|
2022-04-22 09:40:52 +02:00
|
|
|
= link_to '#', data: { action: 'geo-area#onClick' } do
|
2022-08-31 13:09:00 +02:00
|
|
|
= geo_area.label
|
2021-05-25 16:10:01 +02:00
|
|
|
- if geo_area.description.present?
|
|
|
|
%span
|
|
|
|
= geo_area.description
|