Przeglądaj źródła

concernement/action/source form refactoring

bach 2 lat temu
rodzic
commit
c41c3e5050
53 zmienionych plików z 370 dodań i 1402 usunięć
  1. 20 13
      src/config/sync/core.entity_form_display.node.concernement.default.yml
  2. 43 175
      src/config/sync/core.entity_form_display.node.entite.default.yml
  3. 0 252
      src/config/sync/core.entity_form_display.paragraph.action.default.yml
  4. 4 4
      src/config/sync/core.entity_form_display.paragraph.entite_concernement.default.yml
  5. 11 6
      src/config/sync/core.entity_form_display.paragraph.source.default.yml
  6. 13 6
      src/config/sync/core.entity_view_display.node.concernement.default.yml
  7. 4 10
      src/config/sync/core.entity_view_display.node.concernement.teaser.yml
  8. 13 76
      src/config/sync/core.entity_view_display.node.entite.default.yml
  9. 6 24
      src/config/sync/core.entity_view_display.node.entite.teaser.yml
  10. 0 113
      src/config/sync/core.entity_view_display.paragraph.action.default.yml
  11. 2 3
      src/config/sync/core.entity_view_display.paragraph.source.default.yml
  12. 0 23
      src/config/sync/field.field.node.concernement.body.yml
  13. 19 0
      src/config/sync/field.field.node.concernement.field_caillou.yml
  14. 19 0
      src/config/sync/field.field.node.concernement.field_description.yml
  15. 0 23
      src/config/sync/field.field.node.entite.body.yml
  16. 19 0
      src/config/sync/field.field.node.entite.field_action.yml
  17. 0 34
      src/config/sync/field.field.node.entite.field_actions.yml
  18. 0 27
      src/config/sync/field.field.node.entite.field_audio.yml
  19. 0 21
      src/config/sync/field.field.node.entite.field_date.yml
  20. 0 27
      src/config/sync/field.field.node.entite.field_documents.yml
  21. 0 38
      src/config/sync/field.field.node.entite.field_images.yml
  22. 0 23
      src/config/sync/field.field.node.entite.field_liens.yml
  23. 19 0
      src/config/sync/field.field.node.entite.field_menace_maintien.yml
  24. 7 7
      src/config/sync/field.field.node.entite.field_sources.yml
  25. 0 25
      src/config/sync/field.field.node.entite.field_videos.yml
  26. 0 27
      src/config/sync/field.field.paragraph.action.field_audio.yml
  27. 0 24
      src/config/sync/field.field.paragraph.action.field_date.yml
  28. 0 23
      src/config/sync/field.field.paragraph.action.field_description.yml
  29. 0 27
      src/config/sync/field.field.paragraph.action.field_documents.yml
  30. 0 38
      src/config/sync/field.field.paragraph.action.field_images.yml
  31. 0 23
      src/config/sync/field.field.paragraph.action.field_liens.yml
  32. 0 23
      src/config/sync/field.field.paragraph.action.field_menace_maintien.yml
  33. 0 25
      src/config/sync/field.field.paragraph.action.field_videos.yml
  34. 1 1
      src/config/sync/field.field.paragraph.entite_concernement.field_menace_maintien_degres.yml
  35. 1 1
      src/config/sync/field.field.paragraph.entite_concernement.field_prise.yml
  36. 3 7
      src/config/sync/field.field.paragraph.source.field_description.yml
  37. 6 7
      src/config/sync/field.storage.node.field_action.yml
  38. 0 23
      src/config/sync/field.storage.node.field_audio.yml
  39. 8 8
      src/config/sync/field.storage.node.field_caillou.yml
  40. 19 0
      src/config/sync/field.storage.node.field_description.yml
  41. 0 23
      src/config/sync/field.storage.node.field_documents.yml
  42. 0 30
      src/config/sync/field.storage.node.field_images.yml
  43. 19 0
      src/config/sync/field.storage.node.field_menace_maintien.yml
  44. 3 3
      src/config/sync/field.storage.node.field_sources.yml
  45. 0 19
      src/config/sync/field.storage.node.field_videos.yml
  46. 5 5
      src/config/sync/field.storage.paragraph.field_description.yml
  47. 0 30
      src/config/sync/field.storage.paragraph.field_menace_maintien.yml
  48. 0 20
      src/config/sync/field.storage.paragraph.field_sources.yml
  49. 0 11
      src/config/sync/paragraphs.paragraphs_type.action.yml
  50. 2 72
      src/config/sync/views.view.admin_nodes.yml
  51. 2 2
      src/web/themes/custom/ouatminimal_theme/css/ouatminimal.css
  52. 7 0
      src/web/themes/custom/ouatminimal_theme/ouatminimal.theme
  53. 95 0
      src/web/themes/custom/ouatminimal_theme/templates/form/form-element.html.twig

+ 20 - 13
src/config/sync/core.entity_form_display.node.concernement.default.yml

@@ -3,7 +3,8 @@ langcode: fr
 status: true
 dependencies:
   config:
-    - field.field.node.concernement.body
+    - field.field.node.concernement.field_caillou
+    - field.field.node.concernement.field_description
     - field.field.node.concernement.field_entite
     - field.field.node.concernement.field_recit
     - node.type.concernement
@@ -11,7 +12,6 @@ dependencies:
     - field_group
     - file
     - paragraphs
-    - text
 third_party_settings:
   field_group:
     group_tabs:
@@ -33,7 +33,8 @@ third_party_settings:
     group_contenu:
       children:
         - title
-        - body
+        - field_caillou
+        - field_description
         - field_recit
       label: Contenu
       region: content
@@ -87,21 +88,27 @@ targetEntityType: node
 bundle: concernement
 mode: default
 content:
-  body:
-    type: text_textarea_with_summary
+  created:
+    type: datetime_timestamp
+    weight: 5
+    region: content
+    settings: {  }
+    third_party_settings: {  }
+  field_caillou:
+    type: string_textarea
     weight: 1
     region: content
     settings:
-      rows: 9
-      summary_rows: 3
+      rows: 5
       placeholder: ''
-      show_summary: false
     third_party_settings: {  }
-  created:
-    type: datetime_timestamp
-    weight: 5
+  field_description:
+    type: string_textarea
+    weight: 2
     region: content
-    settings: {  }
+    settings:
+      rows: 5
+      placeholder: ''
     third_party_settings: {  }
   field_entite:
     type: entity_reference_paragraphs
@@ -117,7 +124,7 @@ content:
     third_party_settings: {  }
   field_recit:
     type: file_generic
-    weight: 2
+    weight: 3
     region: content
     settings:
       progress_indicator: throbber

+ 43 - 175
src/config/sync/core.entity_form_display.node.entite.default.yml

@@ -3,88 +3,26 @@ langcode: fr
 status: true
 dependencies:
   config:
-    - field.field.node.entite.body
-    - field.field.node.entite.field_actions
-    - field.field.node.entite.field_audio
-    - field.field.node.entite.field_date
-    - field.field.node.entite.field_documents
-    - field.field.node.entite.field_images
-    - field.field.node.entite.field_liens
-    - field.field.node.entite.field_videos
-    - image.style.thumbnail
+    - field.field.node.entite.field_action
+    - field.field.node.entite.field_menace_maintien
+    - field.field.node.entite.field_sources
     - node.type.entite
   module:
-    - datetime
+    - advanced_text_formatter
     - field_group
-    - file
-    - image
-    - link
+    - maxlength
     - paragraphs
-    - text
-    - video_embed_field
 third_party_settings:
   field_group:
-    group_tabs:
-      children:
-        - group_texte
-        - group_actions
-        - group_media
-        - group_documents
-        - group_liens
-      label: Tabs
-      region: content
-      parent_name: ''
-      weight: 1
-      format_type: tabs
-      format_settings:
-        classes: ''
-        show_empty_fields: true
-        id: ''
-        direction: horizontal
-        width_breakpoint: 640
-    group_media:
-      children:
-        - field_images
-        - field_videos
-        - field_audio
-      label: Media
-      region: content
-      parent_name: group_tabs
-      weight: 12
-      format_type: tab
-      format_settings:
-        classes: ''
-        show_empty_fields: false
-        id: ''
-        formatter: closed
-        description: ''
-        required_fields: true
-    group_texte:
-      children:
-        - body
-      label: Texte
-      region: content
-      parent_name: group_tabs
-      weight: 10
-      format_type: tab
-      format_settings:
-        classes: ''
-        show_empty_fields: true
-        id: ''
-        formatter: open
-        description: ''
-        required_fields: true
     group_details:
       children:
-        - field_date
-        - langcode
         - uid
         - created
         - status
       label: Details
       region: content
       parent_name: ''
-      weight: 2
+      weight: 4
       format_type: details_sidebar
       format_settings:
         classes: ''
@@ -94,75 +32,48 @@ third_party_settings:
         description: ''
         required_fields: true
         weight: -100
-    group_documents:
-      children:
-        - field_documents
-      label: Documents
-      region: content
-      parent_name: group_tabs
-      weight: 13
-      format_type: tab
-      format_settings:
-        classes: ''
-        show_empty_fields: false
-        id: ''
-        formatter: closed
-        description: ''
-        required_fields: true
-    group_liens:
-      children:
-        - field_liens
-      label: Liens
-      region: content
-      parent_name: group_tabs
-      weight: 14
-      format_type: tab
-      format_settings:
-        classes: ''
-        show_empty_fields: false
-        id: ''
-        formatter: closed
-        description: ''
-        required_fields: true
-    group_actions:
-      children:
-        - field_actions
-      label: Actions
-      region: content
-      parent_name: group_tabs
-      weight: 11
-      format_type: tab
-      format_settings:
-        classes: ''
-        show_empty_fields: false
-        id: ''
-        formatter: closed
-        description: ''
-        required_fields: true
 id: node.entite.default
 targetEntityType: node
 bundle: entite
 mode: default
 content:
-  body:
-    type: text_textarea_with_summary
-    weight: 10
-    region: content
-    settings:
-      rows: 9
-      summary_rows: 3
-      placeholder: ''
-      show_summary: false
-    third_party_settings: {  }
   created:
     type: datetime_timestamp
     weight: 30
     region: content
     settings: {  }
     third_party_settings: {  }
-  field_actions:
+  field_action:
+    type: string_textarea
+    weight: 1
+    region: content
+    settings:
+      rows: 8
+      placeholder: ''
+    third_party_settings:
+      maxlength:
+        maxlength_js: null
+        maxlength_js_label: 'Contenu limité à @limit caractères, restant : <strong>@remaining</strong>'
+        maxlength_js_enforce: false
+      advanced_text_formatter:
+        show_token_tree: 0
+  field_menace_maintien:
+    type: string_textarea
+    weight: 2
+    region: content
+    settings:
+      rows: 8
+      placeholder: ''
+    third_party_settings:
+      maxlength:
+        maxlength_js: null
+        maxlength_js_label: 'Contenu limité à @limit caractères, restant : <strong>@remaining</strong>'
+        maxlength_js_enforce: false
+      advanced_text_formatter:
+        show_token_tree: 0
+  field_sources:
     type: paragraphs
-    weight: 4
+    weight: 3
     region: content
     settings:
       title: Paragraphe
@@ -178,55 +89,6 @@ content:
         collapse_edit_all: collapse_edit_all
         duplicate: duplicate
     third_party_settings: {  }
-  field_audio:
-    type: file_generic
-    weight: 13
-    region: content
-    settings:
-      progress_indicator: throbber
-    third_party_settings: {  }
-  field_date:
-    type: datetime_default
-    weight: 27
-    region: content
-    settings: {  }
-    third_party_settings: {  }
-  field_documents:
-    type: file_generic
-    weight: 13
-    region: content
-    settings:
-      progress_indicator: throbber
-    third_party_settings: {  }
-  field_images:
-    type: image_image
-    weight: 11
-    region: content
-    settings:
-      progress_indicator: throbber
-      preview_image_style: thumbnail
-    third_party_settings: {  }
-  field_liens:
-    type: link_default
-    weight: 26
-    region: content
-    settings:
-      placeholder_url: ''
-      placeholder_title: ''
-    third_party_settings: {  }
-  field_videos:
-    type: video_embed_field_textfield
-    weight: 12
-    region: content
-    settings: {  }
-    third_party_settings: {  }
-  langcode:
-    type: language_select
-    weight: 28
-    region: content
-    settings:
-      include_locked: true
-    third_party_settings: {  }
   status:
     type: boolean_checkbox
     weight: 31
@@ -241,7 +103,12 @@ content:
     settings:
       size: 60
       placeholder: ''
-    third_party_settings: {  }
+    third_party_settings:
+      maxlength:
+        maxlength_js: null
+        maxlength_js_label: 'Contenu limité à @limit caractères, restant : <strong>@remaining</strong>'
+      advanced_text_formatter:
+        show_token_tree: 0
   uid:
     type: entity_reference_autocomplete
     weight: 29
@@ -253,6 +120,7 @@ content:
       placeholder: ''
     third_party_settings: {  }
 hidden:
+  langcode: true
   path: true
   promote: true
   sticky: true

+ 0 - 252
src/config/sync/core.entity_form_display.paragraph.action.default.yml

@@ -1,252 +0,0 @@
-uuid: b0f00d34-caf3-482a-93ce-5af77683e089
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.field.paragraph.action.field_audio
-    - field.field.paragraph.action.field_date
-    - field.field.paragraph.action.field_description
-    - field.field.paragraph.action.field_documents
-    - field.field.paragraph.action.field_images
-    - field.field.paragraph.action.field_liens
-    - field.field.paragraph.action.field_menace_maintien
-    - field.field.paragraph.action.field_sources
-    - field.field.paragraph.action.field_videos
-    - image.style.thumbnail
-    - paragraphs.paragraphs_type.action
-  module:
-    - datetime
-    - field_group
-    - file
-    - image
-    - link
-    - paragraphs
-    - text
-    - video_embed_field
-third_party_settings:
-  field_group:
-    group_tabs:
-      children:
-        - group_texte
-        - group_sources
-        - group_media
-        - group_videos
-        - group_audio
-        - group_documents
-        - group_liens
-      label: Tabs
-      region: content
-      parent_name: ''
-      weight: 0
-      format_type: tabs
-      format_settings:
-        classes: ''
-        show_empty_fields: false
-        id: ''
-        direction: horizontal
-        width_breakpoint: 640
-    group_texte:
-      children:
-        - field_date
-        - field_menace_maintien
-        - field_description
-      label: Texte
-      region: content
-      parent_name: group_tabs
-      weight: 20
-      format_type: tab
-      format_settings:
-        classes: ''
-        show_empty_fields: false
-        id: ''
-        formatter: open
-        description: ''
-        required_fields: true
-    group_media:
-      children:
-        - field_images
-      label: Images
-      region: content
-      parent_name: group_tabs
-      weight: 22
-      format_type: tab
-      format_settings:
-        classes: ''
-        show_empty_fields: false
-        id: ''
-        formatter: closed
-        description: ''
-        required_fields: true
-    group_liens:
-      children:
-        - field_liens
-      label: Liens
-      region: content
-      parent_name: group_tabs
-      weight: 26
-      format_type: tab
-      format_settings:
-        classes: ''
-        show_empty_fields: false
-        id: ''
-        formatter: closed
-        description: ''
-        required_fields: true
-    group_details:
-      children: {  }
-      label: Details
-      region: hidden
-      parent_name: ''
-      weight: 1
-      format_type: details
-      format_settings:
-        classes: ''
-        show_empty_fields: false
-        id: ''
-        open: false
-        description: ''
-        required_fields: true
-    group_documents:
-      children:
-        - field_documents
-      label: Documents
-      region: content
-      parent_name: group_tabs
-      weight: 25
-      format_type: tab
-      format_settings:
-        classes: ''
-        show_empty_fields: false
-        id: ''
-        formatter: closed
-        description: ''
-        required_fields: true
-    group_videos:
-      children:
-        - field_videos
-      label: Videos
-      region: content
-      parent_name: group_tabs
-      weight: 23
-      format_type: tab
-      format_settings:
-        classes: ''
-        show_empty_fields: false
-        id: ''
-        formatter: closed
-        description: ''
-        required_fields: true
-    group_audio:
-      children:
-        - field_audio
-      label: Audio
-      region: content
-      parent_name: group_tabs
-      weight: 24
-      format_type: tab
-      format_settings:
-        classes: ''
-        show_empty_fields: false
-        id: ''
-        formatter: closed
-        description: ''
-        required_fields: true
-    group_sources:
-      children:
-        - field_sources
-      label: Sources
-      region: content
-      parent_name: group_tabs
-      weight: 21
-      format_type: tab
-      format_settings:
-        classes: ''
-        show_empty_fields: false
-        id: ''
-        formatter: closed
-        description: ''
-        required_fields: true
-id: paragraph.action.default
-targetEntityType: paragraph
-bundle: action
-mode: default
-content:
-  field_audio:
-    type: file_generic
-    weight: 26
-    region: content
-    settings:
-      progress_indicator: throbber
-    third_party_settings: {  }
-  field_date:
-    type: datetime_default
-    weight: 30
-    region: content
-    settings: {  }
-    third_party_settings: {  }
-  field_description:
-    type: text_textarea_with_summary
-    weight: 32
-    region: content
-    settings:
-      rows: 9
-      summary_rows: 3
-      placeholder: ''
-      show_summary: false
-    third_party_settings: {  }
-  field_documents:
-    type: file_generic
-    weight: 27
-    region: content
-    settings:
-      progress_indicator: throbber
-    third_party_settings: {  }
-  field_images:
-    type: image_image
-    weight: 24
-    region: content
-    settings:
-      progress_indicator: throbber
-      preview_image_style: thumbnail
-    third_party_settings: {  }
-  field_liens:
-    type: link_default
-    weight: 28
-    region: content
-    settings:
-      placeholder_url: ''
-      placeholder_title: ''
-    third_party_settings: {  }
-  field_menace_maintien:
-    type: options_select
-    weight: 31
-    region: content
-    settings: {  }
-    third_party_settings: {  }
-  field_sources:
-    type: paragraphs
-    weight: 29
-    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: ''
-      features:
-        collapse_edit_all: collapse_edit_all
-        duplicate: duplicate
-    third_party_settings: {  }
-  field_videos:
-    type: video_embed_field_textfield
-    weight: 25
-    region: content
-    settings: {  }
-    third_party_settings: {  }
-hidden:
-  created: true
-  status: true

+ 4 - 4
src/config/sync/core.entity_form_display.paragraph.entite_concernement.default.yml

@@ -17,13 +17,13 @@ mode: default
 content:
   field_actuel_future:
     type: options_buttons
-    weight: 3
+    weight: 0
     region: content
     settings: {  }
     third_party_settings: {  }
   field_entite:
     type: inline_entity_form_complex
-    weight: 0
+    weight: 3
     region: content
     settings:
       form_mode: default
@@ -40,14 +40,14 @@ content:
     third_party_settings: {  }
   field_menace_maintien_degres:
     type: number
-    weight: 5
+    weight: 1
     region: content
     settings:
       placeholder: ''
     third_party_settings: {  }
   field_prise:
     type: number
-    weight: 4
+    weight: 2
     region: content
     settings:
       placeholder: ''

+ 11 - 6
src/config/sync/core.entity_form_display.paragraph.source.default.yml

@@ -13,12 +13,13 @@ dependencies:
     - image.style.thumbnail
     - paragraphs.paragraphs_type.source
   module:
+    - advanced_text_formatter
     - datetime
     - field_group
     - file
     - image
     - link
-    - text
+    - maxlength
     - video_embed_field
 third_party_settings:
   field_group:
@@ -165,15 +166,19 @@ content:
     settings: {  }
     third_party_settings: {  }
   field_description:
-    type: text_textarea_with_summary
+    type: string_textarea
     weight: 30
     region: content
     settings:
-      rows: 9
-      summary_rows: 3
+      rows: 8
       placeholder: ''
-      show_summary: false
-    third_party_settings: {  }
+    third_party_settings:
+      maxlength:
+        maxlength_js: null
+        maxlength_js_label: 'Contenu limité à @limit caractères, restant : <strong>@remaining</strong>'
+        maxlength_js_enforce: false
+      advanced_text_formatter:
+        show_token_tree: 0
   field_documents:
     type: file_generic
     weight: 27

+ 13 - 6
src/config/sync/core.entity_view_display.node.concernement.default.yml

@@ -3,26 +3,33 @@ langcode: fr
 status: true
 dependencies:
   config:
-    - field.field.node.concernement.body
+    - field.field.node.concernement.field_caillou
+    - field.field.node.concernement.field_description
     - field.field.node.concernement.field_entite
     - field.field.node.concernement.field_recit
     - node.type.concernement
   module:
     - entity_reference_revisions
     - file
-    - text
     - user
 id: node.concernement.default
 targetEntityType: node
 bundle: concernement
 mode: default
 content:
-  body:
-    type: text_default
-    label: hidden
+  field_caillou:
+    type: basic_string
+    label: above
+    settings: {  }
+    third_party_settings: {  }
+    weight: 105
+    region: content
+  field_description:
+    type: basic_string
+    label: above
     settings: {  }
     third_party_settings: {  }
-    weight: 101
+    weight: 104
     region: content
   field_entite:
     type: entity_reference_revisions_entity_view

+ 4 - 10
src/config/sync/core.entity_view_display.node.concernement.teaser.yml

@@ -4,32 +4,26 @@ status: true
 dependencies:
   config:
     - core.entity_view_mode.node.teaser
-    - field.field.node.concernement.body
+    - field.field.node.concernement.field_caillou
+    - field.field.node.concernement.field_description
     - field.field.node.concernement.field_entite
     - field.field.node.concernement.field_recit
     - node.type.concernement
   module:
-    - text
     - user
 id: node.concernement.teaser
 targetEntityType: node
 bundle: concernement
 mode: teaser
 content:
-  body:
-    type: text_summary_or_trimmed
-    label: hidden
-    settings:
-      trim_length: 600
-    third_party_settings: {  }
-    weight: 101
-    region: content
   links:
     settings: {  }
     third_party_settings: {  }
     weight: 100
     region: content
 hidden:
+  field_caillou: true
+  field_description: true
   field_entite: true
   field_recit: true
   langcode: true

+ 13 - 76
src/config/sync/core.entity_view_display.node.entite.default.yml

@@ -3,101 +3,38 @@ langcode: fr
 status: true
 dependencies:
   config:
-    - field.field.node.entite.body
-    - field.field.node.entite.field_actions
-    - field.field.node.entite.field_audio
-    - field.field.node.entite.field_date
-    - field.field.node.entite.field_documents
-    - field.field.node.entite.field_images
-    - field.field.node.entite.field_liens
-    - field.field.node.entite.field_videos
+    - field.field.node.entite.field_action
+    - field.field.node.entite.field_menace_maintien
+    - field.field.node.entite.field_sources
     - node.type.entite
   module:
-    - datetime
     - entity_reference_revisions
-    - file
-    - image
-    - link
-    - text
     - user
-    - video_embed_field
 id: node.entite.default
 targetEntityType: node
 bundle: entite
 mode: default
 content:
-  body:
-    type: text_default
-    label: hidden
+  field_action:
+    type: basic_string
+    label: above
     settings: {  }
     third_party_settings: {  }
     weight: 101
     region: content
-  field_actions:
-    type: entity_reference_revisions_entity_view
-    label: above
-    settings:
-      view_mode: default
-      link: ''
-    third_party_settings: {  }
-    weight: 108
-    region: content
-  field_audio:
-    type: file_default
+  field_menace_maintien:
+    type: basic_string
     label: above
-    settings:
-      use_description_as_link_text: true
-    third_party_settings: {  }
-    weight: 107
-    region: content
-  field_date:
-    type: datetime_default
-    label: above
-    settings:
-      timezone_override: ''
-      format_type: medium
-    third_party_settings: {  }
-    weight: 106
-    region: content
-  field_documents:
-    type: file_default
-    label: above
-    settings:
-      use_description_as_link_text: true
-    third_party_settings: {  }
-    weight: 104
-    region: content
-  field_images:
-    type: image
-    label: above
-    settings:
-      image_link: ''
-      image_style: ''
-      image_loading:
-        attribute: lazy
+    settings: {  }
     third_party_settings: {  }
     weight: 102
     region: content
-  field_liens:
-    type: link
-    label: above
-    settings:
-      trim_length: 80
-      url_only: false
-      url_plain: false
-      rel: ''
-      target: ''
-    third_party_settings: {  }
-    weight: 105
-    region: content
-  field_videos:
-    type: video_embed_field_video
+  field_sources:
+    type: entity_reference_revisions_entity_view
     label: above
     settings:
-      autoplay: true
-      responsive: true
-      width: 854
-      height: 480
+      view_mode: default
+      link: ''
     third_party_settings: {  }
     weight: 103
     region: content

+ 6 - 24
src/config/sync/core.entity_view_display.node.entite.teaser.yml

@@ -4,43 +4,25 @@ status: true
 dependencies:
   config:
     - core.entity_view_mode.node.teaser
-    - field.field.node.entite.body
-    - field.field.node.entite.field_actions
-    - field.field.node.entite.field_audio
-    - field.field.node.entite.field_date
-    - field.field.node.entite.field_documents
-    - field.field.node.entite.field_images
-    - field.field.node.entite.field_liens
-    - field.field.node.entite.field_videos
+    - field.field.node.entite.field_action
+    - field.field.node.entite.field_menace_maintien
+    - field.field.node.entite.field_sources
     - node.type.entite
   module:
-    - text
     - user
 id: node.entite.teaser
 targetEntityType: node
 bundle: entite
 mode: teaser
 content:
-  body:
-    type: text_summary_or_trimmed
-    label: hidden
-    settings:
-      trim_length: 600
-    third_party_settings: {  }
-    weight: 101
-    region: content
   links:
     settings: {  }
     third_party_settings: {  }
     weight: 100
     region: content
 hidden:
-  field_actions: true
-  field_audio: true
-  field_date: true
-  field_documents: true
-  field_images: true
-  field_liens: true
-  field_videos: true
+  field_action: true
+  field_menace_maintien: true
+  field_sources: true
   langcode: true
   search_api_excerpt: true

+ 0 - 113
src/config/sync/core.entity_view_display.paragraph.action.default.yml

@@ -1,113 +0,0 @@
-uuid: 2262bb15-6d0f-4a6e-97f0-1d39f5812dbf
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.field.paragraph.action.field_audio
-    - field.field.paragraph.action.field_date
-    - field.field.paragraph.action.field_description
-    - field.field.paragraph.action.field_documents
-    - field.field.paragraph.action.field_images
-    - field.field.paragraph.action.field_liens
-    - field.field.paragraph.action.field_menace_maintien
-    - field.field.paragraph.action.field_sources
-    - field.field.paragraph.action.field_videos
-    - paragraphs.paragraphs_type.action
-  module:
-    - datetime
-    - entity_reference_revisions
-    - file
-    - image
-    - link
-    - options
-    - text
-    - video_embed_field
-id: paragraph.action.default
-targetEntityType: paragraph
-bundle: action
-mode: default
-content:
-  field_audio:
-    type: file_default
-    label: above
-    settings:
-      use_description_as_link_text: true
-    third_party_settings: {  }
-    weight: 4
-    region: content
-  field_date:
-    type: datetime_default
-    label: above
-    settings:
-      timezone_override: ''
-      format_type: medium
-    third_party_settings: {  }
-    weight: 8
-    region: content
-  field_description:
-    type: text_default
-    label: above
-    settings: {  }
-    third_party_settings: {  }
-    weight: 1
-    region: content
-  field_documents:
-    type: file_default
-    label: above
-    settings:
-      use_description_as_link_text: true
-    third_party_settings: {  }
-    weight: 5
-    region: content
-  field_images:
-    type: image
-    label: above
-    settings:
-      image_link: ''
-      image_style: ''
-      image_loading:
-        attribute: lazy
-    third_party_settings: {  }
-    weight: 3
-    region: content
-  field_liens:
-    type: link
-    label: above
-    settings:
-      trim_length: 80
-      url_only: false
-      url_plain: false
-      rel: ''
-      target: ''
-    third_party_settings: {  }
-    weight: 6
-    region: content
-  field_menace_maintien:
-    type: list_default
-    label: above
-    settings: {  }
-    third_party_settings: {  }
-    weight: 0
-    region: content
-  field_sources:
-    type: entity_reference_revisions_entity_view
-    label: above
-    settings:
-      view_mode: default
-      link: ''
-    third_party_settings: {  }
-    weight: 7
-    region: content
-  field_videos:
-    type: video_embed_field_video
-    label: above
-    settings:
-      autoplay: true
-      responsive: true
-      width: 854
-      height: 480
-    third_party_settings: {  }
-    weight: 2
-    region: content
-hidden:
-  search_api_excerpt: true

+ 2 - 3
src/config/sync/core.entity_view_display.paragraph.source.default.yml

@@ -16,7 +16,6 @@ dependencies:
     - file
     - image
     - link
-    - text
     - video_embed_field
 id: paragraph.source.default
 targetEntityType: paragraph
@@ -41,11 +40,11 @@ content:
     weight: 6
     region: content
   field_description:
-    type: text_default
+    type: basic_string
     label: above
     settings: {  }
     third_party_settings: {  }
-    weight: 0
+    weight: 7
     region: content
   field_documents:
     type: file_default

+ 0 - 23
src/config/sync/field.field.node.concernement.body.yml

@@ -1,23 +0,0 @@
-uuid: 1b1b21e9-cb2d-4c8f-8459-bea6e0063b66
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.node.body
-    - node.type.concernement
-  module:
-    - text
-id: node.concernement.body
-field_name: body
-entity_type: node
-bundle: concernement
-label: Description
-description: ''
-required: false
-translatable: true
-default_value: {  }
-default_value_callback: ''
-settings:
-  display_summary: true
-  required_summary: false
-field_type: text_with_summary

+ 19 - 0
src/config/sync/field.field.node.concernement.field_caillou.yml

@@ -0,0 +1,19 @@
+uuid: 79352b2b-dac6-4ae3-96cf-e3acf548ad36
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_caillou
+    - node.type.concernement
+id: node.concernement.field_caillou
+field_name: field_caillou
+entity_type: node
+bundle: concernement
+label: Caillou
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings: {  }
+field_type: string_long

+ 19 - 0
src/config/sync/field.field.node.concernement.field_description.yml

@@ -0,0 +1,19 @@
+uuid: 535ce9fa-7e1c-42b2-8b1a-10dc104e9603
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_description
+    - node.type.concernement
+id: node.concernement.field_description
+field_name: field_description
+entity_type: node
+bundle: concernement
+label: Description
+description: ''
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings: {  }
+field_type: string_long

+ 0 - 23
src/config/sync/field.field.node.entite.body.yml

@@ -1,23 +0,0 @@
-uuid: 57a8685d-4fbd-4bcc-a882-39a3994ec840
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.node.body
-    - node.type.entite
-  module:
-    - text
-id: node.entite.body
-field_name: body
-entity_type: node
-bundle: entite
-label: Descritpion
-description: ''
-required: false
-translatable: true
-default_value: {  }
-default_value_callback: ''
-settings:
-  display_summary: true
-  required_summary: false
-field_type: text_with_summary

+ 19 - 0
src/config/sync/field.field.node.entite.field_action.yml

@@ -0,0 +1,19 @@
+uuid: a52c2a49-fdac-49b0-9b65-68a2ebd4a5af
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_action
+    - node.type.entite
+id: node.entite.field_action
+field_name: field_action
+entity_type: node
+bundle: entite
+label: Action
+description: 'Pouvez-vous décrire l''action de l''entité ?'
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings: {  }
+field_type: string_long

+ 0 - 34
src/config/sync/field.field.node.entite.field_actions.yml

@@ -1,34 +0,0 @@
-uuid: 45d59d2a-bf49-4e19-ae5c-43fa5edcf22b
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.node.field_actions
-    - node.type.entite
-    - paragraphs.paragraphs_type.action
-  module:
-    - entity_reference_revisions
-id: node.entite.field_actions
-field_name: field_actions
-entity_type: node
-bundle: entite
-label: Actions
-description: ''
-required: false
-translatable: false
-default_value: {  }
-default_value_callback: ''
-settings:
-  handler: 'default:paragraph'
-  handler_settings:
-    target_bundles:
-      action: action
-    negate: 0
-    target_bundles_drag_drop:
-      action:
-        weight: 3
-        enabled: true
-      entite_concernement:
-        weight: 4
-        enabled: false
-field_type: entity_reference_revisions

+ 0 - 27
src/config/sync/field.field.node.entite.field_audio.yml

@@ -1,27 +0,0 @@
-uuid: 9c86a037-8fcb-4f89-a6bb-97d8f7944a62
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.node.field_audio
-    - node.type.entite
-  module:
-    - file
-id: node.entite.field_audio
-field_name: field_audio
-entity_type: node
-bundle: entite
-label: Audio
-description: ''
-required: false
-translatable: false
-default_value: {  }
-default_value_callback: ''
-settings:
-  handler: 'default:file'
-  handler_settings: {  }
-  file_directory: '[date:custom:Y]-[date:custom:m]'
-  file_extensions: 'ogg mp3 mp4 oga wav flac'
-  max_filesize: ''
-  description_field: true
-field_type: file

+ 0 - 21
src/config/sync/field.field.node.entite.field_date.yml

@@ -1,21 +0,0 @@
-uuid: cf15dea4-2310-4aa0-9463-473ab53ba393
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.node.field_date
-    - node.type.entite
-  module:
-    - datetime
-id: node.entite.field_date
-field_name: field_date
-entity_type: node
-bundle: entite
-label: Date
-description: ''
-required: false
-translatable: false
-default_value: {  }
-default_value_callback: ''
-settings: {  }
-field_type: datetime

+ 0 - 27
src/config/sync/field.field.node.entite.field_documents.yml

@@ -1,27 +0,0 @@
-uuid: 7b8ab8d4-8b0c-4e7d-80f2-29804863eef7
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.node.field_documents
-    - node.type.entite
-  module:
-    - file
-id: node.entite.field_documents
-field_name: field_documents
-entity_type: node
-bundle: entite
-label: Documents
-description: ''
-required: false
-translatable: false
-default_value: {  }
-default_value_callback: ''
-settings:
-  handler: 'default:file'
-  handler_settings: {  }
-  file_directory: '[date:custom:Y]-[date:custom:m]'
-  file_extensions: 'txt pdf doc docx obs png jpg svg'
-  max_filesize: ''
-  description_field: true
-field_type: file

+ 0 - 38
src/config/sync/field.field.node.entite.field_images.yml

@@ -1,38 +0,0 @@
-uuid: 38c6bdef-6412-4bcd-87f5-0d3c5554baef
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.node.field_images
-    - node.type.entite
-  module:
-    - image
-id: node.entite.field_images
-field_name: field_images
-entity_type: node
-bundle: entite
-label: Images
-description: ''
-required: false
-translatable: false
-default_value: {  }
-default_value_callback: ''
-settings:
-  handler: 'default:file'
-  handler_settings: {  }
-  file_directory: '[date:custom:Y]-[date:custom:m]'
-  file_extensions: 'png gif jpg jpeg'
-  max_filesize: ''
-  max_resolution: ''
-  min_resolution: ''
-  alt_field: true
-  alt_field_required: false
-  title_field: true
-  title_field_required: false
-  default_image:
-    uuid: ''
-    alt: ''
-    title: ''
-    width: null
-    height: null
-field_type: image

+ 0 - 23
src/config/sync/field.field.node.entite.field_liens.yml

@@ -1,23 +0,0 @@
-uuid: bfb6a38e-4497-490d-8bb0-ce895c2e95b5
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.node.field_liens
-    - node.type.entite
-  module:
-    - link
-id: node.entite.field_liens
-field_name: field_liens
-entity_type: node
-bundle: entite
-label: Liens
-description: ''
-required: false
-translatable: false
-default_value: {  }
-default_value_callback: ''
-settings:
-  title: 1
-  link_type: 16
-field_type: link

+ 19 - 0
src/config/sync/field.field.node.entite.field_menace_maintien.yml

@@ -0,0 +1,19 @@
+uuid: 67cb25dd-4bc7-4075-8710-f7448f7b6c47
+langcode: fr
+status: true
+dependencies:
+  config:
+    - field.storage.node.field_menace_maintien
+    - node.type.entite
+id: node.entite.field_menace_maintien
+field_name: field_menace_maintien
+entity_type: node
+bundle: entite
+label: Menace/Maintien
+description: 'Pouvez-vous décrire en quoi l''action menace/maintient votre concernement ?'
+required: false
+translatable: false
+default_value: {  }
+default_value_callback: ''
+settings: {  }
+field_type: string_long

+ 7 - 7
src/config/sync/field.field.paragraph.action.field_sources.yml → src/config/sync/field.field.node.entite.field_sources.yml

@@ -1,19 +1,19 @@
-uuid: cc099b85-13f1-4532-a60c-574c2898323d
+uuid: a1c14c19-123b-4571-a680-c0cecb11013e
 langcode: fr
 status: true
 dependencies:
   config:
-    - field.storage.paragraph.field_sources
-    - paragraphs.paragraphs_type.action
+    - field.storage.node.field_sources
+    - node.type.entite
     - paragraphs.paragraphs_type.source
   module:
     - entity_reference_revisions
-id: paragraph.action.field_sources
+id: node.entite.field_sources
 field_name: field_sources
-entity_type: paragraph
-bundle: action
+entity_type: node
+bundle: entite
 label: Sources
-description: ''
+description: 'Comment avez-vous eu connaissance de cette menace / ce maintient ?'
 required: false
 translatable: false
 default_value: {  }

+ 0 - 25
src/config/sync/field.field.node.entite.field_videos.yml

@@ -1,25 +0,0 @@
-uuid: a88f7ddd-3a1c-4208-b7ca-accba574a410
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.node.field_videos
-    - node.type.entite
-  module:
-    - video_embed_field
-id: node.entite.field_videos
-field_name: field_videos
-entity_type: node
-bundle: entite
-label: Vidéos
-description: ''
-required: false
-translatable: false
-default_value: {  }
-default_value_callback: ''
-settings:
-  allowed_providers:
-    vimeo: vimeo
-    youtube: youtube
-    youtube_playlist: '0'
-field_type: video_embed_field

+ 0 - 27
src/config/sync/field.field.paragraph.action.field_audio.yml

@@ -1,27 +0,0 @@
-uuid: 2f5a684f-65f5-4836-800b-4f5288336eea
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.paragraph.field_audio
-    - paragraphs.paragraphs_type.action
-  module:
-    - file
-id: paragraph.action.field_audio
-field_name: field_audio
-entity_type: paragraph
-bundle: action
-label: Audio
-description: ''
-required: false
-translatable: false
-default_value: {  }
-default_value_callback: ''
-settings:
-  handler: 'default:file'
-  handler_settings: {  }
-  file_directory: '[date:custom:Y]-[date:custom:m]'
-  file_extensions: ogg
-  max_filesize: ''
-  description_field: true
-field_type: file

+ 0 - 24
src/config/sync/field.field.paragraph.action.field_date.yml

@@ -1,24 +0,0 @@
-uuid: 3730b1fa-dadc-424e-985a-fb57a82ca9fc
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.paragraph.field_date
-    - paragraphs.paragraphs_type.action
-  module:
-    - datetime
-id: paragraph.action.field_date
-field_name: field_date
-entity_type: paragraph
-bundle: action
-label: Date
-description: ''
-required: false
-translatable: false
-default_value:
-  -
-    default_date_type: now
-    default_date: now
-default_value_callback: ''
-settings: {  }
-field_type: datetime

+ 0 - 23
src/config/sync/field.field.paragraph.action.field_description.yml

@@ -1,23 +0,0 @@
-uuid: 05a341db-1634-4958-b163-f2340eada7e3
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.paragraph.field_description
-    - paragraphs.paragraphs_type.action
-  module:
-    - text
-id: paragraph.action.field_description
-field_name: field_description
-entity_type: paragraph
-bundle: action
-label: Description
-description: ''
-required: false
-translatable: false
-default_value: {  }
-default_value_callback: ''
-settings:
-  display_summary: true
-  required_summary: false
-field_type: text_with_summary

+ 0 - 27
src/config/sync/field.field.paragraph.action.field_documents.yml

@@ -1,27 +0,0 @@
-uuid: 2cdabaf8-b222-420c-9368-f6b499be9723
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.paragraph.field_documents
-    - paragraphs.paragraphs_type.action
-  module:
-    - file
-id: paragraph.action.field_documents
-field_name: field_documents
-entity_type: paragraph
-bundle: action
-label: Documents
-description: ''
-required: false
-translatable: false
-default_value: {  }
-default_value_callback: ''
-settings:
-  handler: 'default:file'
-  handler_settings: {  }
-  file_directory: '[date:custom:Y]-[date:custom:m]'
-  file_extensions: 'txt pdf doc docx obs xls'
-  max_filesize: ''
-  description_field: true
-field_type: file

+ 0 - 38
src/config/sync/field.field.paragraph.action.field_images.yml

@@ -1,38 +0,0 @@
-uuid: 682d66f1-8016-40a7-a966-454674db90dd
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.paragraph.field_images
-    - paragraphs.paragraphs_type.action
-  module:
-    - image
-id: paragraph.action.field_images
-field_name: field_images
-entity_type: paragraph
-bundle: action
-label: Images
-description: ''
-required: false
-translatable: false
-default_value: {  }
-default_value_callback: ''
-settings:
-  handler: 'default:file'
-  handler_settings: {  }
-  file_directory: '[date:custom:Y]-[date:custom:m]'
-  file_extensions: 'png gif jpg jpeg'
-  max_filesize: ''
-  max_resolution: ''
-  min_resolution: ''
-  alt_field: true
-  alt_field_required: false
-  title_field: true
-  title_field_required: false
-  default_image:
-    uuid: ''
-    alt: ''
-    title: ''
-    width: null
-    height: null
-field_type: image

+ 0 - 23
src/config/sync/field.field.paragraph.action.field_liens.yml

@@ -1,23 +0,0 @@
-uuid: bfff8927-93c3-4c4d-9ccd-80ac1068f870
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.paragraph.field_liens
-    - paragraphs.paragraphs_type.action
-  module:
-    - link
-id: paragraph.action.field_liens
-field_name: field_liens
-entity_type: paragraph
-bundle: action
-label: Liens
-description: ''
-required: false
-translatable: false
-default_value: {  }
-default_value_callback: ''
-settings:
-  title: 1
-  link_type: 16
-field_type: link

+ 0 - 23
src/config/sync/field.field.paragraph.action.field_menace_maintien.yml

@@ -1,23 +0,0 @@
-uuid: b9755278-a9ea-47b3-9b6a-74898c26bf72
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.paragraph.field_menace_maintien
-    - paragraphs.paragraphs_type.action
-  module:
-    - options
-id: paragraph.action.field_menace_maintien
-field_name: field_menace_maintien
-entity_type: paragraph
-bundle: action
-label: menace/maintien
-description: ''
-required: false
-translatable: false
-default_value:
-  -
-    value: 0
-default_value_callback: ''
-settings: {  }
-field_type: list_integer

+ 0 - 25
src/config/sync/field.field.paragraph.action.field_videos.yml

@@ -1,25 +0,0 @@
-uuid: e38feb3b-324c-425a-8036-2a0d3deb5a94
-langcode: fr
-status: true
-dependencies:
-  config:
-    - field.storage.paragraph.field_videos
-    - paragraphs.paragraphs_type.action
-  module:
-    - video_embed_field
-id: paragraph.action.field_videos
-field_name: field_videos
-entity_type: paragraph
-bundle: action
-label: Videos
-description: ''
-required: false
-translatable: false
-default_value: {  }
-default_value_callback: ''
-settings:
-  allowed_providers:
-    vimeo: vimeo
-    youtube: youtube
-    youtube_playlist: '0'
-field_type: video_embed_field

+ 1 - 1
src/config/sync/field.field.paragraph.entite_concernement.field_menace_maintien_degres.yml

@@ -10,7 +10,7 @@ field_name: field_menace_maintien_degres
 entity_type: paragraph
 bundle: entite_concernement
 label: 'Menace - Maintien'
-description: 'between -90 to 90'
+description: 'de -90 (menace) à 90 (maintient)'
 required: false
 translatable: false
 default_value:

+ 1 - 1
src/config/sync/field.field.paragraph.entite_concernement.field_prise.yml

@@ -10,7 +10,7 @@ field_name: field_prise
 entity_type: paragraph
 bundle: entite_concernement
 label: Prise
-description: 'between 0 to 100'
+description: 'de 0 (pas de prise) à 100 (prise)'
 required: false
 translatable: false
 default_value:

+ 3 - 7
src/config/sync/field.field.paragraph.source.field_description.yml

@@ -1,12 +1,10 @@
-uuid: b32333da-0035-4dec-9c98-b16d419fcbee
+uuid: d2ee1d58-0296-4f56-961f-6dac57ceb173
 langcode: fr
 status: true
 dependencies:
   config:
     - field.storage.paragraph.field_description
     - paragraphs.paragraphs_type.source
-  module:
-    - text
 id: paragraph.source.field_description
 field_name: field_description
 entity_type: paragraph
@@ -17,7 +15,5 @@ required: false
 translatable: false
 default_value: {  }
 default_value_callback: ''
-settings:
-  display_summary: true
-  required_summary: false
-field_type: text_with_summary
+settings: {  }
+field_type: string_long

+ 6 - 7
src/config/sync/field.storage.node.field_date.yml → src/config/sync/field.storage.node.field_action.yml

@@ -1,17 +1,16 @@
-uuid: 54b2c708-dead-4496-8463-f40b520dfc07
+uuid: a22a5c20-d55e-4f86-a07f-18d7bb291d37
 langcode: fr
 status: true
 dependencies:
   module:
-    - datetime
     - node
-id: node.field_date
-field_name: field_date
+id: node.field_action
+field_name: field_action
 entity_type: node
-type: datetime
+type: string_long
 settings:
-  datetime_type: date
-module: datetime
+  case_sensitive: false
+module: core
 locked: false
 cardinality: 1
 translatable: true

+ 0 - 23
src/config/sync/field.storage.node.field_audio.yml

@@ -1,23 +0,0 @@
-uuid: 1d4a4a9f-2384-4378-9b42-98c8b6713270
-langcode: fr
-status: true
-dependencies:
-  module:
-    - file
-    - node
-id: node.field_audio
-field_name: field_audio
-entity_type: node
-type: file
-settings:
-  target_type: file
-  display_field: true
-  display_default: true
-  uri_scheme: public
-module: file
-locked: false
-cardinality: -1
-translatable: true
-indexes: {  }
-persist_with_no_fields: false
-custom_storage: false

+ 8 - 8
src/config/sync/field.storage.node.field_liens.yml → src/config/sync/field.storage.node.field_caillou.yml

@@ -1,18 +1,18 @@
-uuid: 9c3df3fe-a34f-41a6-a9d3-d12c116ca711
+uuid: 5830caba-19ac-4d9b-93fb-e8529f978e58
 langcode: fr
 status: true
 dependencies:
   module:
-    - link
     - node
-id: node.field_liens
-field_name: field_liens
+id: node.field_caillou
+field_name: field_caillou
 entity_type: node
-type: link
-settings: {  }
-module: link
+type: string_long
+settings:
+  case_sensitive: false
+module: core
 locked: false
-cardinality: -1
+cardinality: 1
 translatable: true
 indexes: {  }
 persist_with_no_fields: false

+ 19 - 0
src/config/sync/field.storage.node.field_description.yml

@@ -0,0 +1,19 @@
+uuid: aab0fc38-c9cb-4314-bebc-37c15abbacb3
+langcode: fr
+status: true
+dependencies:
+  module:
+    - node
+id: node.field_description
+field_name: field_description
+entity_type: node
+type: string_long
+settings:
+  case_sensitive: false
+module: core
+locked: false
+cardinality: 1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 0 - 23
src/config/sync/field.storage.node.field_documents.yml

@@ -1,23 +0,0 @@
-uuid: 1b0edae4-f418-4d5b-a938-00c002fdef05
-langcode: fr
-status: true
-dependencies:
-  module:
-    - file
-    - node
-id: node.field_documents
-field_name: field_documents
-entity_type: node
-type: file
-settings:
-  target_type: file
-  display_field: true
-  display_default: true
-  uri_scheme: public
-module: file
-locked: false
-cardinality: -1
-translatable: true
-indexes: {  }
-persist_with_no_fields: false
-custom_storage: false

+ 0 - 30
src/config/sync/field.storage.node.field_images.yml

@@ -1,30 +0,0 @@
-uuid: edf360a4-9baa-417c-9125-fc47cf090b60
-langcode: fr
-status: true
-dependencies:
-  module:
-    - file
-    - image
-    - node
-id: node.field_images
-field_name: field_images
-entity_type: node
-type: image
-settings:
-  target_type: file
-  display_field: false
-  display_default: false
-  uri_scheme: public
-  default_image:
-    uuid: ''
-    alt: ''
-    title: ''
-    width: null
-    height: null
-module: image
-locked: false
-cardinality: -1
-translatable: true
-indexes: {  }
-persist_with_no_fields: false
-custom_storage: false

+ 19 - 0
src/config/sync/field.storage.node.field_menace_maintien.yml

@@ -0,0 +1,19 @@
+uuid: 50664864-fac0-44e4-9490-ae7dcd6b4584
+langcode: fr
+status: true
+dependencies:
+  module:
+    - node
+id: node.field_menace_maintien
+field_name: field_menace_maintien
+entity_type: node
+type: string_long
+settings:
+  case_sensitive: false
+module: core
+locked: false
+cardinality: 1
+translatable: true
+indexes: {  }
+persist_with_no_fields: false
+custom_storage: false

+ 3 - 3
src/config/sync/field.storage.node.field_actions.yml → src/config/sync/field.storage.node.field_sources.yml

@@ -1,4 +1,4 @@
-uuid: 0e8c45f8-cc07-4c05-8406-011b7900abef
+uuid: 3ff585e1-d856-441d-8cfc-8d0de6e169d8
 langcode: fr
 status: true
 dependencies:
@@ -6,8 +6,8 @@ dependencies:
     - entity_reference_revisions
     - node
     - paragraphs
-id: node.field_actions
-field_name: field_actions
+id: node.field_sources
+field_name: field_sources
 entity_type: node
 type: entity_reference_revisions
 settings:

+ 0 - 19
src/config/sync/field.storage.node.field_videos.yml

@@ -1,19 +0,0 @@
-uuid: b107231d-69e2-4908-aff1-9e398075ecb7
-langcode: fr
-status: true
-dependencies:
-  module:
-    - node
-    - video_embed_field
-id: node.field_videos
-field_name: field_videos
-entity_type: node
-type: video_embed_field
-settings: {  }
-module: video_embed_field
-locked: false
-cardinality: -1
-translatable: true
-indexes: {  }
-persist_with_no_fields: false
-custom_storage: false

+ 5 - 5
src/config/sync/field.storage.paragraph.field_description.yml

@@ -1,16 +1,16 @@
-uuid: 023c76cd-6e98-4390-a083-7d2b1dc03332
+uuid: 477f32ee-3fe7-4b49-8667-630569af1da7
 langcode: fr
 status: true
 dependencies:
   module:
     - paragraphs
-    - text
 id: paragraph.field_description
 field_name: field_description
 entity_type: paragraph
-type: text_with_summary
-settings: {  }
-module: text
+type: string_long
+settings:
+  case_sensitive: false
+module: core
 locked: false
 cardinality: 1
 translatable: true

+ 0 - 30
src/config/sync/field.storage.paragraph.field_menace_maintien.yml

@@ -1,30 +0,0 @@
-uuid: 456daee0-478e-426c-9bb4-cd8819ef99fd
-langcode: fr
-status: true
-dependencies:
-  module:
-    - options
-    - paragraphs
-id: paragraph.field_menace_maintien
-field_name: field_menace_maintien
-entity_type: paragraph
-type: list_integer
-settings:
-  allowed_values:
-    -
-      value: -1
-      label: menace
-    -
-      value: 0
-      label: neutre
-    -
-      value: 1
-      label: maintien
-  allowed_values_function: ''
-module: options
-locked: false
-cardinality: 1
-translatable: true
-indexes: {  }
-persist_with_no_fields: false
-custom_storage: false

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

@@ -1,20 +0,0 @@
-uuid: 7003d1b4-29e7-4200-9890-343b4bba3363
-langcode: fr
-status: true
-dependencies:
-  module:
-    - entity_reference_revisions
-    - paragraphs
-id: paragraph.field_sources
-field_name: field_sources
-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

+ 0 - 11
src/config/sync/paragraphs.paragraphs_type.action.yml

@@ -1,11 +0,0 @@
-uuid: 5d86035e-a6f0-4f99-ace7-50ef7d867140
-langcode: fr
-status: true
-dependencies: {  }
-id: action
-label: action
-icon_uuid: null
-icon_default: null
-description: 'entity''s action'
-save_empty: false
-behavior_plugins: {  }

+ 2 - 72
src/config/sync/views.view.admin_nodes.yml

@@ -1,15 +1,12 @@
 uuid: 7c5379ee-8471-4304-9679-4f901471a0f0
 langcode: fr
-status: true
+status: false
 dependencies:
   config:
-    - field.storage.node.field_images
-    - image.style.thumbnail
     - node.type.concernement
     - node.type.entite
   module:
     - content_lock
-    - image
     - node
     - user
     - views_bulk_operations
@@ -925,72 +922,6 @@ display:
               action_id: 'entity:unpublish_action:node'
               preconfiguration:
                 add_confirmation: false
-        field_images:
-          id: field_images
-          table: node__field_images
-          field: field_images
-          relationship: none
-          group_type: group
-          admin_label: ''
-          plugin_id: field
-          label: Images
-          exclude: false
-          alter:
-            alter_text: false
-            text: ''
-            make_link: false
-            path: ''
-            absolute: false
-            external: false
-            replace_spaces: false
-            path_case: none
-            trim_whitespace: false
-            alt: ''
-            rel: ''
-            link_class: ''
-            prefix: ''
-            suffix: ''
-            target: ''
-            nl2br: false
-            max_length: 0
-            word_boundary: true
-            ellipsis: true
-            more_link: false
-            more_link_text: ''
-            more_link_path: ''
-            strip_tags: false
-            trim: false
-            preserve_tags: ''
-            html: false
-          element_type: ''
-          element_class: ''
-          element_label_type: ''
-          element_label_class: ''
-          element_label_colon: true
-          element_wrapper_type: ''
-          element_wrapper_class: ''
-          element_default_classes: true
-          empty: ''
-          hide_empty: false
-          empty_zero: false
-          hide_alter_empty: true
-          click_sort_column: target_id
-          type: image
-          settings:
-            image_link: ''
-            image_style: thumbnail
-            image_loading:
-              attribute: lazy
-          group_column: ''
-          group_columns: {  }
-          group_rows: true
-          delta_limit: 1
-          delta_offset: 0
-          delta_reversed: false
-          delta_first_last: false
-          multi_type: separator
-          separator: ', '
-          field_api_classes: false
         title:
           id: title
           table: node_field_data
@@ -1564,5 +1495,4 @@ display:
         - url.query_args
         - 'user.node_grants:view'
         - user.permissions
-      tags:
-        - 'config:field.storage.node.field_images'
+      tags: {  }

+ 2 - 2
src/web/themes/custom/ouatminimal_theme/css/ouatminimal.css

@@ -254,11 +254,11 @@
   max-width: 100%;
 } */
 
-div.field--name-field-actuel-future.form-wrapper,
+/* div.field--name-field-actuel-future.form-wrapper,
 div.field--name-field-prise.form-wrapper,
 div.field--name-field-menace-maintien-degres.form-wrapper{
   display: none;
-}
+} */
 /* .field--name-field-actuel-future > fieldset legend{
   display:none;
 }

+ 7 - 0
src/web/themes/custom/ouatminimal_theme/ouatminimal.theme

@@ -108,4 +108,11 @@ function ouatminimal_preprocess_toolbar(&$variables) {
   unset($variables['tabs']['home']['link']['#children']);
   $uri = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'];
   $variables['tabs']['home']['link']['#url'] = Url::fromUri($uri);
+}
+
+function ouatminimal_preprocess_form_element(&$variables) {
+  // $element = &$variables['element'];
+  if(isset($variables['description_display'])){
+    $variables['description_display']="before";
+  }
 }

+ 95 - 0
src/web/themes/custom/ouatminimal_theme/templates/form/form-element.html.twig

@@ -0,0 +1,95 @@
+{#
+/**
+ * @file
+ * Theme override for a form element.
+ *
+ * Available variables:
+ * - attributes: HTML attributes for the containing element.
+ * - errors: (optional) Any errors for this form element, may not be set.
+ * - prefix: (optional) The form element prefix, may not be set.
+ * - suffix: (optional) The form element suffix, may not be set.
+ * - required: The required marker, or empty if the associated form element is
+ *   not required.
+ * - type: The type of the element.
+ * - name: The name of the element.
+ * - label: A rendered label element.
+ * - label_display: Label display setting. It can have these values:
+ *   - before: The label is output before the element. This is the default.
+ *     The label includes the #title and the required marker, if #required.
+ *   - after: The label is output after the element. For example, this is used
+ *     for radio and checkbox #type elements. If the #title is empty but the
+ *     field is #required, the label will contain only the required marker.
+ *   - invisible: Labels are critical for screen readers to enable them to
+ *     properly navigate through forms but can be visually distracting. This
+ *     property hides the label for everyone except screen readers.
+ *   - attribute: Set the title attribute on the element to create a tooltip but
+ *     output no label element. This is supported only for checkboxes and radios
+ *     in \Drupal\Core\Render\Element\CompositeFormElementTrait::preRenderCompositeFormElement().
+ *     It is used where a visual label is not needed, such as a table of
+ *     checkboxes where the row and column provide the context. The tooltip will
+ *     include the title and required marker.
+ * - description: (optional) A list of description properties containing:
+ *    - content: A description of the form element, may not be set.
+ *    - attributes: (optional) A list of HTML attributes to apply to the
+ *      description content wrapper. Will only be set when description is set.
+ * - description_display: Description display setting. It can have these values:
+ *   - before: The description is output before the element.
+ *   - after: The description is output after the element. This is the default
+ *     value.
+ *   - invisible: The description is output after the element, hidden visually
+ *     but available to screen readers.
+ * - disabled: True if the element is disabled.
+ * - title_display: Title display setting.
+ *
+ * @see template_preprocess_form_element()
+ */
+#}
+{%
+  set classes = [
+    'js-form-item',
+    'form-item',
+    'js-form-type-' ~ type|clean_class,
+    'form-type-' ~ type|clean_class,
+    'js-form-item-' ~ name|clean_class,
+    'form-item-' ~ name|clean_class,
+    title_display not in ['after', 'before'] ? 'form-no-label',
+    disabled == 'disabled' ? 'form-disabled',
+    errors ? 'form-item--error',
+  ]
+%}
+{%
+  set description_classes = [
+    'description',
+    description_display == 'invisible' ? 'visually-hidden',
+  ]
+%}
+<div{{ attributes.addClass(classes) }}>
+  {% if label_display in ['before', 'invisible'] %}
+    {{ label }}
+  {% endif %}
+  {% if prefix is not empty %}
+    <span class="field-prefix">{{ prefix }}</span>
+  {% endif %}
+  {% if description_display == 'before' and description.content %}
+    <div{{ description.attributes }}>
+      {{ description.content }}
+    </div>
+  {% endif %}
+  {{ children }}
+  {% if suffix is not empty %}
+    <span class="field-suffix">{{ suffix }}</span>
+  {% endif %}
+  {% if label_display == 'after' %}
+    {{ label }}
+  {% endif %}
+  {% if errors %}
+    <div class="form-item--error-message">
+      <strong>{{ errors }}</strong>
+    </div>
+  {% endif %}
+  {% if description_display in ['after', 'invisible'] and description.content %}
+    <div{{ description.attributes.addClass(description_classes) }}>
+      {{ description.content }}
+    </div>
+  {% endif %}
+</div>