From 09d09461b5e2867244618c50ff575d63b9cf6a84 Mon Sep 17 00:00:00 2001 From: bach Date: Thu, 10 Oct 2024 11:07:15 +0200 Subject: [PATCH] improved color field --- ...entity_form_display.node.etape.default.yml | 35 +++++++++++++------ .../field.field.node.etape.field_couleur.yml | 4 ++- 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/config/sync/core.entity_form_display.node.etape.default.yml b/config/sync/core.entity_form_display.node.etape.default.yml index d544d96..e14ba0f 100644 --- a/config/sync/core.entity_form_display.node.etape.default.yml +++ b/config/sync/core.entity_form_display.node.etape.default.yml @@ -33,7 +33,7 @@ third_party_settings: group_details: children: - field_vignette - - field_couleur + - group_couleur - field_saison - field_arret_numero - field_dates @@ -138,6 +138,21 @@ third_party_settings: formatter: closed description: '' required_fields: true + group_couleur: + children: + - field_couleur + label: Couleur + region: content + parent_name: group_details + weight: 6 + format_type: fieldset + format_settings: + classes: '' + show_empty_fields: true + id: '' + label_as_html: false + description: '' + required_fields: true id: node.etape.default targetEntityType: node bundle: etape @@ -151,22 +166,22 @@ content: third_party_settings: { } field_arret_numero: type: number - weight: 8 + weight: 9 region: content settings: placeholder: '' third_party_settings: { } field_couleur: type: color_pickr_default - weight: 6 + weight: 7 region: content settings: theme: nano - hide_description: '1' + hide_description: 0 third_party_settings: { } field_dates: type: daterange_default - weight: 9 + weight: 10 region: content settings: { } third_party_settings: { } @@ -212,7 +227,7 @@ content: third_party_settings: { } field_saison: type: autocomplete_deluxe - weight: 7 + weight: 8 region: content settings: match_operator: CONTAINS @@ -229,7 +244,7 @@ content: third_party_settings: { } field_thematiques: type: autocomplete_deluxe - weight: 10 + weight: 11 region: content settings: match_operator: CONTAINS @@ -254,20 +269,20 @@ content: third_party_settings: { } path: type: path - weight: 13 + weight: 14 region: content settings: { } third_party_settings: { } promote: type: boolean_checkbox - weight: 12 + weight: 13 region: content settings: display_label: true third_party_settings: { } status: type: boolean_checkbox - weight: 11 + weight: 12 region: content settings: display_label: true diff --git a/config/sync/field.field.node.etape.field_couleur.yml b/config/sync/field.field.node.etape.field_couleur.yml index aa0b0b4..b6e210c 100644 --- a/config/sync/field.field.node.etape.field_couleur.yml +++ b/config/sync/field.field.node.etape.field_couleur.yml @@ -15,7 +15,9 @@ label: Couleur description: '' required: true translatable: false -default_value: { } +default_value: + - + color_pickr: '#F44336' default_value_callback: '' settings: { } field_type: color_pickr_code