Sha256: 8369cfe86fc94516496909b9b5786fbe1ad6aa56173cef4be2407cc31150e672

Contents?: true

Size: 1 KB

Versions: 62

Compression:

Stored size: 1 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
  .color-picker
    = color_field_tag "block[data][#{field.slug}]", block.data[field.slug], id: nil, class: 'color-picker__input', required: field.required?, list: (color_picker_id(block, field) if field.presets.present?)
    - if field.presets.present?
      %datalist{ id: color_picker_id(block, field) }
        - field.presets.each do |color|
          %option= color

- 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.5.15 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.4.36 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.5.14 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.4.35 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.5.13 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.4.34 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.5.12 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.4.33 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.5.11 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.5.10 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.4.32 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.5.9 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.4.31 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.5.8 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.4.30 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.5.7 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.4.29 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.5.6 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.4.28 app/views/workarea/admin/content_blocks/_color.html.haml
workarea-admin-3.5.5 app/views/workarea/admin/content_blocks/_color.html.haml