Sha256: 02aa2294fb822ec41e729549ee67d8e3588a4f4120068561765f8273cd9de5ca
Contents?: true
Size: 1.06 KB
Versions: 62
Compression:
Stored size: 1.06 KB
Contents
.property{ class: ('property--required' if field.required?), data: field.options[:html_data_attributes] } = label_tag dom_id(block, field.slug), class: 'property__name' do = field.name - if field.tooltip.present? = link_to "##{dom_id(block, field.slug)}_tooltip", data: { tooltip: '' } do = inline_svg('workarea/admin/icons/help.svg', class: 'svg-icon svg-icon--small svg-icon--blue', title: t('workarea.admin.content_blocks.tooltips.more_info')) - if field.note.present? %span.property__note= field.note .range-field{ data: { range_field:'' } } = range_field_tag "block[data][#{field.slug}]", block.data[field.slug], id: dom_id(block, field.slug), class: 'range-field__input', value: block.data[field.slug], max: field.max, min: field.min, step: field.step = number_field_tag "block[data][#{field.slug}]", block.data[field.slug], class: 'text-box text-box--small text-box--i18n', max: field.max, min: field.min, step: field.step - if field.tooltip.present? .tooltip-content{ id: "#{dom_id(block, field.slug)}_tooltip" } %p= field.tooltip
Version data entries
62 entries across 62 versions & 1 rubygems
Version | Path |
---|---|
workarea-admin-3.4.13 | app/views/workarea/admin/content_blocks/_range.html.haml |
workarea-admin-3.4.12 | app/views/workarea/admin/content_blocks/_range.html.haml |