Browse Source

confidentiality in besoin ressource #2130

bach 1 năm trước cách đây
mục cha
commit
b354e45b25

+ 8 - 0
src/config/sync/core.entity_form_display.node.reponse.default.yml

@@ -5,6 +5,7 @@ dependencies:
   config:
     - field.field.node.reponse.field_avec
     - field.field.node.reponse.field_besoin_on_reponses
+    - field.field.node.reponse.field_confidentialite
     - field.field.node.reponse.field_ou
     - field.field.node.reponse.field_qui
     - field.field.node.reponse.field_quoi
@@ -13,6 +14,7 @@ dependencies:
     - conditional_fields
     - readonly_field_widget
     - text
+    - workflow
 id: node.reponse.default
 targetEntityType: node
 bundle: reponse
@@ -75,6 +77,12 @@ content:
           link: false
       show_description: false
     third_party_settings: {  }
+  field_confidentialite:
+    type: workflow_default
+    weight: 5
+    region: content
+    settings: {  }
+    third_party_settings: {  }
   field_ou:
     type: text_textarea
     weight: 3

+ 9 - 0
src/config/sync/core.entity_view_display.node.reponse.default.yml

@@ -5,12 +5,14 @@ dependencies:
   config:
     - field.field.node.reponse.field_avec
     - field.field.node.reponse.field_besoin_on_reponses
+    - field.field.node.reponse.field_confidentialite
     - field.field.node.reponse.field_ou
     - field.field.node.reponse.field_qui
     - field.field.node.reponse.field_quoi
     - node.type.reponse
   module:
     - manage_display
+    - options
     - text
 id: node.reponse.default
 targetEntityType: node
@@ -32,6 +34,13 @@ content:
     third_party_settings: {  }
     weight: 107
     region: content
+  field_confidentialite:
+    type: list_default
+    label: above
+    settings: {  }
+    third_party_settings: {  }
+    weight: 108
+    region: content
   field_ou:
     type: text_default
     label: above

+ 2 - 0
src/config/sync/core.entity_view_display.node.reponse.reponse_on_besoin.yml

@@ -6,6 +6,7 @@ dependencies:
     - core.entity_view_mode.node.reponse_on_besoin
     - field.field.node.reponse.field_avec
     - field.field.node.reponse.field_besoin_on_reponses
+    - field.field.node.reponse.field_confidentialite
     - field.field.node.reponse.field_ou
     - field.field.node.reponse.field_qui
     - field.field.node.reponse.field_quoi
@@ -65,6 +66,7 @@ content:
     region: content
 hidden:
   field_besoin_on_reponses: true
+  field_confidentialite: true
   langcode: true
   links: true
   search_api_excerpt: true

+ 3 - 1
src/config/sync/core.entity_view_display.node.reponse.teaser.yml

@@ -6,12 +6,13 @@ dependencies:
     - core.entity_view_mode.node.teaser
     - field.field.node.reponse.field_avec
     - field.field.node.reponse.field_besoin_on_reponses
+    - field.field.node.reponse.field_confidentialite
     - field.field.node.reponse.field_ou
     - field.field.node.reponse.field_qui
     - field.field.node.reponse.field_quoi
     - node.type.reponse
   module:
-    - user
+    - manage_display
 id: node.reponse.teaser
 targetEntityType: node
 bundle: reponse
@@ -35,6 +36,7 @@ hidden:
   created: true
   field_avec: true
   field_besoin_on_reponses: true
+  field_confidentialite: true
   field_ou: true
   field_qui: true
   field_quoi: true

+ 22 - 0
src/config/sync/field.field.node.reponse.field_confidentialite.yml

@@ -0,0 +1,22 @@
+uuid: a1589917-0c09-4ba8-b1da-52bf65a60986
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_confidentialite
+    - node.type.reponse
+  module:
+    - workflow
+id: node.reponse.field_confidentialite
+field_name: field_confidentialite
+entity_type: node
+bundle: reponse
+label: Confidentialité
+description: ''
+required: true
+translatable: true
+default_value:
+  - {  }
+default_value_callback: ''
+settings: {  }
+field_type: workflow