From 4c4505ce4e42a07a48ccf594b68f63aebf17183b Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 22 May 2023 13:00:33 +0200 Subject: [PATCH] added confidentiality to besoin, renamed reponse to ressource --- src/composer.lock | 29 ++++++++----------- ...ntity_form_display.node.besoin.default.yml | 26 ++++++++++++++++- ...lay.node.besoin.besoin_on_reponse_form.yml | 2 ++ ...ntity_view_display.node.besoin.default.yml | 22 +++++++++++++- ...entity_view_display.node.besoin.teaser.yml | 15 +++++++++- ...ield.node.besoin.field_confidentialite.yml | 22 ++++++++++++++ .../field.field.node.besoin.field_reponse.yml | 2 +- src/config/sync/node.type.reponse.yml | 2 +- src/config/sync/user.role.root.yml | 1 - 9 files changed, 98 insertions(+), 23 deletions(-) create mode 100644 src/config/sync/field.field.node.besoin.field_confidentialite.yml diff --git a/src/composer.lock b/src/composer.lock index b2143bc..8314360 100644 --- a/src/composer.lock +++ b/src/composer.lock @@ -10211,16 +10211,16 @@ }, { "name": "guzzlehttp/promises", - "version": "1.5.2", + "version": "1.5.3", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "b94b2807d85443f9719887892882d0329d1e2598" + "reference": "67ab6e18aaa14d753cc148911d273f6e6cb6721e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/b94b2807d85443f9719887892882d0329d1e2598", - "reference": "b94b2807d85443f9719887892882d0329d1e2598", + "url": "https://api.github.com/repos/guzzle/promises/zipball/67ab6e18aaa14d753cc148911d273f6e6cb6721e", + "reference": "67ab6e18aaa14d753cc148911d273f6e6cb6721e", "shasum": "" }, "require": { @@ -10230,11 +10230,6 @@ "symfony/phpunit-bridge": "^4.4 || ^5.1" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.5-dev" - } - }, "autoload": { "files": [ "src/functions_include.php" @@ -10275,7 +10270,7 @@ ], "support": { "issues": "https://github.com/guzzle/promises/issues", - "source": "https://github.com/guzzle/promises/tree/1.5.2" + "source": "https://github.com/guzzle/promises/tree/1.5.3" }, "funding": [ { @@ -10291,7 +10286,7 @@ "type": "tidelift" } ], - "time": "2022-08-28T14:55:35+00:00" + "time": "2023-05-21T12:31:43+00:00" }, { "name": "guzzlehttp/psr7", @@ -14779,16 +14774,16 @@ }, { "name": "twig/twig", - "version": "v2.15.4", + "version": "v2.15.5", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "3e059001d6d597dd50ea7c74dd2464b4adea48d3" + "reference": "fc02a6af3eeb97c4bf5650debc76c2eda85ac22e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/3e059001d6d597dd50ea7c74dd2464b4adea48d3", - "reference": "3e059001d6d597dd50ea7c74dd2464b4adea48d3", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/fc02a6af3eeb97c4bf5650debc76c2eda85ac22e", + "reference": "fc02a6af3eeb97c4bf5650debc76c2eda85ac22e", "shasum": "" }, "require": { @@ -14843,7 +14838,7 @@ ], "support": { "issues": "https://github.com/twigphp/Twig/issues", - "source": "https://github.com/twigphp/Twig/tree/v2.15.4" + "source": "https://github.com/twigphp/Twig/tree/v2.15.5" }, "funding": [ { @@ -14855,7 +14850,7 @@ "type": "tidelift" } ], - "time": "2022-12-27T12:26:20+00:00" + "time": "2023-05-03T17:49:41+00:00" }, { "name": "typo3/phar-stream-wrapper", diff --git a/src/config/sync/core.entity_form_display.node.besoin.default.yml b/src/config/sync/core.entity_form_display.node.besoin.default.yml index 068a43e..517854f 100644 --- a/src/config/sync/core.entity_form_display.node.besoin.default.yml +++ b/src/config/sync/core.entity_form_display.node.besoin.default.yml @@ -5,6 +5,7 @@ dependencies: config: - field.field.node.besoin.body - field.field.node.besoin.field_concernement + - field.field.node.besoin.field_confidentialite - field.field.node.besoin.field_index - field.field.node.besoin.field_reponse - node.type.besoin @@ -13,12 +14,14 @@ dependencies: - field_hidden - readonly_field_widget - text + - workflow third_party_settings: field_group: group_tabs: children: - group_besoin - group_reponse + - group_c label: Tabs region: content parent_name: '' @@ -48,7 +51,7 @@ third_party_settings: group_reponse: children: - field_reponse - label: Réponses + label: Ressources region: content parent_name: group_tabs weight: 15 @@ -60,6 +63,21 @@ third_party_settings: formatter: closed description: '' required_fields: true + group_c: + children: + - field_confidentialite + label: Confidentialité + region: content + parent_name: group_tabs + weight: 16 + format_type: tab + format_settings: + classes: '' + show_empty_fields: false + id: '' + formatter: closed + description: '' + required_fields: true id: node.besoin.default targetEntityType: node bundle: besoin @@ -85,6 +103,12 @@ content: size: 60 placeholder: '' third_party_settings: { } + field_confidentialite: + type: workflow_default + weight: 17 + region: content + settings: { } + third_party_settings: { } field_index: type: field_hidden_number weight: 16 diff --git a/src/config/sync/core.entity_view_display.node.besoin.besoin_on_reponse_form.yml b/src/config/sync/core.entity_view_display.node.besoin.besoin_on_reponse_form.yml index 4454360..fa73d92 100644 --- a/src/config/sync/core.entity_view_display.node.besoin.besoin_on_reponse_form.yml +++ b/src/config/sync/core.entity_view_display.node.besoin.besoin_on_reponse_form.yml @@ -6,6 +6,7 @@ dependencies: - core.entity_view_mode.node.besoin_on_reponse_form - field.field.node.besoin.body - field.field.node.besoin.field_concernement + - field.field.node.besoin.field_confidentialite - field.field.node.besoin.field_index - field.field.node.besoin.field_reponse - node.type.besoin @@ -34,6 +35,7 @@ content: region: content hidden: created: true + field_confidentialite: true field_index: true field_reponse: true langcode: true diff --git a/src/config/sync/core.entity_view_display.node.besoin.default.yml b/src/config/sync/core.entity_view_display.node.besoin.default.yml index cc92b20..fc3b618 100644 --- a/src/config/sync/core.entity_view_display.node.besoin.default.yml +++ b/src/config/sync/core.entity_view_display.node.besoin.default.yml @@ -5,12 +5,14 @@ dependencies: config: - field.field.node.besoin.body - field.field.node.besoin.field_concernement + - field.field.node.besoin.field_confidentialite - field.field.node.besoin.field_index - field.field.node.besoin.field_reponse - node.type.besoin module: + - manage_display + - options - text - - user id: node.besoin.default targetEntityType: node bundle: besoin @@ -31,6 +33,13 @@ content: third_party_settings: { } weight: 0 region: content + field_confidentialite: + type: list_default + label: above + settings: { } + third_party_settings: { } + weight: 3 + region: content field_reponse: type: entity_reference_label label: above @@ -39,8 +48,19 @@ content: third_party_settings: { } weight: 2 region: content + title: + type: title + label: hidden + settings: + link_to_entity: true + tag: h2 + third_party_settings: { } + weight: -49 + region: content hidden: + created: true field_index: true langcode: true links: true search_api_excerpt: true + uid: true diff --git a/src/config/sync/core.entity_view_display.node.besoin.teaser.yml b/src/config/sync/core.entity_view_display.node.besoin.teaser.yml index 999155b..2f8cee7 100644 --- a/src/config/sync/core.entity_view_display.node.besoin.teaser.yml +++ b/src/config/sync/core.entity_view_display.node.besoin.teaser.yml @@ -6,12 +6,13 @@ dependencies: - core.entity_view_mode.node.teaser - field.field.node.besoin.body - field.field.node.besoin.field_concernement + - field.field.node.besoin.field_confidentialite - field.field.node.besoin.field_index - field.field.node.besoin.field_reponse - node.type.besoin module: + - manage_display - text - - user id: node.besoin.teaser targetEntityType: node bundle: besoin @@ -30,9 +31,21 @@ content: third_party_settings: { } weight: 100 region: content + title: + type: title + label: hidden + settings: + link_to_entity: true + tag: h2 + third_party_settings: { } + weight: -49 + region: content hidden: + created: true field_concernement: true + field_confidentialite: true field_index: true field_reponse: true langcode: true search_api_excerpt: true + uid: true diff --git a/src/config/sync/field.field.node.besoin.field_confidentialite.yml b/src/config/sync/field.field.node.besoin.field_confidentialite.yml new file mode 100644 index 0000000..5a71fef --- /dev/null +++ b/src/config/sync/field.field.node.besoin.field_confidentialite.yml @@ -0,0 +1,22 @@ +uuid: a0dd2fb7-19fa-4942-b9bc-7ea20bab5842 +langcode: fr +status: true +dependencies: + config: + - field.storage.node.field_confidentialite + - node.type.besoin + module: + - workflow +id: node.besoin.field_confidentialite +field_name: field_confidentialite +entity_type: node +bundle: besoin +label: Confidentialité +description: "Privé: seul⋅e l'auteur⋅ice du contenu peut éditer et voir ce contenu
\r\nInterne: seul⋅e l'auteur⋅ice du contenu peut éditer, les utilisateur⋅ice⋅s enregistré⋅e⋅s du site peuvent voir
\r\nPublic: seul⋅e l'auteur⋅ice du contenu peut éditer, tout le monde peut voir
" +required: true +translatable: true +default_value: + - { } +default_value_callback: '' +settings: { } +field_type: workflow diff --git a/src/config/sync/field.field.node.besoin.field_reponse.yml b/src/config/sync/field.field.node.besoin.field_reponse.yml index 24fa7e1..45dbffe 100644 --- a/src/config/sync/field.field.node.besoin.field_reponse.yml +++ b/src/config/sync/field.field.node.besoin.field_reponse.yml @@ -10,7 +10,7 @@ id: node.besoin.field_reponse field_name: field_reponse entity_type: node bundle: besoin -label: Réponse +label: Ressources description: '' required: false translatable: false diff --git a/src/config/sync/node.type.reponse.yml b/src/config/sync/node.type.reponse.yml index ced6a5c..215519b 100644 --- a/src/config/sync/node.type.reponse.yml +++ b/src/config/sync/node.type.reponse.yml @@ -8,7 +8,7 @@ third_party_settings: menu_ui: available_menus: { } parent: '' -name: Reponse +name: Ressource type: reponse description: '' help: '' diff --git a/src/config/sync/user.role.root.yml b/src/config/sync/user.role.root.yml index 8c44b1e..a5509c3 100644 --- a/src/config/sync/user.role.root.yml +++ b/src/config/sync/user.role.root.yml @@ -61,7 +61,6 @@ permissions: - 'add chutier entities' - 'administer account menu items' - 'administer account settings' - - 'administer actions' - 'administer admin menu items' - 'administer blocks' - 'administer chutier display'