Sha256: b4b66e9d71c357c44c4b337b550b2957119f05acd7510ec5ddccd14f532326a0

Contents?: true

Size: 899 Bytes

Versions: 5

Compression:

Stored size: 899 Bytes

Contents

<%= content_for :sidebar do %>
	<p class="hint text_only large padded">
		<%= t(:'adva.categories.hints.reorder')%>
	</p>
<% end %>

<%=
	table_for @section.categories, :class => 'categories list tree' do |t|
		t.column :category, :actions

		t.row do |r, category|
			r.add_class "level_#{category.level}"
			r.cell link_to(category.title, [:edit, :admin, @section, category], class: 'category')
			r.cell link_to("Edit category", [:edit, :admin, @section, category], class: 'edit') + "\n" +
             link_to("Delete category", [:admin, @section, category], method: :delete, class: "delete", data: { confirm: "Are you sure you want to delete this category?" })
		end

		t.empty :p, :class => 'empty' do
	    t(:'adva.categories.no_categories_in_section', :section => @section.title) + "\n" +
			link_to(t(:'adva.categories.links.create_now'), [:new, :admin, @section, :category])
		end
	end
%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adva-0.1.4 app/views/admin/page/categories/index.html.erb
adva-0.1.3 app/views/admin/page/categories/index.html.erb
adva-0.1.2 app/views/admin/page/categories/index.html.erb
adva-0.1.1 app/views/admin/page/categories/index.html.erb
adva-0.1.0 app/views/admin/page/categories/index.html.erb