diff --git a/app/assets/images/communication/blocks/templates/push.jpg b/app/assets/images/communication/blocks/templates/call_to_action.jpg similarity index 100% rename from app/assets/images/communication/blocks/templates/push.jpg rename to app/assets/images/communication/blocks/templates/call_to_action.jpg diff --git a/app/models/communication/block.rb b/app/models/communication/block.rb index 2540b23cbf3f397f0d8635f34a71c6066ae7cb7e..a07fb23c0f781db31a430dede76f5971a22ddb59 100644 --- a/app/models/communication/block.rb +++ b/app/models/communication/block.rb @@ -40,7 +40,7 @@ class Communication::Block < ApplicationRecord pages: 600, timeline: 700, definitions: 800, - push: 900, + call_to_action: 900, } before_save :update_template_images diff --git a/app/models/communication/block/template/push.rb b/app/models/communication/block/template/call_to_action.rb similarity index 82% rename from app/models/communication/block/template/push.rb rename to app/models/communication/block/template/call_to_action.rb index be67a4e311e900f6e79919351cd4902566b24c7e..d609edca6d7265a58521b3cb5658102d5eb11d1e 100644 --- a/app/models/communication/block/template/push.rb +++ b/app/models/communication/block/template/call_to_action.rb @@ -1,4 +1,4 @@ -class Communication::Block::Template::Push < Communication::Block::Template +class Communication::Block::Template::CallToAction < Communication::Block::Template def build_git_dependencies # image à déclarer end diff --git a/app/views/admin/communication/blocks/templates/push/_edit.html.erb b/app/views/admin/communication/blocks/templates/call_to_action/_edit.html.erb similarity index 100% rename from app/views/admin/communication/blocks/templates/push/_edit.html.erb rename to app/views/admin/communication/blocks/templates/call_to_action/_edit.html.erb diff --git a/app/views/admin/communication/blocks/templates/push/_show.html.erb b/app/views/admin/communication/blocks/templates/call_to_action/_show.html.erb similarity index 100% rename from app/views/admin/communication/blocks/templates/push/_show.html.erb rename to app/views/admin/communication/blocks/templates/call_to_action/_show.html.erb diff --git a/app/views/admin/communication/blocks/templates/push/_static.html.erb b/app/views/admin/communication/blocks/templates/call_to_action/_static.html.erb similarity index 100% rename from app/views/admin/communication/blocks/templates/push/_static.html.erb rename to app/views/admin/communication/blocks/templates/call_to_action/_static.html.erb diff --git a/config/locales/communication/en.yml b/config/locales/communication/en.yml index 10c760718fa8690129a5479a416831cc1e77276e..7d28568a6e3a7f4fb3c12b989dd46d175fa6c69b 100644 --- a/config/locales/communication/en.yml +++ b/config/locales/communication/en.yml @@ -179,6 +179,19 @@ en: title_placeholder: Enter title here text_label: Text text_placeholder: Enter text here + call_to_action: + edit: + text_label: Texte + text_placeholder: Entrer le texte ici + url_label: Lien + url_placeholder: Entrer le lien ici avec "https://..." + button_label: Bouton + button_placeholder: Entrer le texte du bouton ici + image_title: Image + image_label: Fichier + remove_image: Supprimer l'image + image_alt_label: Texte alternatif + image_alt_placeholder: Entrer le texte alternatif de l'image ici website: pages: delete_special_page_notice: Can't delete this page diff --git a/config/locales/communication/fr.yml b/config/locales/communication/fr.yml index 00230ff5f4e3d395dfb0a862bb1bad4308a19785..7f7a1f2aa1a1d5a8616de796e3ae8e8b4f873dd3 100644 --- a/config/locales/communication/fr.yml +++ b/config/locales/communication/fr.yml @@ -179,7 +179,7 @@ fr: title_placeholder: Entrer le titre de la définition text_label: Texte text_placeholder: Entrer la description de la définition - push: + call_to_action: edit: text_label: Texte text_placeholder: Entrer le texte ici