admin improvements

This commit is contained in:
Bachir Soussi Chiadmi 2023-03-27 17:10:36 +02:00
parent 30476585f6
commit 38fd8de8ee
30 changed files with 468 additions and 64 deletions

View File

@ -16,6 +16,7 @@
],
"require": {
"composer/installers": "^1.9",
"drupal/address": "^1",
"drupal/admin_toolbar_content": "^1.3",
"drupal/administerusersbyrole": "^3.3",
"drupal/amswap": "^3",

2
src/composer.lock generated
View File

@ -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": "1234977008c156a5217d6a92e17aa1df",
"content-hash": "258a1ceac9ef41f3e8a781aad24ec6e3",
"packages": [
{
"name": "alchemy/zippy",

View File

@ -6,6 +6,7 @@ dependencies:
- field.field.node.concernement.field_caillou
- field.field.node.concernement.field_description
- field.field.node.concernement.field_entite
- field.field.node.concernement.field_lieu
- field.field.node.concernement.field_recit
- node.type.concernement
module:
@ -21,6 +22,7 @@ third_party_settings:
- group_contenu
- group_entites
- group_recit
- group_ateliers
- status
- uid
- created
@ -82,6 +84,21 @@ third_party_settings:
formatter: closed
description: ''
required_fields: true
group_ateliers:
children:
- field_lieu
label: Ateliers
region: content
parent_name: group_tabs
weight: 15
format_type: tab
format_settings:
classes: ''
show_empty_fields: false
id: ''
formatter: closed
description: ''
required_fields: true
id: node.concernement.default
targetEntityType: node
bundle: concernement
@ -89,7 +106,7 @@ mode: default
content:
created:
type: datetime_timestamp
weight: 17
weight: 18
region: content
settings: { }
third_party_settings: { }
@ -121,6 +138,16 @@ content:
form_display_mode: default
default_paragraph_type: ''
third_party_settings: { }
field_lieu:
type: entity_reference_autocomplete
weight: 26
region: content
settings:
match_operator: CONTAINS
match_limit: 10
size: 60
placeholder: ''
third_party_settings: { }
field_recit:
type: file_generic
weight: 3
@ -130,7 +157,7 @@ content:
third_party_settings: { }
status:
type: boolean_checkbox
weight: 15
weight: 16
region: content
settings:
display_label: true
@ -150,7 +177,7 @@ content:
show_token_tree: 0
uid:
type: entity_reference_autocomplete
weight: 16
weight: 17
region: content
settings:
match_operator: CONTAINS

View File

@ -13,13 +13,12 @@ dependencies:
- image.style.thumbnail
- paragraphs.paragraphs_type.source
module:
- advanced_text_formatter
- datetime
- field_group
- file
- image
- link
- maxlength
- text
- video_embed_field
third_party_settings:
field_group:
@ -46,7 +45,7 @@ third_party_settings:
label: 'Experience vécue'
region: hidden
parent_name: ''
weight: 3
weight: 5
format_type: tab
format_settings:
classes: ''
@ -163,19 +162,13 @@ content:
settings: { }
third_party_settings: { }
field_description:
type: string_textarea
type: text_textarea
weight: 1
region: content
settings:
rows: 8
rows: 5
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
third_party_settings: { }
field_documents:
type: file_generic
weight: 27

View File

@ -0,0 +1,47 @@
uuid: 807a1faf-6af6-497f-bef6-79a226dead1c
langcode: fr
status: true
dependencies:
config:
- field.field.taxonomy_term.lieu.field_adresse
- taxonomy.vocabulary.lieu
module:
- address
- text
id: taxonomy_term.lieu.default
targetEntityType: taxonomy_term
bundle: lieu
mode: default
content:
description:
type: text_textarea
weight: 2
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
field_adresse:
type: address_default
weight: 1
region: content
settings: { }
third_party_settings: { }
name:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
status:
type: boolean_checkbox
weight: 3
region: content
settings:
display_label: true
third_party_settings: { }
hidden:
langcode: true
path: true

View File

@ -5,7 +5,6 @@ dependencies:
config:
- field.field.user.user.field_strucure
module:
- autocomplete_deluxe
- user
id: user.user.default
targetEntityType: user
@ -18,21 +17,20 @@ content:
settings: { }
third_party_settings: { }
field_strucure:
type: autocomplete_deluxe
type: options_select
weight: 2
region: content
settings:
match_operator: CONTAINS
autocomplete_route_name: autocomplete_deluxe.autocomplete
size: 60
selection_handler: default
limit: 10
min_length: 0
delimiter: ''
not_found_message_allow: true
not_found_message: 'The term ''@term'' will be added'
new_terms: true
no_empty_message: 'No terms could be found. Please type in order to add a new term.'
settings: { }
third_party_settings: { }
regcode:
weight: 10
region: content
settings: { }
third_party_settings: { }
terms_of_use:
weight: 10
region: content
settings: { }
third_party_settings: { }
hidden:
contact: true

View File

@ -6,6 +6,7 @@ dependencies:
- field.field.node.concernement.field_caillou
- field.field.node.concernement.field_description
- field.field.node.concernement.field_entite
- field.field.node.concernement.field_lieu
- field.field.node.concernement.field_recit
- node.type.concernement
module:
@ -29,7 +30,7 @@ content:
label: above
settings: { }
third_party_settings: { }
weight: 104
weight: 107
region: content
field_entite:
type: entity_reference_revisions_entity_view
@ -40,6 +41,14 @@ content:
third_party_settings: { }
weight: 102
region: content
field_lieu:
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
weight: 106
region: content
field_recit:
type: file_default
label: above

View File

@ -7,6 +7,7 @@ dependencies:
- field.field.node.concernement.field_caillou
- field.field.node.concernement.field_description
- field.field.node.concernement.field_entite
- field.field.node.concernement.field_lieu
- field.field.node.concernement.field_recit
- node.type.concernement
module:
@ -25,6 +26,7 @@ hidden:
field_caillou: true
field_description: true
field_entite: true
field_lieu: true
field_recit: true
langcode: true
search_api_excerpt: true

View File

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

View File

@ -0,0 +1,32 @@
uuid: 04164f73-d0f4-4f8d-8fae-d0c13e0d917b
langcode: fr
status: true
dependencies:
config:
- field.field.taxonomy_term.lieu.field_adresse
- taxonomy.vocabulary.lieu
module:
- address
- text
id: taxonomy_term.lieu.default
targetEntityType: taxonomy_term
bundle: lieu
mode: default
content:
description:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 0
region: content
field_adresse:
type: address_default
label: above
settings: { }
third_party_settings: { }
weight: 1
region: content
hidden:
langcode: true
search_api_excerpt: true

View File

@ -3,6 +3,7 @@ _core:
langcode: fr
module:
actions_permissions: 0
address: 0
admin_menus: 0
admin_toolbar: 0
admin_toolbar_content: 0

View File

@ -14,3 +14,9 @@ definitions:
parent: admin_menus.contents
expanded: false
weight: 0
admin_menus__contents:
weight: -50
menu_name: administrator
parent: ''
enabled: true
expanded: false

View File

@ -0,0 +1,31 @@
uuid: 0b0d34c1-79eb-4ca6-807f-836f2851ecfb
langcode: fr
status: true
dependencies:
config:
- filter.format.linkonly
module:
- ckeditor
format: linkonly
editor: ckeditor
settings:
toolbar:
rows:
-
-
name: Liens
items:
- DrupalLink
- DrupalUnlink
plugins:
drupallink:
linkit_enabled: false
linkit_profile: ''
image_upload:
status: false
scheme: public
directory: inline-images
max_size: ''
max_dimensions:
width: null
height: null

View File

@ -1,4 +1,4 @@
uuid: 535ce9fa-7e1c-42b2-8b1a-10dc104e9603
uuid: 593f484f-0de7-49cb-9c09-d5c4c43c3235
langcode: fr
status: true
dependencies:

View File

@ -0,0 +1,29 @@
uuid: c642bfab-8c1b-4ca0-ad9a-f2bf9a6bdd14
langcode: fr
status: true
dependencies:
config:
- field.storage.node.field_lieu
- node.type.concernement
- taxonomy.vocabulary.lieu
id: node.concernement.field_lieu
field_name: field_lieu
entity_type: node
bundle: concernement
label: Lieu
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:taxonomy_term'
handler_settings:
target_bundles:
lieu: lieu
sort:
field: name
direction: asc
auto_create: false
auto_create_bundle: ''
field_type: entity_reference

View File

@ -1,10 +1,12 @@
uuid: d2ee1d58-0296-4f56-961f-6dac57ceb173
uuid: 16ebf1f1-c233-4449-94f1-5eb28eb7712c
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
@ -16,4 +18,4 @@ translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long
field_type: text_long

View File

@ -0,0 +1,47 @@
uuid: 39fee0a0-22fc-46b2-80da-bc9cd16b740e
langcode: fr
status: true
dependencies:
config:
- field.storage.taxonomy_term.field_adresse
- taxonomy.vocabulary.lieu
module:
- address
id: taxonomy_term.lieu.field_adresse
field_name: field_adresse
entity_type: taxonomy_term
bundle: lieu
label: Adresse
description: ''
required: false
translatable: false
default_value:
-
langcode: null
country_code: FR
administrative_area: null
locality: ''
dependent_locality: null
postal_code: ''
sorting_code: ''
address_line1: ''
address_line2: ''
organization: ''
given_name: ''
additional_name: null
family_name: ''
default_value_callback: ''
settings:
available_countries: { }
langcode_override: ''
field_overrides:
givenName:
override: hidden
additionalName:
override: hidden
organization:
override: hidden
sortingCode:
override: hidden
fields: { }
field_type: address

View File

@ -1,4 +1,4 @@
uuid: aab0fc38-c9cb-4314-bebc-37c15abbacb3
uuid: 5acf7705-4d04-4287-ab75-c206e9e243ec
langcode: fr
status: true
dependencies:

View File

@ -0,0 +1,20 @@
uuid: 2aa80a26-ca7d-4067-80c1-fe14d7c5dc88
langcode: fr
status: true
dependencies:
module:
- node
- taxonomy
id: node.field_lieu
field_name: field_lieu
entity_type: node
type: entity_reference
settings:
target_type: taxonomy_term
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -1,16 +1,16 @@
uuid: 477f32ee-3fe7-4b49-8667-630569af1da7
uuid: 0905aa46-1120-4d3d-89e4-156d97c90e58
langcode: fr
status: true
dependencies:
module:
- paragraphs
- text
id: paragraph.field_description
field_name: field_description
entity_type: paragraph
type: string_long
settings:
case_sensitive: false
module: core
type: text_long
settings: { }
module: text
locked: false
cardinality: 1
translatable: true

View File

@ -0,0 +1,19 @@
uuid: d1f1c929-2a8d-4c0d-9b12-d4ac85b755e6
langcode: fr
status: true
dependencies:
module:
- address
- taxonomy
id: taxonomy_term.field_adresse
field_name: field_adresse
entity_type: taxonomy_term
type: address
settings: { }
module: address
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false

View File

@ -0,0 +1,49 @@
uuid: ac2880cb-1e0f-42db-a209-2df6dedcdac0
langcode: fr
status: true
dependencies:
module:
- linkit
- url_to_video_filter
name: linkonly
format: linkonly
weight: 0
filters:
filter_htmlcorrector:
id: filter_htmlcorrector
provider: filter
status: true
weight: 10
settings: { }
filter_autop:
id: filter_autop
provider: filter
status: true
weight: 0
settings: { }
filter_html:
id: filter_html
provider: filter
status: false
weight: -10
settings:
allowed_html: '<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> <a href hreflang data-entity-substitution data-entity-type data-entity-uuid title>'
filter_html_help: true
filter_html_nofollow: false
linkit:
id: linkit
provider: linkit
status: true
weight: 0
settings:
title: true
filter_url_to_video:
id: filter_url_to_video
provider: url_to_video_filter
status: false
weight: 0
settings:
youtube: '1'
youtube_webp_preview: '0'
vimeo: '1'
autoload: '0'

View File

@ -0,0 +1,11 @@
uuid: 82d8efe1-e6d2-42f3-9cbf-b5f2f2dcaf41
langcode: fr
status: true
dependencies:
config:
- taxonomy.vocabulary.lieu
id: taxonomy_term.lieu
target_entity_type_id: taxonomy_term
target_bundle: lieu
default_langcode: site_default
language_alterable: false

View File

@ -10,7 +10,7 @@ third_party_settings:
parent: ''
_core:
default_config_hash: Gbpk2gnakDOKmsOEikWuVfLDOZ8rtrlW-UoZFjqWCF0
name: Static
name: Statique
type: static
description: 'Static Page'
help: ''

View File

@ -37,14 +37,14 @@ menus:
uuid: 52ec0062-b1c9-45be-a346-1b4907b7dea0
-
menu_name: administrator
title: Groups
title: Bourgeons
parent: null
uri: 'http://dev.ouatterrir.fr/api/admin/group'
link_title: ''
description: null
enabled: true
expanded: false
weight: 1
weight: -49
langcode: fr
uuid: a9498617-648c-47d2-89d3-bc25c02d2a09
-
@ -56,7 +56,56 @@ menus:
description: null
enabled: true
expanded: false
weight: 2
weight: -46
langcode: fr
uuid: a6e17ef7-58a7-430b-9a82-c7af480a2870
-
menu_name: administrator
title: 'Registration codes'
parent: 'menu_link_content:a6e17ef7-58a7-430b-9a82-c7af480a2870'
uri: 'internal:/admin/config/people/regcode'
link_title: ''
description: null
enabled: true
expanded: false
weight: 0
langcode: fr
uuid: fe864d35-df11-41d3-a4a4-05fa58cfaefb
-
menu_name: administrator
title: Lieux
parent: null
uri: 'internal:/admin/structure/taxonomy/manage/lieu/overview'
link_title: ''
description: null
enabled: true
expanded: false
weight: -47
langcode: fr
uuid: 10cbd4a0-b907-4502-9c75-8f611cbcc5cb
-
menu_name: administrator
title: Structures
parent: null
uri: 'internal:/admin/structure/taxonomy/manage/structure/overview'
link_title: ''
description: null
enabled: true
expanded: false
weight: -48
langcode: fr
uuid: 49ef514c-0ba2-44bc-ada2-4621187a3fea
taxonomies:
lieu: { }
structure:
-
vid: structure
tid: '1'
langcode: fr
name: 'collectif rivage'
description__value: null
description__format: null
weight: '0'
parent: '0'
uuid: b12f7022-d9f0-44dc-907d-c1185e915d7e
log: 1

View File

@ -0,0 +1,8 @@
uuid: 7afbb3a0-0130-4130-b83a-6a340648a1e6
langcode: fr
status: true
dependencies: { }
name: Lieu
vid: lieu
description: ''
weight: 0

View File

@ -7,6 +7,8 @@ dependencies:
- node.type.concernement
- node.type.entite
- node.type.static
- taxonomy.vocabulary.lieu
- taxonomy.vocabulary.structure
module:
- actions_permissions
- administerusersbyrole
@ -18,6 +20,7 @@ dependencies:
- regcode
- role_delegation
- system
- taxonomy
- toolbar
_core:
default_config_hash: oPv8PkAuHYeKKe1c48A3-O9VsF3Nl1XBsMKrgqxo8vs
@ -143,3 +146,10 @@ permissions:
- 'view users by role'
- 'view users with role group_admin'
- 'view users with role group_member'
- 'create terms in lieu'
- 'create terms in structure'
- 'delete terms in lieu'
- 'delete terms in structure'
- 'edit terms in lieu'
- 'edit terms in structure'
- 'access taxonomy overview'

View File

@ -3,6 +3,7 @@ langcode: fr
status: true
dependencies:
config:
- filter.format.linkonly
- filter.format.wysiwyg
module:
- devel
@ -44,3 +45,4 @@ permissions:
- 'view published composition entities'
- 'view published fil entities'
- 'view search api pages'
- 'use text format linkonly'

View File

@ -5,11 +5,14 @@ dependencies:
config:
- node.type.concernement
- node.type.entite
- taxonomy.vocabulary.lieu
- taxonomy.vocabulary.structure
module:
- administerusersbyrole
- node
- role_delegation
- system
- taxonomy
- toolbar
id: group_admin
label: 'group admin'
@ -36,3 +39,10 @@ permissions:
- 'view the administration theme'
- 'view users by role'
- 'view users with role group_member'
- 'create terms in lieu'
- 'create terms in structure'
- 'delete terms in lieu'
- 'delete terms in structure'
- 'edit terms in lieu'
- 'edit terms in structure'
- 'access taxonomy overview'

View File

@ -195,22 +195,32 @@ display:
row_class: ''
default_row_class: true
columns:
title: title
is_locked: title
uid: uid
views_bulk_operations_bulk_form: views_bulk_operations_bulk_form
title: title
operations: title
changed: changed
is_locked: title
status: status
changed: changed
uid: uid
default: '-1'
info:
views_bulk_operations_bulk_form:
align: ''
separator: ''
empty_column: false
responsive: ''
title:
sortable: false
sortable: true
default_sort_order: asc
align: ''
separator: '<br>'
empty_column: false
responsive: ''
operations:
align: ''
separator: ''
empty_column: false
responsive: ''
is_locked:
sortable: false
default_sort_order: asc
@ -218,31 +228,21 @@ display:
separator: ''
empty_column: false
responsive: ''
uid:
sortable: false
status:
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
views_bulk_operations_bulk_form:
align: ''
separator: ''
empty_column: false
responsive: ''
operations:
align: ''
separator: ''
empty_column: false
responsive: ''
changed:
sortable: false
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
status:
uid:
sortable: false
default_sort_order: asc
align: ''