Sha256: 218f9ef8d9d542bb77ef230adaf2ed0ce90ec562309e3ef68176e2fa3e1fc3ee

Contents?: true

Size: 504 Bytes

Versions: 12

Compression:

Stored size: 504 Bytes

Contents

- for_context ||= context
- name ||= "#{for_context.resource.name}[#{field.name}]"
- id ||= "#{for_context.resource.name}_#{field.name}"
- value ||= field.read(for_context.entity)

span
  input type="hidden" id=id name=name value=field.show(for_context.entity)
  = t('admin_it.longtitude') + ': '
  span.x = value.respond_to?(:x) ? value.x : ''
  = ', ' + t('admin_it.latitude') + ': '
  span.y = value.respond_to?(:y) ? value.y : ''

.btn.btn-warning.pull-right data-geo-picker="##{id}"
  i.fa.fa-globe

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
admin_it-1.3.8 app/views/admin_it/editors/_geo_picker.html.slim
admin_it-1.3.7 app/views/admin_it/editors/_geo_picker.html.slim
admin_it-1.3.6 app/views/admin_it/editors/_geo_picker.html.slim
admin_it-1.3.5 app/views/admin_it/editors/_geo_picker.html.slim
admin_it-1.3.4 app/views/admin_it/editors/_geo_picker.html.slim
admin_it-1.3.3 app/views/admin_it/editors/_geo_picker.html.slim
admin_it-1.3.2 app/views/admin_it/editors/_geo_picker.html.slim
admin_it-1.3.1 app/views/admin_it/editors/_geo_picker.html.slim
admin_it-1.3.0 app/views/admin_it/editors/_geo_picker.html.slim
admin_it-1.2.8 app/views/admin_it/editors/_geo_picker.html.slim
admin_it-1.2.7 app/views/admin_it/editors/_geo_picker.html.slim
admin_it-1.2.6 app/views/admin_it/editors/_geo_picker.html.slim