2020-11-11 19:34:11 +00:00
|
|
|
.row{ data: { controller: 'geo' } }
|
2022-03-09 00:56:41 +00:00
|
|
|
.col-12.mb-3
|
|
|
|
%p.mb-0= post_label_t(attribute, post: post)
|
2022-03-09 00:54:25 +00:00
|
|
|
= render 'posts/attribute_feedback',
|
|
|
|
post: post, attribute: attribute, metadata: metadata
|
2020-02-16 22:51:43 +00:00
|
|
|
.col
|
|
|
|
.form-group
|
2020-11-27 22:32:16 +00:00
|
|
|
= label_tag "#{base}_#{attribute}_lat",
|
2020-02-16 22:51:43 +00:00
|
|
|
post_label_t(attribute, :lat, post: post)
|
2020-11-27 22:32:16 +00:00
|
|
|
= text_field(*field_name_for(base, attribute, :lat),
|
2020-02-16 22:51:43 +00:00
|
|
|
value: metadata.value['lat'],
|
2020-11-11 19:34:11 +00:00
|
|
|
**field_options(attribute, metadata),
|
|
|
|
data: { target: 'geo.lat' })
|
2020-02-16 22:51:43 +00:00
|
|
|
= render 'posts/attribute_feedback',
|
|
|
|
post: post, attribute: [attribute, :lat], metadata: metadata
|
|
|
|
.col
|
|
|
|
.form-group
|
2020-11-27 22:32:16 +00:00
|
|
|
= label_tag "#{base}_#{attribute}_lng",
|
2020-02-16 22:51:43 +00:00
|
|
|
post_label_t(attribute, :lng, post: post)
|
2020-11-27 22:32:16 +00:00
|
|
|
= text_field(*field_name_for(base, attribute, :lng),
|
2020-02-16 22:51:43 +00:00
|
|
|
value: metadata.value['lng'],
|
2020-11-11 19:34:11 +00:00
|
|
|
**field_options(attribute, metadata),
|
|
|
|
data: { target: 'geo.lng' })
|
2020-02-16 22:51:43 +00:00
|
|
|
= render 'posts/attribute_feedback',
|
2020-03-30 20:37:04 +00:00
|
|
|
post: post, attribute: [attribute, :lng], metadata: metadata
|
2020-11-11 19:34:11 +00:00
|
|
|
.col-12.mb-3
|
|
|
|
%div{ data: { target: 'geo.map' }, style: 'height: 250px' }
|