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

category UI coherence

parent 7ac5fa21
No related branches found
No related tags found
No related merge requests found
......@@ -13,8 +13,17 @@
<span class="close_text"><%= t 'folder.close' %></span>
<% end %>
<div class="btn-group ms-auto" role="group">
<%= edit_link category %>
<%= destroy_link category %>
<%= link_to t('show'),
admin_communication_website_category_path(website_id: @website.id, id: category.id),
class: 'action ps-3' %>
<%= link_to t('edit'),
edit_admin_communication_website_category_path(website_id: @website.id, id: category.id),
class: 'action ps-3' %>
<%= link_to t('delete'),
admin_communication_website_category_path(website_id: @website.id, id: category.id),
method: :delete,
data: { confirm: t('please_confirm') },
class: 'action text-danger ps-3' %>
</div>
</div>
<ul class="list-unstyled treeview__children js-treeview-children js-treeview-sortable-container ms-4" data-id="<%= category.id %>">
......
<% content_for :title, "#{Communication::Website::Category.model_name.human(count: 2)} (#{@categories.count})" %>
<%= render 'admin/communication/websites/sidebar' do %>
<div class="card">
<div class="card-body">
<ul class="list-unstyled treeview treeview--sortable js-treeview js-treeview-sortable js-treeview-sortable-container"
data-id=""
data-sort-url="<%= reorder_admin_communication_website_categories_path %>">
<%= render 'treebranch', categories: @root_categories %>
</ul>
</div>
</div>
<% end %>
<% content_for :action_bar_right do %>
<%= create_link Communication::Website::Category %>
<%
action = create_link Communication::Website::Category
%>
<%= osuny_panel Communication::Website::Category.model_name.human(count: 2), action: action do %>
<ul class="list-unstyled treeview treeview--sortable js-treeview js-treeview-sortable js-treeview-sortable-container"
data-id=""
data-sort-url="<%= reorder_admin_communication_website_categories_path %>">
<%= render 'treebranch', categories: @root_categories %>
</ul>
<% end %>
<% end %>
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