From fabedab2f231b953bcbf08b806c032f5ee20f42a Mon Sep 17 00:00:00 2001
From: alexisben <alexiben7@gmail.com>
Date: Tue, 21 Jun 2022 10:34:07 +0200
Subject: [PATCH] Fix block CTA

---
 .../communication/blocks/components/boolean/_edit.html.erb    | 4 ++--
 .../blocks/templates/call_to_action/_static.html.erb          | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/views/admin/communication/blocks/components/boolean/_edit.html.erb b/app/views/admin/communication/blocks/components/boolean/_edit.html.erb
index 3fddcf14c..360e3c022 100644
--- a/app/views/admin/communication/blocks/components/boolean/_edit.html.erb
+++ b/app/views/admin/communication/blocks/components/boolean/_edit.html.erb
@@ -1,9 +1,9 @@
 <div class="form-check">
-  <input  :id="'<%= dom_id.html_safe %>'"
+  <input  :id="<%= dom_id.html_safe %>"
           class="form-check-input"
           v-model="<%= model %>.<%= property %>"
           type="checkbox" />
-  <label class="form-label" aria-label="<%= label %>" :for="'<%= dom_id.html_safe %>'">
+  <label class="form-label" aria-label="<%= label %>" :for="<%= dom_id.html_safe %>">
     <%= label %>
   </label>
 </div>
\ No newline at end of file
diff --git a/app/views/admin/communication/blocks/templates/call_to_action/_static.html.erb b/app/views/admin/communication/blocks/templates/call_to_action/_static.html.erb
index bee54b56b..7fedc45db 100644
--- a/app/views/admin/communication/blocks/templates/call_to_action/_static.html.erb
+++ b/app/views/admin/communication/blocks/templates/call_to_action/_static.html.erb
@@ -2,7 +2,7 @@
 <%= block_component_static :image %>
 <%= block_component_static :alt %>
 <%= block_component_static :credit %>
-      buttons: >-
+      buttons:
 <% block.template.elements.each do |element| %>
 <%= block_component_static :title, template: element, depth: 4, list: true %>
 <%= block_component_static :url, template: element, depth: 5 %>
-- 
GitLab