Quellcode durchsuchen

admin can change 'authored on' on materials and thematiques

bach vor 3 Jahren
Ursprung
Commit
e5f679ea0a

+ 7 - 1
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

+ 9 - 52
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
-    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
+    weight: 2
     region: content
     settings: {  }
     third_party_settings: {  }
-hidden: {  }
+hidden:
+  path: true
+  promote: true
+  status: true
+  sticky: true
+  uid: true
+  url_redirects: true

+ 5 - 1
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

+ 4 - 0
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'