소스 검색

doleancer form improved

bach 1 년 전
부모
커밋
9ef8d43286

+ 15 - 7
src/config/sync/core.entity_form_display.node.concernement.default.yml

@@ -120,7 +120,7 @@ third_party_settings:
       children:
       children:
         - field_doleancer
         - field_doleancer
       label: Doleancer
       label: Doleancer
-      region: hidden
+      region: content
       parent_name: group_tabs
       parent_name: group_tabs
       weight: 16
       weight: 16
       format_type: tab
       format_type: tab
@@ -171,28 +171,36 @@ content:
     settings:
     settings:
       title: Paragraphe
       title: Paragraphe
       title_plural: Paragraphs
       title_plural: Paragraphs
-      edit_mode: open
+      edit_mode: closed
       closed_mode: summary
       closed_mode: summary
-      autocollapse: none
+      autocollapse: all
       closed_mode_threshold: 0
       closed_mode_threshold: 0
       add_mode: dropdown
       add_mode: dropdown
       form_display_mode: default
       form_display_mode: default
-      default_paragraph_type: ''
+      default_paragraph_type: doleance
       features:
       features:
+        add_above: '0'
         collapse_edit_all: collapse_edit_all
         collapse_edit_all: collapse_edit_all
-        duplicate: duplicate
+        duplicate: '0'
     third_party_settings: {  }
     third_party_settings: {  }
   field_entite:
   field_entite:
-    type: entity_reference_paragraphs
+    type: paragraphs
     weight: 11
     weight: 11
     region: content
     region: content
     settings:
     settings:
       title: Paragraphe
       title: Paragraphe
       title_plural: Paragraphs
       title_plural: Paragraphs
       edit_mode: open
       edit_mode: open
+      closed_mode: summary
+      autocollapse: all
+      closed_mode_threshold: 0
       add_mode: dropdown
       add_mode: dropdown
       form_display_mode: default
       form_display_mode: default
-      default_paragraph_type: ''
+      default_paragraph_type: entite_concernement
+      features:
+        add_above: '0'
+        collapse_edit_all: collapse_edit_all
+        duplicate: '0'
     third_party_settings: {  }
     third_party_settings: {  }
   field_lieu:
   field_lieu:
     type: entity_reference_autocomplete
     type: entity_reference_autocomplete

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

@@ -77,16 +77,17 @@ content:
     settings:
     settings:
       title: Paragraphe
       title: Paragraphe
       title_plural: Paragraphs
       title_plural: Paragraphs
-      edit_mode: open
+      edit_mode: closed
       closed_mode: summary
       closed_mode: summary
       autocollapse: none
       autocollapse: none
       closed_mode_threshold: 0
       closed_mode_threshold: 0
       add_mode: dropdown
       add_mode: dropdown
       form_display_mode: default
       form_display_mode: default
-      default_paragraph_type: ''
+      default_paragraph_type: etape
       features:
       features:
+        add_above: '0'
         collapse_edit_all: collapse_edit_all
         collapse_edit_all: collapse_edit_all
-        duplicate: duplicate
+        duplicate: '0'
     third_party_settings: {  }
     third_party_settings: {  }
 hidden:
 hidden:
   created: true
   created: true

+ 10 - 2
src/config/sync/core.entity_form_display.paragraph.etape.default.yml

@@ -9,9 +9,11 @@ dependencies:
     - field.field.paragraph.etape.field_type
     - field.field.paragraph.etape.field_type
     - paragraphs.paragraphs_type.etape
     - paragraphs.paragraphs_type.etape
   module:
   module:
+    - advanced_text_formatter
     - datetime
     - datetime
     - field_group
     - field_group
     - file
     - file
+    - maxlength
     - text
     - text
 third_party_settings:
 third_party_settings:
   field_group:
   field_group:
@@ -78,9 +80,15 @@ content:
     weight: 4
     weight: 4
     region: content
     region: content
     settings:
     settings:
-      rows: 5
+      rows: 3
       placeholder: ''
       placeholder: ''
-    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:
   field_documents:
     type: file_generic
     type: file_generic
     weight: 3
     weight: 3