From e92abc59470d9ba3787828777098652a102f36d6 Mon Sep 17 00:00:00 2001 From: alexisben <alexiben7@gmail.com> Date: Wed, 20 Apr 2022 14:58:47 +0200 Subject: [PATCH] Rename push to call_to_action --- .../templates/{push.jpg => call_to_action.jpg} | Bin app/models/communication/block.rb | 2 +- .../block/template/{push.rb => call_to_action.rb} | 2 +- .../{push => call_to_action}/_edit.html.erb | 0 .../{push => call_to_action}/_show.html.erb | 0 .../{push => call_to_action}/_static.html.erb | 0 config/locales/communication/en.yml | 13 +++++++++++++ config/locales/communication/fr.yml | 2 +- 8 files changed, 16 insertions(+), 3 deletions(-) rename app/assets/images/communication/blocks/templates/{push.jpg => call_to_action.jpg} (100%) rename app/models/communication/block/template/{push.rb => call_to_action.rb} (82%) rename app/views/admin/communication/blocks/templates/{push => call_to_action}/_edit.html.erb (100%) rename app/views/admin/communication/blocks/templates/{push => call_to_action}/_show.html.erb (100%) rename app/views/admin/communication/blocks/templates/{push => call_to_action}/_static.html.erb (100%) 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 2540b23cb..a07fb23c0 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 be67a4e31..d609edca6 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 10c760718..7d28568a6 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 00230ff5f..7f7a1f2aa 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 -- GitLab