From 7cb3a64a1d47ba85b9892c8ace7d121530af7543 Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 8 Jan 2024 11:54:56 +0100 Subject: [PATCH] actus home; fixes #2493 --- ...ty_form_display.node.actualite.default.yml | 120 +++++++++++++++++- ...y_form_display.node.partenaire.default.yml | 96 +++++++++++++- config/sync/field.storage.node.field_lien.yml | 2 +- config/sync/user.role.admin.yml | 3 + config/sync/user.role.editor.yml | 3 + 5 files changed, 211 insertions(+), 13 deletions(-) diff --git a/config/sync/core.entity_form_display.node.actualite.default.yml b/config/sync/core.entity_form_display.node.actualite.default.yml index faed5b5..4239f7a 100644 --- a/config/sync/core.entity_form_display.node.actualite.default.yml +++ b/config/sync/core.entity_form_display.node.actualite.default.yml @@ -14,11 +14,117 @@ dependencies: - node.type.actualite module: - datetime_range + - field_group - file - image - link - path - text +third_party_settings: + field_group: + group_details: + children: + - field_type_d_actualite + - field_date + - status + - promote + - path + label: Details + region: content + parent_name: '' + weight: 5 + format_type: details_sidebar + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + open: true + description: '' + required_fields: true + weight: 0 + group_tabs: + children: + - group_texte + - group_image + - group_liens + - group_media + label: Tabs + region: content + parent_name: '' + weight: 4 + format_type: tabs + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + direction: horizontal + width_breakpoint: 640 + group_liens: + children: + - field_lien + label: Liens + region: content + parent_name: group_tabs + weight: 22 + format_type: tab + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + formatter: closed + description: '' + required_fields: true + group_media: + children: + - field_pieces_jointes + label: 'Pièces jointes' + region: content + parent_name: group_tabs + weight: 23 + format_type: tab + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + formatter: closed + description: '' + required_fields: true + group_texte: + children: + - body + label: Texte + region: content + parent_name: group_tabs + weight: 20 + format_type: tab + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + formatter: closed + description: '' + required_fields: true + group_image: + children: + - field_image + label: Image + region: content + parent_name: group_tabs + weight: 21 + format_type: tab + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + formatter: closed + description: '' + required_fields: true id: node.actualite.default targetEntityType: node bundle: actualite @@ -36,13 +142,13 @@ content: third_party_settings: { } field_date: type: daterange_default - weight: 2 + weight: 4 region: content settings: { } third_party_settings: { } field_image: type: image_image - weight: 4 + weight: 5 region: content settings: progress_indicator: throbber @@ -50,7 +156,7 @@ content: third_party_settings: { } field_lien: type: link_default - weight: 6 + weight: 7 region: content settings: placeholder_url: '' @@ -58,7 +164,7 @@ content: third_party_settings: { } field_pieces_jointes: type: file_generic - weight: 7 + weight: 8 region: content settings: progress_indicator: throbber @@ -83,20 +189,20 @@ content: third_party_settings: { } path: type: path - weight: 10 + weight: 7 region: content settings: { } third_party_settings: { } promote: type: boolean_checkbox - weight: 9 + weight: 6 region: content settings: display_label: true third_party_settings: { } status: type: boolean_checkbox - weight: 8 + weight: 5 region: content settings: display_label: true diff --git a/config/sync/core.entity_form_display.node.partenaire.default.yml b/config/sync/core.entity_form_display.node.partenaire.default.yml index be7df2d..976e6b5 100644 --- a/config/sync/core.entity_form_display.node.partenaire.default.yml +++ b/config/sync/core.entity_form_display.node.partenaire.default.yml @@ -10,9 +10,95 @@ dependencies: - image.style.thumbnail - node.type.partenaire module: + - field_group - image - link - text +third_party_settings: + field_group: + group_details: + children: + - status + - field_poids + label: Details + region: content + parent_name: '' + weight: 7 + format_type: details_sidebar + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + open: true + description: '' + required_fields: true + weight: 0 + group_tabs: + children: + - group_logo + - group_lien + - group_texte + label: Tabs + region: content + parent_name: '' + weight: 1 + format_type: tabs + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + direction: horizontal + width_breakpoint: 640 + group_texte: + children: + - body + label: Texte + region: content + parent_name: group_tabs + weight: 22 + format_type: tab + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + formatter: closed + description: '' + required_fields: true + group_lien: + children: + - field_lien + label: Lien + region: hidden + parent_name: group_tabs + weight: 21 + format_type: tab + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + formatter: closed + description: '' + required_fields: true + group_logo: + children: + - field_logo + label: Logo + region: content + parent_name: group_tabs + weight: 20 + format_type: tab + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + formatter: closed + description: '' + required_fields: true id: node.partenaire.default targetEntityType: node bundle: partenaire @@ -20,7 +106,7 @@ mode: default content: body: type: text_textarea_with_summary - weight: 3 + weight: 4 region: content settings: rows: 9 @@ -30,7 +116,7 @@ content: third_party_settings: { } field_lien: type: link_default - weight: 2 + weight: 3 region: content settings: placeholder_url: '' @@ -38,7 +124,7 @@ content: third_party_settings: { } field_logo: type: image_image - weight: 1 + weight: 2 region: content settings: progress_indicator: throbber @@ -46,14 +132,14 @@ content: third_party_settings: { } field_poids: type: number - weight: 4 + weight: 7 region: content settings: placeholder: '' third_party_settings: { } status: type: boolean_checkbox - weight: 5 + weight: 6 region: content settings: display_label: true diff --git a/config/sync/field.storage.node.field_lien.yml b/config/sync/field.storage.node.field_lien.yml index d7bc9c2..35b268e 100644 --- a/config/sync/field.storage.node.field_lien.yml +++ b/config/sync/field.storage.node.field_lien.yml @@ -12,7 +12,7 @@ type: link settings: { } module: link locked: false -cardinality: -1 +cardinality: 1 translatable: true indexes: { } persist_with_no_fields: false diff --git a/config/sync/user.role.admin.yml b/config/sync/user.role.admin.yml index 3d44aba..9c5877e 100644 --- a/config/sync/user.role.admin.yml +++ b/config/sync/user.role.admin.yml @@ -31,6 +31,7 @@ permissions: - 'access files overview' - 'access site in maintenance mode' - 'access toolbar' + - 'administer nodes' - 'administer site configuration' - 'administer users' - 'break content lock' @@ -44,6 +45,7 @@ permissions: - 'edit any equipe content' - 'edit any partenaire content' - 'edit any static content' + - 'edit own actualite content' - 'edit terms in type_dactus' - 'execute entity:save_action menu_link_content' - 'execute entity:save_action node' @@ -64,5 +66,6 @@ permissions: - 'revert static revisions' - 'update content translations' - 'use text format wysiwyg' + - 'view actualite revisions' - 'view static revisions' - 'view the administration theme' diff --git a/config/sync/user.role.editor.yml b/config/sync/user.role.editor.yml index b1b2cd4..06da6f5 100644 --- a/config/sync/user.role.editor.yml +++ b/config/sync/user.role.editor.yml @@ -26,6 +26,7 @@ permissions: - 'access content overview' - 'access site in maintenance mode' - 'access toolbar' + - 'administer nodes' - 'break content lock' - 'create actualite content' - 'create equipe content' @@ -35,6 +36,7 @@ permissions: - 'edit any equipe content' - 'edit any partenaire content' - 'edit any static content' + - 'edit own actualite content' - 'edit terms in type_dactus' - 'execute entity:save_action menu_link_content' - 'execute entity:save_action node' @@ -48,5 +50,6 @@ permissions: - 'revert partenaire revisions' - 'revert static revisions' - 'use text format wysiwyg' + - 'view actualite revisions' - 'view static revisions' - 'view the administration theme'