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 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..d419d8dae65d8e9402542a17d0342612b4251b48 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 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..68fb64850456a932aeebdec56580854d96929fa5 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