Przeglądaj źródła

added publication and suppression right to editor

bach 3 lat temu
rodzic
commit
23e7bed1e3

+ 40 - 3
src/config/sync/core.entity_form_display.node.texte.default.yml

@@ -123,6 +123,23 @@ third_party_settings:
         description: ''
         required_fields: true
       label: Reference
+    group_sidebar:
+      children:
+        - status
+        - created
+        - uid
+      parent_name: ''
+      weight: 1
+      format_type: details_sidebar
+      region: content
+      format_settings:
+        id: ''
+        classes: ''
+        description: ''
+        open: true
+        required_fields: true
+        weight: 0
+      label: Sidebar
 id: node.texte.default
 targetEntityType: node
 bundle: texte
@@ -138,6 +155,12 @@ content:
       show_summary: false
     third_party_settings: {  }
     region: content
+  created:
+    type: datetime_timestamp
+    weight: 2
+    region: content
+    settings: {  }
+    third_party_settings: {  }
   field_autheurs:
     weight: 11
     settings:
@@ -271,6 +294,13 @@ content:
     third_party_settings: {  }
     type: video_embed_field_textfield
     region: content
+  status:
+    type: boolean_checkbox
+    weight: 1
+    region: content
+    settings:
+      display_label: true
+    third_party_settings: {  }
   title:
     type: string_textfield
     weight: 1
@@ -279,12 +309,19 @@ content:
       size: 60
       placeholder: ''
     third_party_settings: {  }
+  uid:
+    type: entity_reference_autocomplete
+    weight: 3
+    region: content
+    settings:
+      match_operator: CONTAINS
+      match_limit: 10
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
 hidden:
-  created: true
   langcode: true
   path: true
   promote: true
-  status: true
   sticky: true
-  uid: true
   url_redirects: true

+ 42 - 4
src/config/sync/core.entity_form_display.node.texte_prod.default.yml

@@ -33,7 +33,7 @@ third_party_settings:
         - group_media
         - group_reference
       parent_name: ''
-      weight: 20
+      weight: 6
       format_type: tabs
       region: hidden
       format_settings:
@@ -44,6 +44,7 @@ third_party_settings:
     group_contenus:
       children:
         - title
+        - group_publication
         - body
         - field_notes_prod
       parent_name: group_tabs
@@ -116,6 +117,23 @@ third_party_settings:
         formatter: closed
         required_fields: true
       label: Infos
+    group_publication:
+      children:
+        - status
+        - uid
+        - created
+      parent_name: group_contenus
+      weight: 0
+      format_type: details_sidebar
+      region: content
+      format_settings:
+        description: ''
+        open: true
+        weight: 0
+        required_fields: true
+        id: ''
+        classes: ''
+      label: Publication
 id: node.texte_prod.default
 targetEntityType: node
 bundle: texte_prod
@@ -131,6 +149,12 @@ content:
       show_summary: false
     third_party_settings: {  }
     region: content
+  created:
+    type: datetime_timestamp
+    weight: 2
+    region: content
+    settings: {  }
+    third_party_settings: {  }
   field_autheurs:
     weight: 127
     settings:
@@ -238,6 +262,13 @@ content:
     third_party_settings: {  }
     type: video_embed_field_textfield
     region: content
+  status:
+    type: boolean_checkbox
+    weight: 0
+    region: content
+    settings:
+      display_label: true
+    third_party_settings: {  }
   title:
     type: string_textfield
     weight: -5
@@ -246,12 +277,19 @@ content:
       size: 60
       placeholder: ''
     third_party_settings: {  }
+  uid:
+    type: entity_reference_autocomplete
+    weight: 1
+    region: content
+    settings:
+      match_operator: CONTAINS
+      match_limit: 10
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
 hidden:
-  created: true
   langcode: true
   path: true
   promote: true
-  status: true
   sticky: true
-  uid: true
   url_redirects: true

+ 5 - 0
src/config/sync/user.role.admin.yml

@@ -16,6 +16,7 @@ permissions:
   - 'access files overview'
   - 'access kint'
   - 'access toolbar'
+  - 'administer nodes'
   - 'administer productions menu items'
   - 'administer users'
   - 'change own username'
@@ -39,6 +40,10 @@ permissions:
   - 'delete any evenement content'
   - 'delete any fil content'
   - 'delete any page content'
+  - 'delete any texte content'
+  - 'delete any texte_prod content'
+  - 'delete own texte content'
+  - 'delete own texte_prod content'
   - 'delete terms in collectionneurs'
   - 'delete terms in entrees'
   - 'delete terms in genres'

+ 5 - 0
src/config/sync/user.role.editeur.yml

@@ -13,6 +13,7 @@ permissions:
   - 'access site in maintenance mode'
   - 'access taxonomy overview'
   - 'access toolbar'
+  - 'administer nodes'
   - 'change own username'
   - 'create paragraph content note'
   - 'create paragraph content note_prod'
@@ -22,6 +23,10 @@ permissions:
   - 'create terms in tag'
   - 'create texte content'
   - 'create texte_prod content'
+  - 'delete any texte content'
+  - 'delete any texte_prod content'
+  - 'delete own texte content'
+  - 'delete own texte_prod content'
   - 'delete paragraph content note'
   - 'delete paragraph content note_prod'
   - 'edit any static content'