From 42ae47b87f5e8e55fa8b8985406eb8335cfd3963 Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 27 Nov 2023 16:52:25 +0100 Subject: [PATCH] changed admin theme --- ...imal_actionsdadministrationprincipales.yml | 18 + config/sync/block.block.figlimal_aide.yml | 20 ++ ...ck.block.figlimal_connexionutilisateur.yml | 20 ++ ...ock.figlimal_contenudelapageprincipale.yml | 20 ++ .../sync/block.block.figlimal_filsdariane.yml | 20 ++ config/sync/block.block.figlimal_messages.yml | 20 ++ config/sync/block.block.figlimal_onglets.yml | 20 ++ .../sync/block.block.figlimal_onglets_2.yml | 20 ++ config/sync/block.block.figlimal_phase1..yml | 30 ++ .../sync/block.block.figlimal_titredepage.yml | 18 + ...ty_view_display.node.operation.compact.yml | 4 +- config/sync/core.extension.yml | 1 + config/sync/system.theme.yml | 2 +- config/sync/views.view.content.yml | 328 ++++++++++++++++-- web/themes/custom/figlimal/css/styles.css | 8 + web/themes/custom/figlimal/figlimal.info.yml | 21 ++ .../custom/figlimal/figlimal.libraries.yml | 7 + web/themes/custom/figlimal/figlimal.theme | 27 ++ web/themes/custom/figlimal/js/figlimal.js | 17 + 19 files changed, 589 insertions(+), 32 deletions(-) create mode 100644 config/sync/block.block.figlimal_actionsdadministrationprincipales.yml create mode 100644 config/sync/block.block.figlimal_aide.yml create mode 100644 config/sync/block.block.figlimal_connexionutilisateur.yml create mode 100644 config/sync/block.block.figlimal_contenudelapageprincipale.yml create mode 100644 config/sync/block.block.figlimal_filsdariane.yml create mode 100644 config/sync/block.block.figlimal_messages.yml create mode 100644 config/sync/block.block.figlimal_onglets.yml create mode 100644 config/sync/block.block.figlimal_onglets_2.yml create mode 100644 config/sync/block.block.figlimal_phase1..yml create mode 100644 config/sync/block.block.figlimal_titredepage.yml create mode 100644 web/themes/custom/figlimal/css/styles.css create mode 100644 web/themes/custom/figlimal/figlimal.info.yml create mode 100644 web/themes/custom/figlimal/figlimal.libraries.yml create mode 100644 web/themes/custom/figlimal/figlimal.theme create mode 100644 web/themes/custom/figlimal/js/figlimal.js diff --git a/config/sync/block.block.figlimal_actionsdadministrationprincipales.yml b/config/sync/block.block.figlimal_actionsdadministrationprincipales.yml new file mode 100644 index 0000000..0374885 --- /dev/null +++ b/config/sync/block.block.figlimal_actionsdadministrationprincipales.yml @@ -0,0 +1,18 @@ +uuid: 63a81ad5-87d0-423d-8ce9-33026f8691ee +langcode: fr +status: true +dependencies: + theme: + - figlimal +id: figlimal_actionsdadministrationprincipales +theme: figlimal +region: content +weight: -3 +provider: null +plugin: local_actions_block +settings: + id: local_actions_block + label: "Actions d'administration principales" + label_display: '0' + provider: core +visibility: { } diff --git a/config/sync/block.block.figlimal_aide.yml b/config/sync/block.block.figlimal_aide.yml new file mode 100644 index 0000000..b09b5d3 --- /dev/null +++ b/config/sync/block.block.figlimal_aide.yml @@ -0,0 +1,20 @@ +uuid: faa3efd7-d6c0-47f6-a4ec-6290189b085f +langcode: fr +status: true +dependencies: + module: + - help + theme: + - figlimal +id: figlimal_aide +theme: figlimal +region: help +weight: 0 +provider: null +plugin: help_block +settings: + id: help_block + label: Aide + label_display: '0' + provider: help +visibility: { } diff --git a/config/sync/block.block.figlimal_connexionutilisateur.yml b/config/sync/block.block.figlimal_connexionutilisateur.yml new file mode 100644 index 0000000..ebed431 --- /dev/null +++ b/config/sync/block.block.figlimal_connexionutilisateur.yml @@ -0,0 +1,20 @@ +uuid: b12431c1-fb90-4f20-8189-0de84c6a366f +langcode: fr +status: true +dependencies: + module: + - user + theme: + - figlimal +id: figlimal_connexionutilisateur +theme: figlimal +region: content +weight: 0 +provider: null +plugin: user_login_block +settings: + id: user_login_block + label: 'Connexion utilisateur' + label_display: visible + provider: user +visibility: { } diff --git a/config/sync/block.block.figlimal_contenudelapageprincipale.yml b/config/sync/block.block.figlimal_contenudelapageprincipale.yml new file mode 100644 index 0000000..6062091 --- /dev/null +++ b/config/sync/block.block.figlimal_contenudelapageprincipale.yml @@ -0,0 +1,20 @@ +uuid: 65acaecc-9377-49b8-a87d-fff8b0315dab +langcode: fr +status: true +dependencies: + module: + - system + theme: + - figlimal +id: figlimal_contenudelapageprincipale +theme: figlimal +region: content +weight: -2 +provider: null +plugin: system_main_block +settings: + id: system_main_block + label: 'Contenu de la page principale' + label_display: '0' + provider: system +visibility: { } diff --git a/config/sync/block.block.figlimal_filsdariane.yml b/config/sync/block.block.figlimal_filsdariane.yml new file mode 100644 index 0000000..0e8d59c --- /dev/null +++ b/config/sync/block.block.figlimal_filsdariane.yml @@ -0,0 +1,20 @@ +uuid: 7503157f-df68-4a93-bc63-664ec3ad0d36 +langcode: fr +status: true +dependencies: + module: + - system + theme: + - figlimal +id: figlimal_filsdariane +theme: figlimal +region: breadcrumb +weight: 0 +provider: null +plugin: system_breadcrumb_block +settings: + id: system_breadcrumb_block + label: "Fils d'ariane" + label_display: '0' + provider: system +visibility: { } diff --git a/config/sync/block.block.figlimal_messages.yml b/config/sync/block.block.figlimal_messages.yml new file mode 100644 index 0000000..64c987f --- /dev/null +++ b/config/sync/block.block.figlimal_messages.yml @@ -0,0 +1,20 @@ +uuid: c5d4471d-39d5-4ce0-8294-b997de1a416f +langcode: fr +status: true +dependencies: + module: + - system + theme: + - figlimal +id: figlimal_messages +theme: figlimal +region: highlighted +weight: 0 +provider: null +plugin: system_messages_block +settings: + id: system_messages_block + label: 'Messages de status' + label_display: '0' + provider: system +visibility: { } diff --git a/config/sync/block.block.figlimal_onglets.yml b/config/sync/block.block.figlimal_onglets.yml new file mode 100644 index 0000000..27ea1e6 --- /dev/null +++ b/config/sync/block.block.figlimal_onglets.yml @@ -0,0 +1,20 @@ +uuid: bb2808e4-3b85-4692-bee8-7c228b891016 +langcode: fr +status: true +dependencies: + theme: + - figlimal +id: figlimal_onglets +theme: figlimal +region: header +weight: 0 +provider: null +plugin: local_tasks_block +settings: + id: local_tasks_block + label: 'Onglets principaux' + label_display: '0' + provider: core + primary: true + secondary: false +visibility: { } diff --git a/config/sync/block.block.figlimal_onglets_2.yml b/config/sync/block.block.figlimal_onglets_2.yml new file mode 100644 index 0000000..acbbda2 --- /dev/null +++ b/config/sync/block.block.figlimal_onglets_2.yml @@ -0,0 +1,20 @@ +uuid: fdd5f360-dd8e-4d71-8a35-f98512bedc14 +langcode: fr +status: true +dependencies: + theme: + - figlimal +id: figlimal_onglets_2 +theme: figlimal +region: pre_content +weight: 0 +provider: null +plugin: local_tasks_block +settings: + id: local_tasks_block + label: 'Onglets secondaires' + label_display: '0' + provider: core + primary: false + secondary: true +visibility: { } diff --git a/config/sync/block.block.figlimal_phase1..yml b/config/sync/block.block.figlimal_phase1..yml new file mode 100644 index 0000000..f58e9da --- /dev/null +++ b/config/sync/block.block.figlimal_phase1..yml @@ -0,0 +1,30 @@ +uuid: e1f7fce2-16f4-4c1c-b99a-e01febac2db6 +langcode: fr +status: true +dependencies: + content: + - 'block_content:text:e05f593a-38ab-4dba-ad1c-9ae23c1222a9' + module: + - block_content + - system + theme: + - figlimal +id: figlimal_phase1. +theme: figlimal +region: sidebar_first +weight: 0 +provider: null +plugin: 'block_content:e05f593a-38ab-4dba-ad1c-9ae23c1222a9' +settings: + id: 'block_content:e05f593a-38ab-4dba-ad1c-9ae23c1222a9' + label: 'Phase 1.' + label_display: visible + provider: block_content + status: true + info: '' + view_mode: full +visibility: + request_path: + id: request_path + negate: true + pages: '' diff --git a/config/sync/block.block.figlimal_titredepage.yml b/config/sync/block.block.figlimal_titredepage.yml new file mode 100644 index 0000000..2cb466a --- /dev/null +++ b/config/sync/block.block.figlimal_titredepage.yml @@ -0,0 +1,18 @@ +uuid: da4c5403-1ccf-448c-a715-9095c915cc5d +langcode: fr +status: true +dependencies: + theme: + - figlimal +id: figlimal_titredepage +theme: figlimal +region: header +weight: -1 +provider: null +plugin: page_title_block +settings: + id: page_title_block + label: 'Titre de page' + label_display: '0' + provider: core +visibility: { } diff --git a/config/sync/core.entity_view_display.node.operation.compact.yml b/config/sync/core.entity_view_display.node.operation.compact.yml index 88397ac..d62ffcb 100644 --- a/config/sync/core.entity_view_display.node.operation.compact.yml +++ b/config/sync/core.entity_view_display.node.operation.compact.yml @@ -20,14 +20,14 @@ mode: compact content: field_adresse: type: address_plain - label: inline + label: above settings: { } third_party_settings: { } weight: 0 region: content field_commentaire: type: basic_string - label: inline + label: above settings: { } third_party_settings: { } weight: 1 diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 3cf3f50..6ce196a 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -128,4 +128,5 @@ theme: adminimal_theme: 0 stark: 0 reha: 0 + figlimal: 0 profile: figli_starter_kit diff --git a/config/sync/system.theme.yml b/config/sync/system.theme.yml index 0999ca3..67e0af8 100644 --- a/config/sync/system.theme.yml +++ b/config/sync/system.theme.yml @@ -1,5 +1,5 @@ _core: default_config_hash: TpdA4rsOBAawnqeon9A-Ooht_4VO3hHKib79xyHcTyg langcode: fr -admin: adminimal_theme +admin: figlimal default: reha diff --git a/config/sync/views.view.content.yml b/config/sync/views.view.content.yml index 8f6c7af..4322259 100644 --- a/config/sync/views.view.content.yml +++ b/config/sync/views.view.content.yml @@ -3,11 +3,16 @@ langcode: fr status: true dependencies: config: - - core.entity_view_mode.node.compact - core.entity_view_mode.user.compact + - field.storage.node.field_adresse + - field.storage.node.field_commentaire + - field.storage.node.field_dossier_de_candidature + - field.storage.node.field_fiche_candidature - node.type.operation - node.type.static module: + - address + - file - node - user _core: @@ -491,8 +496,7 @@ display: mail: title rendered_entity: rendered_entity rendered_entity_1: rendered_entity_1 - changed: changed - default: changed + default: '-1' info: title: sortable: true @@ -500,7 +504,7 @@ display: align: '' separator: '
' empty_column: false - responsive: '' + responsive: priority-low mail: sortable: false default_sort_order: asc @@ -514,7 +518,7 @@ display: align: '' separator: '' empty_column: false - responsive: '' + responsive: priority-low rendered_entity_1: sortable: false default_sort_order: asc @@ -522,13 +526,6 @@ display: separator: '' empty_column: false responsive: '' - changed: - sortable: true - default_sort_order: desc - align: '' - separator: '' - empty_column: false - responsive: priority-low override: true sticky: true summary: '' @@ -767,8 +764,8 @@ display: label: Titre exclude: false alter: - alter_text: false - text: '' + alter_text: true + text: '

{{ title }}

' make_link: false path: '' absolute: false @@ -800,7 +797,7 @@ display: element_label_colon: true element_wrapper_type: '' element_wrapper_class: '' - element_default_classes: true + element_default_classes: false empty: '' hide_empty: false empty_zero: false @@ -934,16 +931,77 @@ display: empty_zero: false hide_alter_empty: true view_mode: compact - rendered_entity_1: - id: rendered_entity_1 - table: node - field: rendered_entity + field_adresse: + id: field_adresse + table: node__field_adresse + field: field_adresse relationship: none group_type: group admin_label: '' - entity_type: node - plugin_id: rendered_entity - label: 'Entité rendue' + plugin_id: field + label: Adresse + 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: false + element_wrapper_type: '' + element_wrapper_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + click_sort_column: langcode + type: address_default + settings: { } + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + field_dossier_de_candidature: + id: field_dossier_de_candidature + table: node__field_dossier_de_candidature + field: field_dossier_de_candidature + relationship: none + group_type: group + admin_label: '' + plugin_id: field + label: 'Dossier de candidature' exclude: false alter: alter_text: false @@ -984,7 +1042,145 @@ display: hide_empty: false empty_zero: false hide_alter_empty: true - view_mode: compact + click_sort_column: target_id + type: file_default + settings: + use_description_as_link_text: true + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + field_fiche_candidature: + id: field_fiche_candidature + table: node__field_fiche_candidature + field: field_fiche_candidature + relationship: none + group_type: group + admin_label: '' + plugin_id: field + label: 'Fiche candidature' + 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: file_default + settings: + use_description_as_link_text: true + group_column: '' + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false + field_commentaire: + id: field_commentaire + table: node__field_commentaire + field: field_commentaire + relationship: none + group_type: group + admin_label: '' + plugin_id: field + label: Commentaire + 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: value + type: basic_string + settings: { } + group_column: value + group_columns: { } + group_rows: true + delta_limit: 0 + delta_offset: 0 + delta_reversed: false + delta_first_last: false + multi_type: separator + separator: ', ' + field_api_classes: false filters: title: id: title @@ -1205,8 +1401,84 @@ display: operator: AND groups: 1: AND + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + columns: + title: title + mail: title + rendered_entity: title + field_adresse: field_adresse + field_dossier_de_candidature: field_dossier_de_candidature + field_fiche_candidature: field_fiche_candidature + field_commentaire: field_commentaire + default: '-1' + info: + title: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + mail: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + rendered_entity: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + field_adresse: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + field_dossier_de_candidature: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + field_fiche_candidature: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + field_commentaire: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + override: true + sticky: false + summary: '' + empty_table: false + caption: '' + description: '' + row: + type: fields + options: { } defaults: title: false + style: false + row: false fields: false filters: false filter_groups: false @@ -1238,11 +1510,9 @@ display: - 'user.node_grants:view' - user.permissions tags: - - 'config:core.entity_view_display.node.operation.compact' - - 'config:core.entity_view_display.node.operation.default' - - 'config:core.entity_view_display.node.operation.teaser' - - 'config:core.entity_view_display.node.static.content_no_title' - - 'config:core.entity_view_display.node.static.default' - - 'config:core.entity_view_display.node.static.teaser' - 'config:core.entity_view_display.user.user.compact' - 'config:core.entity_view_display.user.user.default' + - 'config:field.storage.node.field_adresse' + - 'config:field.storage.node.field_commentaire' + - 'config:field.storage.node.field_dossier_de_candidature' + - 'config:field.storage.node.field_fiche_candidature' diff --git a/web/themes/custom/figlimal/css/styles.css b/web/themes/custom/figlimal/css/styles.css new file mode 100644 index 0000000..85e2fbb --- /dev/null +++ b/web/themes/custom/figlimal/css/styles.css @@ -0,0 +1,8 @@ +div.view-id-content.view-display-id-page_2 td.views-field.views-field-title h2{ + margin:0; +} + +div.view-id-content.view-display-id-page_2 td.views-field.views-field-field-commentaire{ + width: 400px; +} + diff --git a/web/themes/custom/figlimal/figlimal.info.yml b/web/themes/custom/figlimal/figlimal.info.yml new file mode 100644 index 0000000..24ca368 --- /dev/null +++ b/web/themes/custom/figlimal/figlimal.info.yml @@ -0,0 +1,21 @@ +name: figlimal +type: theme +base theme: adminimal_theme +description: A flexible theme with a responsive, mobile-first layout. +package: Custom +core: 8.x +core_version_requirement: ^8 || ^9 || ^10 +libraries: + - figlimal/global +regions: + header: 'Header' + pre_content: 'Pre-content' + breadcrumb: Breadcrumb + highlighted: Highlighted + help: Help + content: Content + page_top: 'Page top' + page_bottom: 'Page bottom' + sidebar_first: 'First sidebar' +regions_hidden: + - sidebar_first diff --git a/web/themes/custom/figlimal/figlimal.libraries.yml b/web/themes/custom/figlimal/figlimal.libraries.yml new file mode 100644 index 0000000..eea15cd --- /dev/null +++ b/web/themes/custom/figlimal/figlimal.libraries.yml @@ -0,0 +1,7 @@ +# Main theme library. +global: + js: + js/figlimal.js: {} + css: + theme: + css/styles.css: {} diff --git a/web/themes/custom/figlimal/figlimal.theme b/web/themes/custom/figlimal/figlimal.theme new file mode 100644 index 0000000..b90b5ef --- /dev/null +++ b/web/themes/custom/figlimal/figlimal.theme @@ -0,0 +1,27 @@ +