From 96111ee38ccda3da51aa7b89c21a87edcc33f0b3 Mon Sep 17 00:00:00 2001
From: alexisben <alexiben7@gmail.com>
Date: Mon, 11 Jul 2022 18:20:12 +0200
Subject: [PATCH] Add static

---
 .../blocks/components/time_slot/_static.html.erb       |  3 +++
 .../blocks/templates/contact/_static.html.erb          | 10 ++++++++++
 2 files changed, 13 insertions(+)

diff --git a/app/views/admin/communication/blocks/components/time_slot/_static.html.erb b/app/views/admin/communication/blocks/components/time_slot/_static.html.erb
index e69de29bb..d419d8dae 100644
--- a/app/views/admin/communication/blocks/components/time_slot/_static.html.erb
+++ b/app/views/admin/communication/blocks/components/time_slot/_static.html.erb
@@ -0,0 +1,3 @@
+<%= indentation %><%= property %>:
+<%= indentation %>  from: "<%= value['from'] %>"
+<%= indentation %>  to: "<%= value['to'] %>"
diff --git a/app/views/admin/communication/blocks/templates/contact/_static.html.erb b/app/views/admin/communication/blocks/templates/contact/_static.html.erb
index e69de29bb..68fb64850 100644
--- a/app/views/admin/communication/blocks/templates/contact/_static.html.erb
+++ b/app/views/admin/communication/blocks/templates/contact/_static.html.erb
@@ -0,0 +1,10 @@
+<%= block_component_static :name %>
+<%= block_component_static :address %>
+<%= block_component_static :phone_numbers %>
+<%= block_component_static :emails %>
+      timetable:
+<% block.template.elements.each do |element| %>
+<%= block_component_static :title, template: element, list: true, depth: 4 %>
+<%= block_component_static :time_slot_morning, template: element, depth: 5 %>
+<%= block_component_static :time_slot_afternoon, template: element, depth: 5 %>
+<% end %>
\ No newline at end of file
-- 
GitLab