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

Merge branch 'master' of https://figureslibres.io/gogs/bachir/drupal-reha

ouidade преди 1 година
родител
ревизия
3ee918f21a
променени са 38 файла, в които са добавени 597 реда и са изтрити 102 реда
  1. 3 0
      composer.json
  2. 167 1
      composer.lock
  3. 1 1
      config/sync/advanced_email_validation.settings.yml
  4. 1 1
      config/sync/block.block.reha_config_pages.yml
  5. 2 2
      config/sync/block.block.reha_config_pages_2.yml
  6. 1 1
      config/sync/block.block.reha_connexionutilisateur.yml
  7. 1 1
      config/sync/block.block.reha_logoministere.yml
  8. 1 1
      config/sync/block.block.reha_logoreha.yml
  9. 4 4
      config/sync/block.block.reha_logoreha_3.yml
  10. 2 2
      config/sync/block.block.reha_operateurduprogramme.yml
  11. 2 2
      config/sync/block.block.reha_pieddepage.yml
  12. 1 1
      config/sync/block.block.reha_views_block__current_user_block_block_1.yml
  13. 8 0
      config/sync/block_content.type.file_link.yml
  14. 2 2
      config/sync/block_content.type.node_link.yml
  15. 45 0
      config/sync/content_as_config.block_content.yml
  16. 31 0
      config/sync/core.entity_form_display.block_content.file_link.default.yml
  17. 14 10
      config/sync/core.entity_form_display.block_content.node_link.default.yml
  18. 34 0
      config/sync/core.entity_view_display.block_content.file_link.default.yml
  19. 10 1
      config/sync/core.entity_view_display.block_content.node_link.default.yml
  20. 4 0
      config/sync/core.extension.yml
  21. 27 0
      config/sync/field.field.block_content.file_link.field_fichier.yml
  22. 24 0
      config/sync/field.field.block_content.node_link.field_description.yml
  23. 20 0
      config/sync/field.storage.block_content.field_description.yml
  24. 23 0
      config/sync/field.storage.block_content.field_fichier.yml
  25. 36 0
      config/sync/filter.format.restricted_html.yml
  26. 11 0
      config/sync/language.content_settings.block_content.file_link.yml
  27. 1 1
      config/sync/login_destination.destination.login_to_operations.yml
  28. 1 1
      config/sync/login_destination.destination.register_to_create_operation.yml
  29. 1 1
      config/sync/node.type.operation.yml
  30. 24 11
      config/sync/page_manager.page_variant.home-panels_variant-0.yml
  31. 51 0
      config/sync/rules.reaction.new_operation_node_send_email.yml
  32. 9 0
      config/sync/rules.settings.yml
  33. 4 0
      config/sync/user.role.anonymous.yml
  34. 0 50
      web/sites/development.services.yml
  35. 5 1
      web/themes/custom/reha/reha.info.yml
  36. 9 2
      web/themes/custom/reha/templates/page--home.html.twig
  37. 8 2
      web/themes/custom/reha/templates/page--user--register.html.twig
  38. 9 3
      web/themes/custom/reha/templates/page.html.twig

+ 3 - 0
composer.json

@@ -29,6 +29,9 @@
         "drupal/panels": "^4.7",
         "drupal/paragraphs": "^1.16",
         "drupal/phone_number": "^2.0@alpha",
+        "drupal/rules": "^3.0@alpha",
+        "drupal/social_media_links": "^2.9",
+        "drupal/typed_data": "^1.0@beta",
         "drupal/webform": "^6.2",
         "wikimedia/composer-merge-plugin": "^2.1"
     },

+ 167 - 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": "fe3a970f200733b71d21e9f07b783697",
+    "content-hash": "ae52207c0580112eec7a01ad7b214aeb",
     "packages": [
         {
             "name": "asm89/stack-cors",
@@ -6348,6 +6348,65 @@
                 "source": "https://git.drupalcode.org/project/redis"
             }
         },
+        {
+            "name": "drupal/rules",
+            "version": "3.0.0-alpha8",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupalcode.org/project/rules.git",
+                "reference": "8.x-3.0-alpha8"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://ftp.drupal.org/files/projects/rules-8.x-3.0-alpha8.zip",
+                "reference": "8.x-3.0-alpha8",
+                "shasum": "22a44298b98000697efd86a29a8df1c0ce0bf44f"
+            },
+            "require": {
+                "drupal/core": "^9.1 || ^10",
+                "drupal/typed_data": "^1.0"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "drupal": {
+                    "version": "8.x-3.0-alpha8",
+                    "datestamp": "1696376270",
+                    "security-coverage": {
+                        "status": "not-covered",
+                        "message": "Alpha releases are not covered by Drupal security advisories."
+                    }
+                },
+                "drush": {
+                    "services": {
+                        "drush.services.yml": "^9 || ^10"
+                    }
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0-or-later"
+            ],
+            "authors": [
+                {
+                    "name": "fago",
+                    "homepage": "https://www.drupal.org/user/16747"
+                },
+                {
+                    "name": "klausi",
+                    "homepage": "https://www.drupal.org/user/262198"
+                },
+                {
+                    "name": "TR",
+                    "homepage": "https://www.drupal.org/user/202830"
+                }
+            ],
+            "description": "React on events and conditionally evaluate actions.",
+            "homepage": "https://www.drupal.org/project/rules",
+            "support": {
+                "source": "https://git.drupalcode.org/project/rules",
+                "issues": "https://www.drupal.org/project/issues/rules"
+            }
+        },
         {
             "name": "drupal/search_api",
             "version": "1.30.0",
@@ -6663,6 +6722,57 @@
                 "issues": "https://www.drupal.org/project/issues/smtp"
             }
         },
+        {
+            "name": "drupal/social_media_links",
+            "version": "2.9.0",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupalcode.org/project/social_media_links.git",
+                "reference": "8.x-2.9"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://ftp.drupal.org/files/projects/social_media_links-8.x-2.9.zip",
+                "reference": "8.x-2.9",
+                "shasum": "d73ea6199b48e11e57fe8a2aeb2afbf3c295704a"
+            },
+            "require": {
+                "drupal/core": "^8 || ^9 || ^10"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "drupal": {
+                    "version": "8.x-2.9",
+                    "datestamp": "1665768361",
+                    "security-coverage": {
+                        "status": "covered",
+                        "message": "Covered by Drupal's security advisory policy"
+                    }
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0-or-later"
+            ],
+            "authors": [
+                {
+                    "name": "Neslee Canil Pinto",
+                    "homepage": "https://www.drupal.org/u/neslee-canil-pinto",
+                    "role": "Maintainer"
+                },
+                {
+                    "name": "Christian Beier",
+                    "homepage": "https://www.drupal.org/u/cbeier",
+                    "role": "Maintainer"
+                }
+            ],
+            "description": "The module provides a block that display links (icons) to your profiles on various social networking sites.",
+            "homepage": "https://www.drupal.org/project/social_media_links",
+            "support": {
+                "source": "https://git.drupalcode.org/project/social_media_links",
+                "issues": "https://www.drupal.org/project/issues/social_media_links"
+            }
+        },
         {
             "name": "drupal/sophron",
             "version": "2.0.1",
@@ -6896,6 +7006,60 @@
                 "source": "https://git.drupalcode.org/project/translation_views"
             }
         },
+        {
+            "name": "drupal/typed_data",
+            "version": "1.0.0-beta2",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupalcode.org/project/typed_data.git",
+                "reference": "8.x-1.0-beta2"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://ftp.drupal.org/files/projects/typed_data-8.x-1.0-beta2.zip",
+                "reference": "8.x-1.0-beta2",
+                "shasum": "e0aa651b129d8dcd765ca49cba8682ebe09e6e73"
+            },
+            "require": {
+                "drupal/core": "^9.1 || ^10"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "drupal": {
+                    "version": "8.x-1.0-beta2",
+                    "datestamp": "1679429196",
+                    "security-coverage": {
+                        "status": "not-covered",
+                        "message": "Beta releases are not covered by Drupal security advisories."
+                    }
+                },
+                "drush": {
+                    "services": {
+                        "drush.services.yml": ">=9"
+                    }
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0-or-later"
+            ],
+            "authors": [
+                {
+                    "name": "fago",
+                    "homepage": "https://www.drupal.org/user/16747"
+                },
+                {
+                    "name": "TR",
+                    "homepage": "https://www.drupal.org/user/202830"
+                }
+            ],
+            "description": "Extends the core Typed Data API with new APIs and features.",
+            "homepage": "https://www.drupal.org/project/typed_data",
+            "support": {
+                "source": "https://git.drupalcode.org/project/typed_data",
+                "issues": "https://www.drupal.org/project/issues/typed_data"
+            }
+        },
         {
             "name": "drupal/ultimate_cron",
             "version": "2.0.0-alpha6",
@@ -12420,6 +12584,8 @@
         "drupal/login_destination": 20,
         "drupal/page_manager": 5,
         "drupal/phone_number": 15,
+        "drupal/rules": 15,
+        "drupal/typed_data": 10,
         "drupal/advanced_text_formatter": 5,
         "drupal/bulkdelete": 20,
         "drupal/config_ignore": 5,

+ 1 - 1
config/sync/advanced_email_validation.settings.yml

@@ -4,7 +4,7 @@ langcode: fr
 override_site_defaults: false
 rules:
   mx_lookup: mx_lookup
-  disposable: '0'
+  disposable: disposable
   free: '0'
   banned: '0'
 error_messages:

+ 1 - 1
config/sync/block.block.reha_config_pages.yml

@@ -9,7 +9,7 @@ dependencies:
 id: reha_config_pages
 theme: reha
 region: header
-weight: 2
+weight: -2
 provider: null
 plugin: config_pages_block
 settings:

+ 2 - 2
config/sync/block.block.reha_config_pages_2.yml

@@ -8,8 +8,8 @@ dependencies:
     - reha
 id: reha_config_pages_2
 theme: reha
-region: footer
-weight: -1
+region: footer_right
+weight: -4
 provider: null
 plugin: config_pages_block
 settings:

+ 1 - 1
config/sync/block.block.reha_connexionutilisateur.yml

@@ -9,7 +9,7 @@ dependencies:
 id: reha_connexionutilisateur
 theme: reha
 region: header
-weight: 0
+weight: -4
 provider: null
 plugin: user_login_block
 settings:

+ 1 - 1
config/sync/block.block.reha_logoministere.yml

@@ -11,7 +11,7 @@ dependencies:
 id: reha_logoministere
 theme: reha
 region: header
-weight: -2
+weight: -6
 provider: null
 plugin: 'block_content:734a55bb-b11d-4498-bb55-5a6cb1924aa8'
 settings:

+ 1 - 1
config/sync/block.block.reha_logoreha.yml

@@ -11,7 +11,7 @@ dependencies:
 id: reha_logoreha
 theme: reha
 region: header
-weight: -1
+weight: -5
 provider: null
 plugin: 'block_content:6aedcd97-72c8-4328-b52d-f4d2a5285b96'
 settings:

+ 4 - 4
config/sync/block.block.reha_logoreha_2.yml → config/sync/block.block.reha_logoreha_3.yml

@@ -1,4 +1,4 @@
-uuid: 0ea21b35-747c-42c6-bce2-e18cae5ed543
+uuid: 74cf208f-3ebc-421e-94bc-b89300b25370
 langcode: fr
 status: true
 dependencies:
@@ -8,10 +8,10 @@ dependencies:
     - block_content
   theme:
     - reha
-id: reha_logoreha_2
+id: reha_logoreha_3
 theme: reha
-region: footer
-weight: -4
+region: footer_left
+weight: -5
 provider: null
 plugin: 'block_content:6aedcd97-72c8-4328-b52d-f4d2a5285b96'
 settings:

+ 2 - 2
config/sync/block.block.reha_operateurduprogramme.yml

@@ -10,8 +10,8 @@ dependencies:
     - reha
 id: reha_operateurduprogramme
 theme: reha
-region: footer
-weight: -2
+region: footer_middle
+weight: -6
 provider: null
 plugin: 'block_content:bc48e271-75cf-4c3f-a4aa-ecc3c573c060'
 settings:

+ 2 - 2
config/sync/block.block.reha_pieddepage.yml

@@ -10,8 +10,8 @@ dependencies:
     - reha
 id: reha_pieddepage
 theme: reha
-region: footer
-weight: -3
+region: footer_left
+weight: -4
 provider: null
 plugin: 'menu_block:footer'
 settings:

+ 1 - 1
config/sync/block.block.reha_views_block__current_user_block_block_1.yml

@@ -12,7 +12,7 @@ dependencies:
 id: reha_views_block__current_user_block_block_1
 theme: reha
 region: header
-weight: 1
+weight: -3
 provider: null
 plugin: 'views_block:current_user_block-block_1'
 settings:

+ 8 - 0
config/sync/block_content.type.file_link.yml

@@ -0,0 +1,8 @@
+uuid: e8b72363-6670-4430-92ad-354c6b3079ea
+langcode: fr
+status: true
+dependencies: {  }
+id: file_link
+label: 'File link'
+revision: 0
+description: ''

+ 2 - 2
config/sync/block_content.type.node_link.yml

@@ -3,6 +3,6 @@ langcode: fr
 status: true
 dependencies: {  }
 id: node_link
-label: 'node link'
+label: 'Internal link'
 revision: 0
-description: ''
+description: 'with description'

+ 45 - 0
config/sync/content_as_config.block_content.yml

@@ -66,6 +66,7 @@ bc48e271-75cf-4c3f-a4aa-ecc3c573c060:
   type: node_link
   reusable: '1'
   fields:
+    field_description: {  }
     field_node_link:
       -
         uri: 'internal:/node/4'
@@ -79,8 +80,52 @@ bc48e271-75cf-4c3f-a4aa-ecc3c573c060:
   type: node_link
   reusable: '1'
   fields:
+    field_description: {  }
     field_node_link:
       -
         uri: 'internal:/node/5'
         title: 'Voir la fiche candidature'
         options: {  }
+08189a6a-2ca1-42c3-a780-d7ad0c65619d:
+  uuid: 08189a6a-2ca1-42c3-a780-d7ad0c65619d
+  id: '9'
+  info: 'Cachier des charges'
+  langcode: fr
+  type: file_link
+  reusable: '1'
+  fields:
+    field_fichier:
+      -
+        target_id: '11'
+        display: '1'
+        description: 'Télécharger le cahier des charges'
+259faa3e-f66e-4776-9f4e-9a3aa26e8252:
+  uuid: 259faa3e-f66e-4776-9f4e-9a3aa26e8252
+  id: '10'
+  info: 'Fiche candidature'
+  langcode: fr
+  type: file_link
+  reusable: '1'
+  fields:
+    field_fichier:
+      -
+        target_id: '12'
+        display: '1'
+        description: 'Télécharger la fiche candidature'
+5ae07b35-3c0b-48f5-b51b-f0f0e4c1765f:
+  uuid: 5ae07b35-3c0b-48f5-b51b-f0f0e4c1765f
+  id: '11'
+  info: 'Proposer un site (anonymous)'
+  langcode: fr
+  type: node_link
+  reusable: '1'
+  fields:
+    field_description:
+      -
+        value: "Appel a candidatures d'opérations"
+        format: wysiwyg
+    field_node_link:
+      -
+        uri: 'internal:/user/register?destination=/node/add/operation'
+        title: 'Proposer un site'
+        options: {  }

+ 31 - 0
config/sync/core.entity_form_display.block_content.file_link.default.yml

@@ -0,0 +1,31 @@
+uuid: 9f8cbd66-a0b1-416f-96fb-628eedbb495d
+langcode: fr
+status: true
+dependencies:
+  config:
+    - block_content.type.file_link
+    - field.field.block_content.file_link.field_fichier
+  module:
+    - file
+id: block_content.file_link.default
+targetEntityType: block_content
+bundle: file_link
+mode: default
+content:
+  field_fichier:
+    type: file_generic
+    weight: 1
+    region: content
+    settings:
+      progress_indicator: throbber
+    third_party_settings: {  }
+  info:
+    type: string_textfield
+    weight: 0
+    region: content
+    settings:
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
+hidden:
+  langcode: true

+ 14 - 10
config/sync/core.entity_form_display.block_content.node_link.default.yml

@@ -4,17 +4,27 @@ status: true
 dependencies:
   config:
     - block_content.type.node_link
+    - field.field.block_content.node_link.field_description
     - field.field.block_content.node_link.field_node_link
   module:
     - link
+    - text
 id: block_content.node_link.default
 targetEntityType: block_content
 bundle: node_link
 mode: default
 content:
+  field_description:
+    type: text_textfield
+    weight: 2
+    region: content
+    settings:
+      size: 60
+      placeholder: ''
+    third_party_settings: {  }
   field_node_link:
     type: link_default
-    weight: 26
+    weight: 1
     region: content
     settings:
       placeholder_url: ''
@@ -22,17 +32,11 @@ content:
     third_party_settings: {  }
   info:
     type: string_textfield
-    weight: -5
+    weight: 0
     region: content
     settings:
       size: 60
       placeholder: ''
     third_party_settings: {  }
-  langcode:
-    type: language_select
-    weight: 2
-    region: content
-    settings:
-      include_locked: true
-    third_party_settings: {  }
-hidden: {  }
+hidden:
+  langcode: true

+ 34 - 0
config/sync/core.entity_view_display.block_content.file_link.default.yml

@@ -0,0 +1,34 @@
+uuid: 63343056-f327-4a0d-b1c6-42aae5886994
+langcode: fr
+status: true
+dependencies:
+  config:
+    - block_content.type.file_link
+    - field.field.block_content.file_link.field_fichier
+  module:
+    - formatter_suite
+id: block_content.file_link.default
+targetEntityType: block_content
+bundle: file_link
+mode: default
+content:
+  field_fichier:
+    type: formatter_suite_general_file_link
+    label: visually_hidden
+    settings:
+      titleStyle: text_from_link
+      titleCustomText: ''
+      classes: ''
+      showLink: '1'
+      openLinkIn: download
+      linkTopic: any
+      showSize: 0
+      showIcon: 0
+      listStyle: span
+      listSeparator: ', '
+    third_party_settings: {  }
+    weight: 0
+    region: content
+hidden:
+  langcode: true
+  search_api_excerpt: true

+ 10 - 1
config/sync/core.entity_view_display.block_content.node_link.default.yml

@@ -4,14 +4,23 @@ status: true
 dependencies:
   config:
     - block_content.type.node_link
+    - field.field.block_content.node_link.field_description
     - field.field.block_content.node_link.field_node_link
   module:
     - link
+    - text
 id: block_content.node_link.default
 targetEntityType: block_content
 bundle: node_link
 mode: default
 content:
+  field_description:
+    type: text_default
+    label: visually_hidden
+    settings: {  }
+    third_party_settings: {  }
+    weight: 0
+    region: content
   field_node_link:
     type: link
     label: visually_hidden
@@ -22,7 +31,7 @@ content:
       rel: ''
       target: ''
     third_party_settings: {  }
-    weight: 0
+    weight: 1
     region: content
 hidden:
   langcode: true

+ 4 - 0
config/sync/core.extension.yml

@@ -2,6 +2,7 @@ _core:
   default_config_hash: R4IF-ClDHXxblLcG0L7MgsLvfBIMAvi_skumNFQwkDc
 langcode: fr
 module:
+  action: 0
   actions_permissions: 0
   address: 0
   admin_toolbar: 0
@@ -92,10 +93,12 @@ module:
   phone_number: 0
   redis: 0
   responsive_image: 0
+  rules: 0
   search_api: 0
   search_api_db: 0
   smart_trim: 0
   smtp: 0
+  social_media_links: 0
   system: 0
   taxonomy: 0
   telephone: 0
@@ -103,6 +106,7 @@ module:
   token: 0
   toolbar: 0
   translation_views: 0
+  typed_data: 0
   update: 0
   user: 0
   video_embed_field: 0

+ 27 - 0
config/sync/field.field.block_content.file_link.field_fichier.yml

@@ -0,0 +1,27 @@
+uuid: fc85fc2d-dfde-4224-9370-b86b6564e578
+langcode: fr
+status: true
+dependencies:
+  config:
+    - block_content.type.file_link
+    - field.storage.block_content.field_fichier
+  module:
+    - file
+id: block_content.file_link.field_fichier
+field_name: field_fichier
+entity_type: block_content
+bundle: file_link
+label: Fichier
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  handler: 'default:file'
+  handler_settings: {  }
+  file_directory: file_link_block
+  file_extensions: pdf
+  max_filesize: ''
+  description_field: true
+field_type: file

+ 24 - 0
config/sync/field.field.block_content.node_link.field_description.yml

@@ -0,0 +1,24 @@
+uuid: e7451b79-988c-4f40-a2c7-6deeb010f039
+langcode: fr
+status: true
+dependencies:
+  config:
+    - block_content.type.node_link
+    - field.storage.block_content.field_description
+    - filter.format.wysiwyg
+  module:
+    - text
+id: block_content.node_link.field_description
+field_name: field_description
+entity_type: block_content
+bundle: node_link
+label: description
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings:
+  allowed_formats:
+    - wysiwyg
+field_type: text

+ 20 - 0
config/sync/field.storage.block_content.field_description.yml

@@ -0,0 +1,20 @@
+uuid: b029b266-612f-429c-8de0-2c5336e3371f
+langcode: fr
+status: true
+dependencies:
+  module:
+    - block_content
+    - text
+id: block_content.field_description
+field_name: field_description
+entity_type: block_content
+type: text
+settings:
+  max_length: 255
+module: text
+locked: false
+cardinality: 1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 23 - 0
config/sync/field.storage.block_content.field_fichier.yml

@@ -0,0 +1,23 @@
+uuid: 5340e8a5-3c82-4028-a88d-54f07ec21b80
+langcode: fr
+status: true
+dependencies:
+  module:
+    - block_content
+    - file
+id: block_content.field_fichier
+field_name: field_fichier
+entity_type: block_content
+type: file
+settings:
+  target_type: file
+  display_field: false
+  display_default: false
+  uri_scheme: public
+module: file
+locked: false
+cardinality: 1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 36 - 0
config/sync/filter.format.restricted_html.yml

@@ -0,0 +1,36 @@
+uuid: fd70c6be-a93d-4df9-a4b8-79ddf2c8f36b
+langcode: fr
+status: true
+dependencies:
+  enforced:
+    module:
+      - filter
+      - rules
+_core:
+  default_config_hash: VrFjOQn2l2n6baaj2Z6IkYt9OdtsLjYPUVg7HgkkGLU
+name: 'HTML restreint'
+format: restricted_html
+weight: 1
+filters:
+  filter_html:
+    id: filter_html
+    provider: filter
+    status: true
+    weight: -10
+    settings:
+      allowed_html: '<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>'
+      filter_html_help: true
+      filter_html_nofollow: false
+  filter_autop:
+    id: filter_autop
+    provider: filter
+    status: true
+    weight: 0
+    settings: {  }
+  filter_url:
+    id: filter_url
+    provider: filter
+    status: true
+    weight: 0
+    settings:
+      filter_url_length: 72

+ 11 - 0
config/sync/language.content_settings.block_content.file_link.yml

@@ -0,0 +1,11 @@
+uuid: 8418948c-e0fd-458f-8d99-15738e5ebebc
+langcode: fr
+status: true
+dependencies:
+  config:
+    - block_content.type.file_link
+id: block_content.file_link
+target_entity_type_id: block_content
+target_bundle: file_link
+default_langcode: site_default
+language_alterable: false

+ 1 - 1
config/sync/login_destination.destination.login_to_operations.yml

@@ -13,4 +13,4 @@ language: ''
 roles:
   authenticated: authenticated
 weight: 0
-enabled: true
+enabled: false

+ 1 - 1
config/sync/login_destination.destination.register_to_create_operation.yml

@@ -13,4 +13,4 @@ language: ''
 roles:
   authenticated: authenticated
 weight: 0
-enabled: true
+enabled: false

+ 1 - 1
config/sync/node.type.operation.yml

@@ -13,5 +13,5 @@ type: operation
 description: ''
 help: ''
 new_revision: false
-preview_mode: 2
+preview_mode: 0
 display_submitted: true

+ 24 - 11
config/sync/page_manager.page_variant.home-panels_variant-0.yml

@@ -6,8 +6,9 @@ dependencies:
     - page_manager.page.home
     - views.view.home
   content:
-    - 'block_content:node_link:1ca95211-9fa2-4ef2-a460-8184d1eaf20f'
-    - 'block_content:node_link:1dd151e8-8a8b-4586-9e62-8905ba0c93e0'
+    - 'block_content:file_link:08189a6a-2ca1-42c3-a780-d7ad0c65619d'
+    - 'block_content:file_link:259faa3e-f66e-4776-9f4e-9a3aa26e8252'
+    - 'block_content:node_link:5ae07b35-3c0b-48f5-b51b-f0f0e4c1765f'
   module:
     - block_content
     - panels
@@ -32,7 +33,7 @@ variant_settings:
       items_per_page: none
       exposed: {  }
       region: content
-      weight: -1
+      weight: -2
       uuid: b297a6d7-a9c6-43a6-9010-3b5cd59ae3a8
     2335ebb2-2264-44b5-abfb-a0b7a925ff8f:
       id: 'views_block:home-block_2'
@@ -46,9 +47,9 @@ variant_settings:
       region: content
       weight: 2
       uuid: 2335ebb2-2264-44b5-abfb-a0b7a925ff8f
-    09241090-e75c-452c-b169-a7d78b57650e:
-      id: 'block_content:1ca95211-9fa2-4ef2-a460-8184d1eaf20f'
-      label: 'Cahier des charges P1'
+    e90f5dc4-5bd5-443b-9356-a80eb812b503:
+      id: 'block_content:08189a6a-2ca1-42c3-a780-d7ad0c65619d'
+      label: 'Cachier des charges'
       label_display: '0'
       provider: block_content
       status: true
@@ -57,10 +58,10 @@ variant_settings:
       context_mapping: {  }
       region: content
       weight: 0
-      uuid: 09241090-e75c-452c-b169-a7d78b57650e
-    366eef03-4014-46f7-9a07-988feb447ae2:
-      id: 'block_content:1dd151e8-8a8b-4586-9e62-8905ba0c93e0'
-      label: 'Fiche Candidature P1'
+      uuid: e90f5dc4-5bd5-443b-9356-a80eb812b503
+    f8454c70-66dd-496c-b685-b2408111317e:
+      id: 'block_content:259faa3e-f66e-4776-9f4e-9a3aa26e8252'
+      label: 'Fiche candidature'
       label_display: '0'
       provider: block_content
       status: true
@@ -69,7 +70,19 @@ variant_settings:
       context_mapping: {  }
       region: content
       weight: 1
-      uuid: 366eef03-4014-46f7-9a07-988feb447ae2
+      uuid: f8454c70-66dd-496c-b685-b2408111317e
+    6f81f6f2-06b2-452a-ab38-ff05d6d02aaf:
+      id: 'block_content:5ae07b35-3c0b-48f5-b51b-f0f0e4c1765f'
+      label: 'Phase 1.'
+      label_display: visible
+      provider: block_content
+      status: true
+      info: ''
+      view_mode: full
+      context_mapping: {  }
+      region: content
+      weight: -1
+      uuid: 6f81f6f2-06b2-452a-ab38-ff05d6d02aaf
   page_title: ''
   layout: layout_onecol
   layout_settings:

+ 51 - 0
config/sync/rules.reaction.new_operation_node_send_email.yml

@@ -0,0 +1,51 @@
+uuid: 4d858daa-ccb3-4f12-a54f-f9797f25aa85
+langcode: fr
+status: true
+dependencies: {  }
+id: new_operation_node_send_email
+label: 'New opération node send email'
+events:
+  -
+    event_name: 'rules_entity_insert:node--operation'
+description: ''
+tags: {  }
+config_version: '3'
+expression:
+  id: rules_rule
+  uuid: bdb7ab88-8b7d-4b73-8736-6b81b89da83e
+  weight: 0
+  conditions:
+    id: rules_and
+    uuid: f742b33f-3cd0-4685-84ac-4730946565f2
+    weight: 0
+    conditions: {  }
+  actions:
+    id: rules_action_set
+    uuid: 52344b5b-f15b-4c76-a96d-dc7caf57f5c3
+    weight: 0
+    actions:
+      -
+        id: rules_action
+        uuid: 0c06331f-3d28-4886-a0c7-89e93f0d2989
+        weight: 0
+        action_id: rules_send_email
+        context_values:
+          to:
+            - dev@figureslibres.io
+          subject: '[REHA] nouvelle opération crée'
+          message: '@node.node_route_context:node.title'
+          reply: ''
+          language: ''
+        context_mapping: {  }
+        context_processors:
+          to:
+            rules_tokens: {  }
+          subject:
+            rules_tokens: {  }
+          message:
+            rules_tokens: {  }
+          reply:
+            rules_tokens: {  }
+          language:
+            rules_tokens: {  }
+        provides_mapping: {  }

+ 9 - 0
config/sync/rules.settings.yml

@@ -0,0 +1,9 @@
+_core:
+  default_config_hash: ZKaBtyYFEhfwE4xVP-khSsZabdsN3NSjwOfzaZksez0
+langcode: fr
+system_log:
+  log_level: warning
+debug_log:
+  enabled: false
+  system_debug: false
+  log_level: debug

+ 4 - 0
config/sync/user.role.anonymous.yml

@@ -2,9 +2,12 @@ uuid: b348c4e0-5a35-4922-86ac-f5ee0e1e08c2
 langcode: fr
 status: true
 dependencies:
+  config:
+    - filter.format.restricted_html
   module:
     - config_pages
     - devel
+    - filter
     - system
 _core:
   default_config_hash: jyuRv_5UazPqBsQ9L4kDkcVvxtGr0WytAUoWf1LhqOk
@@ -15,6 +18,7 @@ is_admin: false
 permissions:
   - 'access content'
   - 'access devel information'
+  - 'use text format restricted_html'
   - 'view contact config page entity'
   - 'view mentions_legales config page entity'
   - 'view partenaires config page entity'

+ 0 - 50
web/sites/development.services.yml

@@ -3,56 +3,6 @@
 # To activate this feature, follow the instructions at the top of the
 # 'example.settings.local.php' file, which sits next to this file.
 parameters:
-  twig.config:
-    # Twig debugging:
-    #
-    # When debugging is enabled:
-    # - The markup of each Twig template is surrounded by HTML comments that
-    #   contain theming information, such as template file name suggestions.
-    # - Note that this debugging markup will cause automated tests that directly
-    #   check rendered HTML to fail. When running automated tests, 'debug'
-    #   should be set to FALSE.
-    # - The dump() function can be used in Twig templates to output information
-    #   about template variables.
-    # - Twig templates are automatically recompiled whenever the source code
-    #   changes (see auto_reload below).
-    #
-    # For more information about debugging Twig templates, see
-    # https://www.drupal.org/node/1906392.
-    #
-    # Not recommended in production environments
-    # @default false
-    debug: true
-    # Twig auto-reload:
-    #
-    # Automatically recompile Twig templates whenever the source code changes.
-    # If you don't provide a value for auto_reload, it will be determined
-    # based on the value of debug.
-    #
-    # Not recommended in production environments
-    # @default null
-    auto_reload: null
-    # Twig cache:
-    #
-    # By default, Twig templates will be compiled and stored in the filesystem
-    # to increase performance. Disabling the Twig cache will recompile the
-    # templates from source each time they are used. In most cases the
-    # auto_reload setting above should be enabled rather than disabling the
-    # Twig cache.
-    #
-    # Not recommended in production environments
-    # @default true
-    cache: false
-  # Cacheability debugging:
-  #
-  # Responses with cacheability metadata (CacheableResponseInterface instances)
-  # get X-Drupal-Cache-Tags and X-Drupal-Cache-Contexts headers.
-  #
-  # For more information about debugging cacheable responses, see
-  # https://www.drupal.org/developing/api/8/response/cacheable-response-interface
-  #
-  # Not recommended in production environments
-  # @default false
   http.response.debug_cacheability_headers: true
 services:
   cache.backend.null:

+ 5 - 1
web/themes/custom/reha/reha.info.yml

@@ -18,4 +18,8 @@ regions:
   content: 'Content'
   sidebar_first: 'Sidebar first'
   sidebar_second: 'Sidebar second'
-  footer: 'Footer'
+  footer_top: 'Footer top'
+  footer_left: 'Footer left'
+  footer_middle: 'Footer middle'
+  footer_right: 'Footer right'
+  footer_bottom: 'Footer bottom'

+ 9 - 2
web/themes/custom/reha/templates/page--home.html.twig

@@ -81,10 +81,17 @@
 
   </main>
 
-  {% if page.footer %}
+  {% if page.footer_top or page.footer_left or page.footer_middle or page.footer_right or page.footer_bottom %}
     <footer role="contentinfo">
-      {{ page.footer }}
+      <section id="footer-top">{{ page.footer_top }}</section> 
+      <div>
+        <section id="footer-left">{{ page.footer_left }}</section> 
+        <section id="footer-middle">{{ page.footer_middle }}</section> 
+        <section id="footer-right">{{ page.footer_right }}</section> 
+      </div> 
+      <section id="footer-bottom">{{ page.footer_bottom }}</section> 
     </footer>
   {% endif %}
 
+
 </div>{# /.layout-container #}

+ 8 - 2
web/themes/custom/reha/templates/page--user--register.html.twig

@@ -81,9 +81,15 @@
 
   </main>
 
-  {% if page.footer %}
+{% if page.footer_top or page.footer_left or page.footer_middle or page.footer_right or page.footer_bottom %}
     <footer role="contentinfo">
-      {{ page.footer }}
+      <section id="footer-top">{{ page.footer_top }}</section> 
+      <div>
+        <section id="footer-left">{{ page.footer_left }}</section> 
+        <section id="footer-middle">{{ page.footer_middle }}</section> 
+        <section id="footer-right">{{ page.footer_right }}</section> 
+      </div> 
+      <section id="footer-bottom">{{ page.footer_bottom }}</section> 
     </footer>
   {% endif %}
 

+ 9 - 3
web/themes/custom/reha/templates/page.html.twig

@@ -81,10 +81,16 @@
 
   </main>
 
-  {% if page.footer %}
+  {# {% if page.footer_top or page.footer_left or page.footer_middle or page.footer_right or page.footer_bottom %} #}
     <footer role="contentinfo">
-      {{ page.footer }}
+      <section id="footer-top">{{ page.footer_top }}</section> 
+      <div>
+        <section id="footer-left">{{ page.footer_left }}</section> 
+        <section id="footer-middle">{{ page.footer_middle }}</section> 
+        <section id="footer-right">{{ page.footer_right }}</section> 
+      </div> 
+      <section id="footer-bottom">{{ page.footer_bottom }}</section> 
     </footer>
-  {% endif %}
+  {# {% endif %} #}
 
 </div>{# /.layout-container #}