Skip to content
Snippets Groups Projects
Commit a1439e3f authored by pabois's avatar pabois
Browse files

Merge branch 'master' of github.com:noesya/osuny

parents 50354406 47e52e5a
No related branches found
No related tags found
No related merge requests found
app/assets/images/communication/websites/blocks/templates/organization_chart.jpg

47.7 KiB

app/assets/images/communication/websites/blocks/templates/partners.jpg

17.3 KiB

......@@ -5,13 +5,16 @@
<% @block.template = template %>
<div class="col-lg-3 col-md-4">
<div class="card">
<% asset = "communication/websites/blocks/templates/#{template}.jpg" %>
<%= image_tag asset, alt: '' if Rails.application.assets.find_asset(asset) %>
<div class="card-body">
<h5 class="card-title"><%= t "enums.communication.website.block.template.#{template}" %></h5>
<%= simple_form_for [:admin, @block] do |f| %>
<%= f.input :about_type, as: :hidden %>
<%= f.input :about_id, as: :hidden %>
<%= f.input :template, as: :hidden %>
<%= f.submit t('communication.website.block.choose'), class: button_classes %>
<%= f.submit t('communication.website.block.choose'),
class: button_classes('stretched-link') %>
<% end %>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment