From e5f679ea0a2e34578d28183b70a3b8d6c714ceff Mon Sep 17 00:00:00 2001 From: bach Date: Tue, 24 Aug 2021 22:10:49 +0200 Subject: [PATCH] admin can change 'authored on' on materials and thematiques --- ...ity_form_display.node.materiau.default.yml | 8 ++- ...y_form_display.node.thematique.default.yml | 61 +++---------------- config/sync/node.type.materiau.yml | 6 +- config/sync/user.role.admin.yml | 4 ++ 4 files changed, 25 insertions(+), 54 deletions(-) diff --git a/config/sync/core.entity_form_display.node.materiau.default.yml b/config/sync/core.entity_form_display.node.materiau.default.yml index ef05d3b6..00889276 100644 --- a/config/sync/core.entity_form_display.node.materiau.default.yml +++ b/config/sync/core.entity_form_display.node.materiau.default.yml @@ -167,6 +167,7 @@ third_party_settings: - field_memo - field_workflow - field_migration + - created parent_name: '' weight: 1 format_type: tab @@ -193,6 +194,12 @@ content: show_summary: false third_party_settings: { } region: content + created: + type: datetime_timestamp + weight: 23 + region: content + settings: { } + third_party_settings: { } field_attachments: weight: 17 settings: @@ -354,7 +361,6 @@ content: settings: { } third_party_settings: { } hidden: - created: true field_index: true field_localisation_old: true promote: true diff --git a/config/sync/core.entity_form_display.node.thematique.default.yml b/config/sync/core.entity_form_display.node.thematique.default.yml index 2bc82dde..037924fa 100644 --- a/config/sync/core.entity_form_display.node.thematique.default.yml +++ b/config/sync/core.entity_form_display.node.thematique.default.yml @@ -17,7 +17,6 @@ dependencies: module: - field_group - image - - path - term_reference_tree - text - workflow @@ -102,15 +101,9 @@ third_party_settings: - langcode - field_workflow - field_memo - - uid - - status - created - - promote - - sticky - - path - - url_redirects parent_name: '' - weight: 20 + weight: 3 format_type: details_sidebar region: content format_settings: @@ -226,33 +219,6 @@ content: settings: include_locked: false third_party_settings: { } - path: - type: path - weight: 27 - region: content - settings: { } - third_party_settings: { } - promote: - type: boolean_checkbox - settings: - display_label: true - weight: 25 - region: content - third_party_settings: { } - status: - type: boolean_checkbox - settings: - display_label: true - weight: 21 - region: content - third_party_settings: { } - sticky: - type: boolean_checkbox - settings: - display_label: true - weight: 26 - region: content - third_party_settings: { } title: type: string_textfield weight: 0 @@ -262,23 +228,14 @@ content: placeholder: '' third_party_settings: { } translation: - weight: 10 + weight: 2 region: content settings: { } third_party_settings: { } - uid: - type: entity_reference_autocomplete - weight: 20 - settings: - match_operator: CONTAINS - size: 60 - placeholder: '' - match_limit: 10 - region: content - third_party_settings: { } - url_redirects: - weight: 28 - region: content - settings: { } - third_party_settings: { } -hidden: { } +hidden: + path: true + promote: true + status: true + sticky: true + uid: true + url_redirects: true diff --git a/config/sync/node.type.materiau.yml b/config/sync/node.type.materiau.yml index 81790929..e6e6b656 100644 --- a/config/sync/node.type.materiau.yml +++ b/config/sync/node.type.materiau.yml @@ -4,14 +4,18 @@ status: true dependencies: module: - menu_ui + - unique_content_field_validation third_party_settings: menu_ui: available_menus: { } parent: '' + unique_content_field_validation: + unique: false + unique_text: '' name: Materiau type: materiau description: '' help: '' new_revision: false preview_mode: 0 -display_submitted: false +display_submitted: true diff --git a/config/sync/user.role.admin.yml b/config/sync/user.role.admin.yml index 66997e61..4a2940de 100644 --- a/config/sync/user.role.admin.yml +++ b/config/sync/user.role.admin.yml @@ -29,6 +29,7 @@ permissions: - 'administer commerce_order' - 'administer commerce_payment' - 'administer newsletters' + - 'administer nodes' - 'administer productions menu items' - 'administer simplenews subscriptions' - 'administer synonyms' @@ -77,6 +78,7 @@ permissions: - 'create terms in thesaurus' - 'create thematique content' - 'create workflow workflow_transition' + - 'delete all revisions' - 'delete any autre_son content' - 'delete any enregistrement content' - 'delete any evenement content' @@ -144,6 +146,7 @@ permissions: - 'execute workflow_node_given_state_action node' - 'execute workflow_node_next_state_action node' - 'flag dossier other items' + - 'revert all revisions' - 'revert any corpus_documents workflow_transition' - 'revert any generique workflow_transition' - 'revert any migration workflow_transition' @@ -194,6 +197,7 @@ permissions: - 'use text format full_html' - 'use text format wysiwyg' - 'view all login histories' + - 'view all revisions' - 'view any commerce_license' - 'view any commerce_subscription' - 'view any contact_company profile'