Refactored article_categories.
This commit is contained in:
parent
0b1682af7c
commit
0decbb36e1
12 changed files with 39 additions and 118 deletions
|
|
@ -4,5 +4,16 @@
|
|||
.box_title
|
||||
%h2 Artikelkategorien
|
||||
.column_content#categories
|
||||
#category_form.box.edit_form{:style => "display:none;margin-bottom:1em;"}
|
||||
#category_list= render :partial => 'article_categories/list'
|
||||
%table
|
||||
%tr
|
||||
%th Name
|
||||
%th Beschreibung
|
||||
%th
|
||||
- for article_category in ArticleCategory.all
|
||||
%tr{:class => cycle("even","odd", :name => 'category')}[article_category]
|
||||
%td= article_category.name
|
||||
%td= article_category.description
|
||||
%td
|
||||
= link_to icon(:edit), edit_article_category_path(article_category)
|
||||
= link_to icon(:delete), article_category, :method => :delete, :confirm => 'Are you sure?'
|
||||
%p= link_to 'Neue Kategorie anlegen', new_article_category_path
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue