Commit 731c3af0 authored by droces's avatar droces

Added Image and Short Description fields to addons

parent 94892c53
......@@ -3,9 +3,13 @@ status: true
dependencies:
config:
- field.field.node.addon.field_amount
- field.field.node.addon.field_image
- field.field.node.addon.field_price_type
- field.field.node.addon.field_short_description
- image.style.thumbnail
- node.type.addon
module:
- image
- path
id: node.addon.default
targetEntityType: node
......@@ -25,12 +29,28 @@ content:
third_party_settings: { }
type: number
region: content
field_image:
weight: 34
settings:
progress_indicator: throbber
preview_image_style: thumbnail
third_party_settings: { }
type: image_image
region: content
field_price_type:
weight: 33
settings: { }
third_party_settings: { }
type: options_select
region: content
field_short_description:
weight: 35
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
path:
type: path
weight: 30
......
......@@ -3,9 +3,12 @@ status: true
dependencies:
config:
- field.field.node.addon.field_amount
- field.field.node.addon.field_image
- field.field.node.addon.field_price_type
- field.field.node.addon.field_short_description
- node.type.addon
module:
- image
- options
- user
id: node.addon.default
......@@ -24,6 +27,15 @@ content:
third_party_settings: { }
type: number_decimal
region: content
field_image:
weight: 104
label: above
settings:
image_style: ''
image_link: ''
third_party_settings: { }
type: image
region: content
field_price_type:
weight: 103
label: above
......@@ -31,6 +43,14 @@ content:
third_party_settings: { }
type: list_default
region: content
field_short_description:
weight: 105
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
links:
weight: 100
region: content
......
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_image
- node.type.addon
module:
- image
id: node.addon.field_image
field_name: field_image
entity_type: node
bundle: addon
label: Image
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings:
file_directory: '[date:custom:Y]-[date:custom:m]'
file_extensions: 'png gif jpg jpeg'
max_filesize: '5 MB'
max_resolution: ''
min_resolution: 50x50
alt_field: true
alt_field_required: true
title_field: false
title_field_required: false
default_image:
uuid: ''
alt: ''
title: ''
width: null
height: null
handler: 'default:file'
handler_settings: { }
field_type: image
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_short_description
- node.type.addon
id: node.addon.field_short_description
field_name: field_short_description
entity_type: node
bundle: addon
label: 'Short description'
description: 'A few words that describe the addon.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
langcode: en
status: true
dependencies:
module:
- node
id: node.field_short_description
field_name: field_short_description
entity_type: node
type: string
settings:
max_length: 255
is_ascii: false
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
......@@ -320,7 +320,10 @@ function add_booking_data_fetched_listener() {
$(checkbox)
.parents('.form-type-checkbox').show()
.find('label').append(' ('+ addon_data.field_amount + ' ' + price_type + ')');
.find('label')
.prepend(addon_data.field_image)
.append(' (' + addon_data.field_amount + ' ' + price_type + ')')
.append('<br><small>' + addon_data.field_short_description + '</small>');
return false;
}
......
......@@ -3,10 +3,14 @@ status: true
dependencies:
config:
- field.storage.node.field_amount
- field.storage.node.field_image
- field.storage.node.field_price_type
- field.storage.node.field_short_description
- image.style.thumbnail
- node.type.addon
module:
- datetime
- image
- node
- options
- rest
......@@ -344,6 +348,133 @@ display:
separator: ', '
field_api_classes: false
plugin_id: field
field_image:
id: field_image
table: node__field_image
field: field_image
relationship: none
group_type: group
admin_label: ''
label: ''
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: target_id
type: image
settings:
image_style: thumbnail
image_link: ''
group_column: ''
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
plugin_id: field
field_short_description:
id: field_short_description
table: node__field_short_description
field: field_short_description
relationship: none
group_type: group
admin_label: ''
label: ''
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: false
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: string
settings:
link_to_entity: false
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
plugin_id: field
filters:
status:
value: '1'
......@@ -474,7 +605,9 @@ display:
- user.permissions
tags:
- 'config:field.storage.node.field_amount'
- 'config:field.storage.node.field_image'
- 'config:field.storage.node.field_price_type'
- 'config:field.storage.node.field_short_description'
rest_export_1:
display_plugin: rest_export
id: rest_export_1
......@@ -519,4 +652,6 @@ display:
- user.permissions
tags:
- 'config:field.storage.node.field_amount'
- 'config:field.storage.node.field_image'
- 'config:field.storage.node.field_price_type'
- 'config:field.storage.node.field_short_description'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment