Kaynağa Gözat

besoin & ressource can be unpublished #2129

bach 1 yıl önce
ebeveyn
işleme
e602d6cb55

+ 23 - 1
src/config/sync/core.entity_form_display.node.besoin.default.yml

@@ -22,6 +22,7 @@ third_party_settings:
         - group_besoin
         - group_reponse
         - group_c
+        - group_infos
       label: Tabs
       region: content
       parent_name: ''
@@ -78,6 +79,21 @@ third_party_settings:
         formatter: closed
         description: ''
         required_fields: true
+    group_infos:
+      children:
+        - status
+      label: Infos
+      region: content
+      parent_name: group_tabs
+      weight: 17
+      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
@@ -143,6 +159,13 @@ content:
           listSeparator: ','
       show_description: false
     third_party_settings: {  }
+  status:
+    type: boolean_checkbox
+    weight: 0
+    region: content
+    settings:
+      display_label: true
+    third_party_settings: {  }
   title:
     type: string_textfield
     weight: 0
@@ -157,7 +180,6 @@ hidden:
   path: true
   promote: true
   revision_log: true
-  status: true
   sticky: true
   uid: true
   url_redirects: true

+ 93 - 4
src/config/sync/core.entity_form_display.node.reponse.default.yml

@@ -12,14 +12,89 @@ dependencies:
     - node.type.reponse
   module:
     - conditional_fields
+    - field_group
     - readonly_field_widget
     - text
     - workflow
+third_party_settings:
+  field_group:
+    group_tabs:
+      children:
+        - group_ressource
+        - group_c
+        - group_infos
+      label: Tabs
+      region: content
+      parent_name: ''
+      weight: 5
+      format_type: tabs
+      format_settings:
+        classes: ''
+        show_empty_fields: false
+        id: ''
+        direction: vertical
+        width_breakpoint: 640
+    group_ressource:
+      children:
+        - field_qui
+        - field_quoi
+        - field_ou
+        - field_avec
+      label: ressource
+      region: content
+      parent_name: group_tabs
+      weight: 17
+      format_type: tab
+      format_settings:
+        classes: ''
+        show_empty_fields: false
+        id: ''
+        formatter: open
+        description: ''
+        required_fields: true
+    group_c:
+      children:
+        - field_confidentialite
+      label: Confidentialité
+      region: content
+      parent_name: group_tabs
+      weight: 18
+      format_type: tab
+      format_settings:
+        classes: ''
+        show_empty_fields: false
+        id: ''
+        formatter: closed
+        description: ''
+        required_fields: true
+    group_infos:
+      children:
+        - status
+        - uid
+        - created
+      label: Infos
+      region: content
+      parent_name: group_tabs
+      weight: 19
+      format_type: tab
+      format_settings:
+        classes: ''
+        show_empty_fields: false
+        id: ''
+        formatter: closed
+        description: ''
+        required_fields: true
 id: node.reponse.default
 targetEntityType: node
 bundle: reponse
 mode: default
 content:
+  created:
+    type: datetime_timestamp
+    weight: 2
+    region: content
+    settings: {  }
+    third_party_settings: {  }
   field_avec:
     type: text_textarea
     weight: 4
@@ -79,7 +154,7 @@ content:
     third_party_settings: {  }
   field_confidentialite:
     type: workflow_default
-    weight: 5
+    weight: 6
     region: content
     settings: {  }
     third_party_settings: {  }
@@ -155,14 +230,28 @@ content:
               slide:
                 speed: '400'
             selector: ''
+  status:
+    type: boolean_checkbox
+    weight: 0
+    region: content
+    settings:
+      display_label: true
+    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
   revision_log: true
-  status: true
   sticky: true
   title: true
-  uid: true
   url_redirects: true

+ 12 - 5
src/config/sync/core.entity_view_display.node.reponse.reponse_on_besoin.yml

@@ -12,6 +12,7 @@ dependencies:
     - field.field.node.reponse.field_quoi
     - node.type.reponse
   module:
+    - options
     - text
 id: node.reponse.reponse_on_besoin
 targetEntityType: node
@@ -33,28 +34,35 @@ content:
     label: above
     settings: {  }
     third_party_settings: {  }
-    weight: 5
+    weight: 6
+    region: content
+  field_confidentialite:
+    type: list_default
+    label: inline
+    settings: {  }
+    third_party_settings: {  }
+    weight: 2
     region: content
   field_ou:
     type: text_default
     label: above
     settings: {  }
     third_party_settings: {  }
-    weight: 4
+    weight: 5
     region: content
   field_qui:
     type: text_default
     label: above
     settings: {  }
     third_party_settings: {  }
-    weight: 2
+    weight: 3
     region: content
   field_quoi:
     type: text_default
     label: above
     settings: {  }
     third_party_settings: {  }
-    weight: 3
+    weight: 4
     region: content
   uid:
     type: entity_reference_label
@@ -66,7 +74,6 @@ content:
     region: content
 hidden:
   field_besoin_on_reponses: true
-  field_confidentialite: true
   langcode: true
   links: true
   search_api_excerpt: true