Skip to content
Snippets Groups Projects
Commit c1508855 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

layout

parent f7affe07
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,8 @@
&__handle
width: 20px
&__image
width: 150px
width: 170px
img
width: 150px
&__buttons
width: 170px
\ No newline at end of file
......@@ -8,6 +8,14 @@ action += link_to t('admin.communication.blocks.add'),
<% if about.blocks.any? %>
<div class="table-responsive">
<table class="<%= table_classes %>">
<thead>
<tr>
<th></th>
<th><%= Communication::Block.human_attribute_name :title %></th>
<th><%= Communication::Block.human_attribute_name :template %></th>
<th></th>
</tr>
</thead>
<tbody data-sortable data-sort-url="<%= reorder_admin_communication_blocks_path %>">
<% about.blocks.ordered.each do |block| %>
<tr data-id="<%= block.id %>" class="<%= 'draft' unless block.published? %>">
......@@ -19,9 +27,8 @@ action += link_to t('admin.communication.blocks.add'),
<span class="small"><%= block.template_kind_i18n %></span>
<%= render 'admin/application/a11y/status', about: block %>
</td>
<td class="p-0 blocks__list__image">
<%= image_tag "communication/blocks/templates/#{block.template_kind}.jpg",
height: "100px", alt: '', style:"max-height: 75px" %>
<td class="blocks__list__image">
<%= image_tag "communication/blocks/templates/#{block.template_kind}.jpg", alt: '' %>
</td>
<td class="blocks__list__buttons">
<div class="btn-group">
......
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