Преглед на файлове

added dossiers to sites

bach преди 4 месеца
родител
ревизия
432178f334

+ 3 - 0
composer.json

@@ -129,6 +129,9 @@
         "patches": {
             "drupal/social_media_links":{
                 "Replace Twitter with X https://www.drupal.org/project/social_media_links/issues/3384469": "https://www.drupal.org/files/issues/2023-09-12/social_media_links-change_twitter_to_x-3384469-7.patch"
+            },
+            "drupal/nodeaccess":{
+                "Preserve role grants when adding custom grants on node https://www.drupal.org/project/nodeaccess/issues/3144313": "https://www.drupal.org/files/issues/2024-02-08/preserve-role-grants-when-adding-custom-grants-on-node--3144313--13.patch"
             }
         }
 

+ 1 - 1
composer.lock

@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "70e879d1fd2c1004a55467d656238e50",
+    "content-hash": "b28b2f01a57c974a270eff443e2a36f5",
     "packages": [
         {
             "name": "asm89/stack-cors",

+ 38 - 0
config/sync/core.entity_form_display.node.site.default.yml

@@ -7,6 +7,7 @@ dependencies:
     - field.field.node.site.field_adresse_site
     - field.field.node.site.field_architecte
     - field.field.node.site.field_date_de_construction
+    - field.field.node.site.field_dossiers
     - field.field.node.site.field_fichiers
     - field.field.node.site.field_image
     - field.field.node.site.field_lettre_de_site
@@ -22,6 +23,7 @@ dependencies:
     - field_group
     - file
     - image
+    - paragraphs
     - path
     - text
 third_party_settings:
@@ -59,6 +61,7 @@ third_party_settings:
     group_tabs:
       children:
         - group_principal
+        - group_dossiers
       label: Tabs
       region: content
       parent_name: ''
@@ -89,6 +92,22 @@ third_party_settings:
         formatter: open
         description: ''
         required_fields: true
+    group_dossiers:
+      children:
+        - field_dossiers
+      label: Dossiers
+      region: content
+      parent_name: group_tabs
+      weight: 21
+      format_type: tab
+      format_settings:
+        classes: ''
+        show_empty_fields: false
+        id: ''
+        label_as_html: false
+        formatter: closed
+        description: ''
+        required_fields: true
 id: node.site.default
 targetEntityType: node
 bundle: site
@@ -136,6 +155,25 @@ content:
     region: content
     settings: {  }
     third_party_settings: {  }
+  field_dossiers:
+    type: paragraphs
+    weight: 26
+    region: content
+    settings:
+      title: Paragraphe
+      title_plural: Paragraphs
+      edit_mode: open
+      closed_mode: summary
+      autocollapse: none
+      closed_mode_threshold: 0
+      add_mode: dropdown
+      form_display_mode: default
+      default_paragraph_type: _none
+      features:
+        add_above: '0'
+        collapse_edit_all: collapse_edit_all
+        duplicate: '0'
+    third_party_settings: {  }
   field_fichiers:
     type: file_generic
     weight: 5

+ 45 - 0
config/sync/core.entity_form_display.paragraph.dossier.default.yml

@@ -0,0 +1,45 @@
+uuid: e4d0d705-728a-4c00-bd35-4ff8285e8929
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.field.paragraph.dossier.field_dossier
+    - field.field.paragraph.dossier.field_fichiers
+    - paragraphs.paragraphs_type.dossier
+  module:
+    - file
+    - paragraphs
+id: paragraph.dossier.default
+targetEntityType: paragraph
+bundle: dossier
+mode: default
+content:
+  field_dossier:
+    type: paragraphs
+    weight: 0
+    region: content
+    settings:
+      title: Paragraphe
+      title_plural: Paragraphs
+      edit_mode: open
+      closed_mode: summary
+      autocollapse: none
+      closed_mode_threshold: 0
+      add_mode: dropdown
+      form_display_mode: default
+      default_paragraph_type: _none
+      features:
+        add_above: '0'
+        collapse_edit_all: collapse_edit_all
+        duplicate: '0'
+    third_party_settings: {  }
+  field_fichiers:
+    type: file_generic
+    weight: 1
+    region: content
+    settings:
+      progress_indicator: throbber
+    third_party_settings: {  }
+hidden:
+  created: true
+  status: true

+ 11 - 0
config/sync/core.entity_view_display.node.site.default.yml

@@ -7,6 +7,7 @@ dependencies:
     - field.field.node.site.field_adresse_site
     - field.field.node.site.field_architecte
     - field.field.node.site.field_date_de_construction
+    - field.field.node.site.field_dossiers
     - field.field.node.site.field_fichiers
     - field.field.node.site.field_image
     - field.field.node.site.field_lettre_de_site
@@ -17,6 +18,7 @@ dependencies:
   module:
     - address
     - datetime_range
+    - entity_reference_revisions
     - file
     - image_field_caption
     - text
@@ -58,6 +60,15 @@ content:
     third_party_settings: {  }
     weight: 3
     region: content
+  field_dossiers:
+    type: entity_reference_revisions_entity_view
+    label: above
+    settings:
+      view_mode: default
+      link: ''
+    third_party_settings: {  }
+    weight: 7
+    region: content
   field_fichiers:
     type: file_default
     label: visually_hidden

+ 2 - 0
config/sync/core.entity_view_display.node.site.home_block.yml

@@ -8,6 +8,7 @@ dependencies:
     - field.field.node.site.field_adresse_site
     - field.field.node.site.field_architecte
     - field.field.node.site.field_date_de_construction
+    - field.field.node.site.field_dossiers
     - field.field.node.site.field_fichiers
     - field.field.node.site.field_image
     - field.field.node.site.field_lettre_de_site
@@ -70,6 +71,7 @@ content:
 hidden:
   body: true
   field_date_de_construction: true
+  field_dossiers: true
   field_fichiers: true
   field_lettre_de_site: true
   field_operation: true

+ 2 - 0
config/sync/core.entity_view_display.node.site.site_partenaire.yml

@@ -8,6 +8,7 @@ dependencies:
     - field.field.node.site.field_adresse_site
     - field.field.node.site.field_architecte
     - field.field.node.site.field_date_de_construction
+    - field.field.node.site.field_dossiers
     - field.field.node.site.field_fichiers
     - field.field.node.site.field_image
     - field.field.node.site.field_lettre_de_site
@@ -49,6 +50,7 @@ content:
 hidden:
   body: true
   field_date_de_construction: true
+  field_dossiers: true
   field_fichiers: true
   field_image: true
   field_numero_site: true

+ 2 - 0
config/sync/core.entity_view_display.node.site.teaser.yml

@@ -8,6 +8,7 @@ dependencies:
     - field.field.node.site.field_adresse_site
     - field.field.node.site.field_architecte
     - field.field.node.site.field_date_de_construction
+    - field.field.node.site.field_dossiers
     - field.field.node.site.field_fichiers
     - field.field.node.site.field_image
     - field.field.node.site.field_lettre_de_site
@@ -70,6 +71,7 @@ content:
 hidden:
   body: true
   field_date_de_construction: true
+  field_dossiers: true
   field_fichiers: true
   field_lettre_de_site: true
   field_operation: true

+ 35 - 0
config/sync/core.entity_view_display.paragraph.dossier.default.yml

@@ -0,0 +1,35 @@
+uuid: 5e93c0cb-a670-457c-a862-0b1ea3836de3
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.field.paragraph.dossier.field_dossier
+    - field.field.paragraph.dossier.field_fichiers
+    - paragraphs.paragraphs_type.dossier
+  module:
+    - entity_reference_revisions
+    - file
+id: paragraph.dossier.default
+targetEntityType: paragraph
+bundle: dossier
+mode: default
+content:
+  field_dossier:
+    type: entity_reference_revisions_entity_view
+    label: above
+    settings:
+      view_mode: default
+      link: ''
+    third_party_settings: {  }
+    weight: 1
+    region: content
+  field_fichiers:
+    type: file_default
+    label: above
+    settings:
+      use_description_as_link_text: true
+    third_party_settings: {  }
+    weight: 0
+    region: content
+hidden:
+  search_api_excerpt: true

+ 34 - 0
config/sync/field.field.node.site.field_dossiers.yml

@@ -0,0 +1,34 @@
+uuid: 2c4bd31e-60d8-4fcc-9624-30e545cf23b9
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_dossiers
+    - node.type.site
+    - paragraphs.paragraphs_type.dossier
+  module:
+    - entity_reference_revisions
+id: node.site.field_dossiers
+field_name: field_dossiers
+entity_type: node
+bundle: site
+label: Dossiers
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  handler: 'default:paragraph'
+  handler_settings:
+    target_bundles:
+      dossier: dossier
+    negate: 0
+    target_bundles_drag_drop:
+      dossier:
+        weight: 3
+        enabled: true
+      partenaire:
+        weight: 4
+        enabled: false
+field_type: entity_reference_revisions

+ 33 - 0
config/sync/field.field.paragraph.dossier.field_dossier.yml

@@ -0,0 +1,33 @@
+uuid: 5e9c980f-e756-41fa-b106-93ab505f1f8f
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.paragraph.field_dossier
+    - paragraphs.paragraphs_type.dossier
+  module:
+    - entity_reference_revisions
+id: paragraph.dossier.field_dossier
+field_name: field_dossier
+entity_type: paragraph
+bundle: dossier
+label: Dossier
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  handler: 'default:paragraph'
+  handler_settings:
+    target_bundles:
+      dossier: dossier
+    negate: 0
+    target_bundles_drag_drop:
+      dossier:
+        weight: 3
+        enabled: true
+      partenaire:
+        weight: 4
+        enabled: false
+field_type: entity_reference_revisions

+ 27 - 0
config/sync/field.field.paragraph.dossier.field_fichiers.yml

@@ -0,0 +1,27 @@
+uuid: b6f01ac0-d986-45b5-b887-9a75f71e6c7a
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.paragraph.field_fichiers
+    - paragraphs.paragraphs_type.dossier
+  module:
+    - file
+id: paragraph.dossier.field_fichiers
+field_name: field_fichiers
+entity_type: paragraph
+bundle: dossier
+label: Fichiers
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  handler: 'default:file'
+  handler_settings: {  }
+  file_directory: '[current-user:uid]'
+  file_extensions: 'pdf doc docx odt zip'
+  max_filesize: ''
+  description_field: true
+field_type: file

+ 21 - 0
config/sync/field.storage.node.field_dossiers.yml

@@ -0,0 +1,21 @@
+uuid: 46490fd7-c63f-4bfb-87ad-ae06186f2217
+langcode: fr
+status: true
+dependencies:
+  module:
+    - entity_reference_revisions
+    - node
+    - paragraphs
+id: node.field_dossiers
+field_name: field_dossiers
+entity_type: node
+type: entity_reference_revisions
+settings:
+  target_type: paragraph
+module: entity_reference_revisions
+locked: false
+cardinality: -1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 20 - 0
config/sync/field.storage.paragraph.field_dossier.yml

@@ -0,0 +1,20 @@
+uuid: a75c44de-6c8b-48be-a28a-41a254fb7e80
+langcode: fr
+status: true
+dependencies:
+  module:
+    - entity_reference_revisions
+    - paragraphs
+id: paragraph.field_dossier
+field_name: field_dossier
+entity_type: paragraph
+type: entity_reference_revisions
+settings:
+  target_type: paragraph
+module: entity_reference_revisions
+locked: false
+cardinality: -1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 23 - 0
config/sync/field.storage.paragraph.field_fichiers.yml

@@ -0,0 +1,23 @@
+uuid: 0be56c60-1ee0-4acb-b98c-49e452d8fd51
+langcode: fr
+status: true
+dependencies:
+  module:
+    - file
+    - paragraphs
+id: paragraph.field_fichiers
+field_name: field_fichiers
+entity_type: paragraph
+type: file
+settings:
+  target_type: file
+  display_field: false
+  display_default: false
+  uri_scheme: private
+module: file
+locked: false
+cardinality: -1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 10 - 0
config/sync/paragraphs.paragraphs_type.dossier.yml

@@ -0,0 +1,10 @@
+uuid: cc753999-984b-42d2-940b-c29a748f8b90
+langcode: fr
+status: true
+dependencies: {  }
+id: dossier
+label: Dossier
+icon_uuid: null
+icon_default: null
+description: ''
+behavior_plugins: {  }

+ 14 - 0
config/sync/system.action.user_add_role_action.collaborateur.yml

@@ -0,0 +1,14 @@
+uuid: 027d5742-4dc2-4460-990e-22c879adfff7
+langcode: fr
+status: true
+dependencies:
+  config:
+    - user.role.collaborateur
+  module:
+    - user
+id: user_add_role_action.collaborateur
+label: 'Ajouter le rôle Collaborateur aux utilisateurs sélectionnés'
+type: user
+plugin: user_add_role_action
+configuration:
+  rid: collaborateur

+ 14 - 0
config/sync/system.action.user_remove_role_action.collaborateur.yml

@@ -0,0 +1,14 @@
+uuid: 6ec1ceda-6a1d-4226-a74d-14d61825ac7f
+langcode: fr
+status: true
+dependencies:
+  config:
+    - user.role.collaborateur
+  module:
+    - user
+id: user_remove_role_action.collaborateur
+label: 'Enlever le rôle Collaborateur des utilisateurs sélectionnés'
+type: user
+plugin: user_remove_role_action
+configuration:
+  rid: collaborateur

+ 1 - 1
config/sync/system.file.yml

@@ -1,8 +1,8 @@
 _core:
   default_config_hash: iVCUEmCQO_uzT2ReHxUBVpC1NjO4I3wb8-zF1a4vyKI
+langcode: fr
 allow_insecure_uploads: false
 default_scheme: public
 path:
   temporary: /tmp
 temporary_maximum_age: 21600
-langcode: fr

+ 9 - 0
config/sync/user.role.collaborateur.yml

@@ -0,0 +1,9 @@
+uuid: d23378d0-3c03-4009-96b2-96b1221adbca
+langcode: fr
+status: true
+dependencies: {  }
+id: collaborateur
+label: Collaborateur
+weight: -4
+is_admin: null
+permissions: {  }

+ 23 - 0
private/.htaccess

@@ -0,0 +1,23 @@
+# Deny all requests from Apache 2.4+.
+
+  Require all denied
+
+
+# Deny all requests from Apache 2.0-2.2.
+
+  Deny from all
+
+
+# Turn off all options we don't need.
+Options -Indexes -ExecCGI -Includes -MultiViews
+
+# Set the catch-all handler to prevent scripts from being executed.
+SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
+
+  # Override the handler again if we're run later in the evaluation list.
+  SetHandler Drupal_Security_Do_Not_Remove_See_SA_2013_003
+
+
+# If we know how to do it safely, disable the PHP engine entirely.
+
+  php_flag engine off