You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
641 B
25 lines
641 B
%p#notice= notice
|
|
%h1 Categories
|
|
%table
|
|
%thead
|
|
%tr
|
|
%th Name
|
|
%th Blurb
|
|
%th Description
|
|
%th External
|
|
%th Parent category
|
|
%th{:colspan => "3"}
|
|
%tbody
|
|
- @categories.each do |category|
|
|
%tr
|
|
%td= category.name
|
|
%td= category.blurb
|
|
%td= category.description
|
|
%td= category.external_id
|
|
%td= category.parent_category_id
|
|
%td= link_to 'Show', category
|
|
%td= link_to 'Edit', edit_category_path(category)
|
|
%td= link_to 'Destroy', category, method: :delete, data: { confirm: 'Are you sure?' }
|
|
%br/
|
|
= link_to 'New Category', new_category_path
|