Sha256: 80fb143be67523c9cebb83abc42836172f52696a59112a7495906c307af68384

Contents?: true

Size: 1.13 KB

Versions: 43

Compression:

Stored size: 1.13 KB

Contents

<%
  init = <<~JAVASCRIPT
    promethee.definitions.push({
      name: 'Collection Item',
      icon: #{ promethee_component_render_icon 'collection_item' },
      position: 15,
      library: false,
      data: {
        type: 'collection_item',
        attributes: {
          caption: {
            searchable: true,
            translatable: true,
            type: 'text',
            value: ''
          },
          media_type: {
            collection: [
              { label: 'Image', value: 'image' },
              { label: 'Video', value: 'video' }
            ],
            searchable: false,
            translatable: false,
            type: 'enum',
            value: 'image'
          },
          image: {
            searchable: false,
            translatable: false,
            type: 'blob',
            value: {
              id: undefined,
              name: ''
            }
          },
          video: {
            searchable: false,
            translatable: true,
            type: 'video',
            value: 'https://vimeo.com/115082758'
          }
        }
      }
    })
  JAVASCRIPT
%>
<div ng-init="<%= init %>"></div>

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
promethee-5.1.1 app/views/promethee/components/collection_item/_edit_define.html.erb
promethee-5.1.0 app/views/promethee/components/collection_item/_edit_define.html.erb
promethee-5.0.2 app/views/promethee/components/collection_item/_edit_define.html.erb
promethee-5.0.1 app/views/promethee/components/collection_item/_edit_define.html.erb
promethee-5.0.0 app/views/promethee/components/collection_item/_edit_define.html.erb
promethee-4.1.28 app/views/promethee/components/collection_item/_edit.define.html.erb
promethee-4.1.27 app/views/promethee/components/collection_item/_edit.define.html.erb
promethee-4.1.26 app/views/promethee/components/collection_item/_edit.define.html.erb
promethee-4.1.25 app/views/promethee/components/collection_item/_edit.define.html.erb
promethee-4.1.24 app/views/promethee/components/collection_item/_edit.define.html.erb
promethee-4.1.23 app/views/promethee/components/collection_item/_edit.define.html.erb
promethee-4.1.22 app/views/promethee/components/collection_item/_edit.define.html.erb
promethee-4.1.21 app/views/promethee/components/collection_item/_edit.define.html.erb
promethee-4.1.20 app/views/promethee/components/collection_item/_edit.define.html.erb
promethee-4.1.19 app/views/promethee/components/collection_item/_edit.define.html.erb
promethee-4.1.18 app/views/promethee/components/collection_item/_edit.define.html.erb
promethee-4.1.17 app/views/promethee/components/collection_item/_edit.define.html.erb
promethee-4.1.16 app/views/promethee/components/collection_item/_edit.define.html.erb
promethee-4.1.15 app/views/promethee/components/collection_item/_edit.define.html.erb
promethee-4.1.14 app/views/promethee/components/collection_item/_edit.define.html.erb