diff --git a/components/consent-modal/consent-modal.component.yml b/components/consent-modal/consent-modal.component.yml index 54487ab513dc9584163ee6ae9221fa71b4b1205f..521ed8c8b1aca5a25dc547074f50619dc2e3a9b1 100644 --- a/components/consent-modal/consent-modal.component.yml +++ b/components/consent-modal/consent-modal.component.yml @@ -40,5 +40,8 @@ props: type: string title: Title description: 'By default: "Manage consent", or the translated string in another language.' +slots: + modal_content: + title: Transcription modal content required: - services diff --git a/components/display-modal/display-modal.component.yml b/components/display-modal/display-modal.component.yml index b53dab64d45c5d60ffbf2bfcdb30acf6b1aaa6d0..8ec9f7b3678bfe31c5b5a32b4e97e5004e8b0bdc 100644 --- a/components/display-modal/display-modal.component.yml +++ b/components/display-modal/display-modal.component.yml @@ -8,6 +8,9 @@ props: type: string title: Title description: 'By default: "Display settings", or the translated string in another language.' +slots: + modal_content: + title: Transcription modal content libraryOverrides: dependencies: - dsfr4drupal/component.display diff --git a/components/display-modal/display-modal.twig b/components/display-modal/display-modal.twig index b3333248f166febc82db47be0efe08dffc263449..65f16b0ffa4a09fc05e9d9da1d82290e6d811ac2 100644 --- a/components/display-modal/display-modal.twig +++ b/components/display-modal/display-modal.twig @@ -1,3 +1,4 @@ +{# This component needs access to the "dsfr_path" variable. It is therefore necessary to authorize the transmission of the context. #} {% embed 'dsfr4drupal:modal' with { attributes: create_attribute({'class': ['fr-col-12', 'fr-col-lg-4', 'fr-col-md-6']}), html_id: 'modal-display-settings', diff --git a/components/transcription/transcription.twig b/components/transcription/transcription.twig index 651c277ddb163538c37a204912e5d2ca26641edf..65bfcbef8e13e87559817c77eb3acd5d8fd4c343 100644 --- a/components/transcription/transcription.twig +++ b/components/transcription/transcription.twig @@ -21,7 +21,6 @@ {% embed 'dsfr4drupal:modal' with { attributes: create_attribute({'class': ['fr-col-12', 'fr-col-lg-8', 'fr-col-md-10']}), - content: content, html_id: modal_id, title: modal_title, } only %}