diff --git a/app/views/admin/communication/blocks/templates/embed/_preview.html.erb b/app/views/admin/communication/blocks/templates/embed/_preview.html.erb index 371d5d3ce9f04f649c438a2f8c2136a8d865ea2e..560be01fc48e179e78aa9eadbadc9f198988b300 100644 --- a/app/views/admin/communication/blocks/templates/embed/_preview.html.erb +++ b/app/views/admin/communication/blocks/templates/embed/_preview.html.erb @@ -1 +1,2 @@ -<pre><%= @block.template.code %></pre> +<%= @block.template.code.html_safe %> +<p><%= @block.template.transcription %></p> \ No newline at end of file diff --git a/config/locales/communication/en.yml b/config/locales/communication/en.yml index 2cfe8350e3b442794964d85248ac2d2f21bd70a2..cf74ea0c906cd06459afd69332e854ccd947d5cf 100644 --- a/config/locales/communication/en.yml +++ b/config/locales/communication/en.yml @@ -170,6 +170,12 @@ en: title_placeholder: Enter title here text_label: Text text_placeholder: Enter text here + embed: + edit: + code_label: Code du bloc d'intégration HTML + code_placeholder: Entrez ici le code + transcription_label: Transcription textuelle du contenu + transcription_placeholder: Entrez ici la transcription gallery: edit: add_image: Add image diff --git a/config/locales/communication/fr.yml b/config/locales/communication/fr.yml index fadcf98a17fa91ddf913f3c348828343d248af82..f0d22b11a3b1087a841680cffc72e686fe697200 100644 --- a/config/locales/communication/fr.yml +++ b/config/locales/communication/fr.yml @@ -170,6 +170,12 @@ fr: title_placeholder: Entrer le titre de la définition text_label: Texte text_placeholder: Entrer la description de la définition + embed: + edit: + code_label: Code du bloc d'intégration HTML + code_placeholder: Entrez ici le code + transcription_label: Transcription textuelle du contenu + transcription_placeholder: Entrez ici la transcription gallery: edit: add_image: Ajouter une image