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

wip

parent f90a58ce
No related branches found
No related tags found
No related merge requests found
......@@ -13,10 +13,6 @@ main.content
right: 0
z-index: 1
table.table-striped
tbody
background: white
.card-footer
.pagination
margin-bottom: 0
......@@ -50,7 +50,7 @@ module Admin::ApplicationHelper
end
def table_classes
'table table-striped table-hover'
'table table-hover'
end
def submit(form)
......
<table class="table">
<table class="<%= table_classes %>">
<thead>
<tr>
<th><%= Communication::Website::Page.human_attribute_name('title') %></th>
......
<% content_for :title, Communication::Website::Page.model_name.human(count: 2) %>
<div class="card">
<%= render 'admin/communication/website/pages/list', pages: @pages %>
<div class="card-footer">
<%= paginate @pages, theme: 'bootstrap-5' %>
</div>
</div>
<%= render 'admin/communication/website/pages/list', pages: @pages %>
<%= paginate @pages, theme: 'bootstrap-5' %>
<% content_for :action_bar_right do %>
<%= create_link Communication::Website::Page %>
......
<table class="table">
<table class="<%= table_classes %>">
<thead>
<tr>
<th><%= Communication::Website::Post.human_attribute_name('title') %></th>
......
<% content_for :title, Communication::Website::Post.model_name.human(count: 2) %>
<div class="card">
<%= render 'admin/communication/website/posts/list', posts: @posts %>
<div class="card-footer">
<%= paginate @posts, theme: 'bootstrap-5' %>
</div>
</div>
<%= render 'admin/communication/website/posts/list', posts: @posts %>
<%= paginate @posts, theme: 'bootstrap-5' %>
<% content_for :action_bar_right do %>
<%= create_link Communication::Website::Post %>
......
<% content_for :title, Communication::Website.model_name.human(count: 2) %>
<table class="table">
<table class="<%= table_classes %>">
<thead>
<tr>
<th><%= Communication::Website.human_attribute_name('name') %></th>
......@@ -12,16 +12,16 @@
</thead>
<tbody>
<% @websites.each do |website| %>
<tr>
<td><%= link_to website, [:admin, website] %></td>
<td><%= link_to website.domain_url, website.domain_url, target: :_blank %></td>
<td><%= I18n.t("activerecord.attributes.communication/website.about_#{website.about_type}") %></td>
<td><%= website.about %></td>
<td class="text-end">
<%= edit_link website %>
<%= destroy_link website %>
</td>
</tr>
<tr>
<td><%= link_to website, [:admin, website] %></td>
<td><%= link_to website.domain_url, website.domain_url, target: :_blank %></td>
<td><%= I18n.t("activerecord.attributes.communication/website.about_#{website.about_type}") %></td>
<td><%= website.about %></td>
<td class="text-end">
<%= edit_link website %>
<%= destroy_link website %>
</td>
</tr>
<% end %>
</tbody>
</table>
......
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