Sha256: 4008845237b87476fa768dc82e1bfb6925bf3488d97b4099b0d9fbd1285d1e3e
Contents?: true
Size: 1009 Bytes
Versions: 62
Compression:
Stored size: 1009 Bytes
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 - if field.multi_line? = text_area_tag "block[data][#{field.slug}]", block.data[field.slug], id: nil, class: 'text-box text-box--code text-box--multi-line text-box--i18n', required: field.required? - else = text_field_tag "block[data][#{field.slug}]", block.data[field.slug], id: nil, class: 'text-box text-box--i18n', required: field.required? - 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