diff --git a/app/views/admin/communication/blocks/templates/call_to_action/_show.html.erb b/app/views/admin/communication/blocks/templates/call_to_action/_show.html.erb index 94adc11c62f891252005db7d55117ff82fd19ab5..6acdd62e330833956c01b7b1109f75ea3f4ed947 100644 --- a/app/views/admin/communication/blocks/templates/call_to_action/_show.html.erb +++ b/app/views/admin/communication/blocks/templates/call_to_action/_show.html.erb @@ -12,9 +12,12 @@ <% end %> <hr> <%= @block.template.text.html_safe %> - <a href="<%= @block.template.url %>" class="btn btn-secondary" target="_blank" rel="noopener"> + <a href="<%= @block.template.url %>" class="btn btn-primary" target="_blank" rel="noopener"> <%= @block.template.button %> </a> + <a href="<%= @block.template.url_secondary %>" class="btn btn-secondary" target="_blank" rel="noopener"> + <%= @block.template.button_secondary %> + </a> </div> </div> </div> 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 fe07289fb4d4d1de73db42aa29fa06fb03bc22e4..c4366f89a04b9cab86638f3898da090d891bfe88 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 @@ -1,2 +1,17 @@ text: >- <%= prepare_html_for_static block.template.text, about.university %> + <% if block.template.image %> + image: + file: "<%= block.template.image.blob.id %>" + alt: <%= prepare_text_for_static block.template.image.alt %> + <% end %> + button: + text: >- + <%= prepare_text_for_static block.template.button %> + url: >- + <%= prepare_text_for_static block.template.url %> + button_secondary: + text: >- + <%= prepare_text_for_static block.template.button_secondary %> + url: >- + <%= prepare_text_for_static block.template.url_secondary %> \ No newline at end of file