Fixed article categories.
This commit is contained in:
parent
fc1c173718
commit
27c719d8da
2 changed files with 18 additions and 18 deletions
|
@ -1,4 +1,6 @@
|
||||||
= simple_form_for @article_category do |f|
|
= simple_form_for @article_category do |f|
|
||||||
= f.input :name
|
= f.input :name
|
||||||
= f.input :description
|
= f.input :description
|
||||||
= f.submit
|
.form-actions
|
||||||
|
= f.submit class: 'btn'
|
||||||
|
= link_to 'oder abbrechen', article_categories_path
|
|
@ -1,19 +1,17 @@
|
||||||
- title "Artikelkategorien"
|
- title "Artikelkategorien"
|
||||||
|
|
||||||
.left_column{:style => "width:50em"}
|
%p= link_to "Neue Kategorie anlegen", new_article_category_path, class: 'btn btn-primary'
|
||||||
.box_title
|
|
||||||
%h2 Artikelkategorien
|
%table.table.table-striped
|
||||||
.column_content#categories
|
%tr
|
||||||
%table
|
%th Name
|
||||||
%tr
|
%th Beschreibung
|
||||||
%th Name
|
%th
|
||||||
%th Beschreibung
|
- for article_category in ArticleCategory.all
|
||||||
%th
|
%tr{:class => cycle("even","odd", :name => 'category')}[article_category]
|
||||||
- for article_category in ArticleCategory.all
|
%td= article_category.name
|
||||||
%tr{:class => cycle("even","odd", :name => 'category')}[article_category]
|
%td= article_category.description
|
||||||
%td= article_category.name
|
%td
|
||||||
%td= article_category.description
|
= link_to "Bearbeiten", edit_article_category_path(article_category), class: 'btn btn-mini'
|
||||||
%td
|
= link_to "Löschen", article_category, :method => :delete, :confirm => 'Are you sure?',
|
||||||
= link_to icon(:edit), edit_article_category_path(article_category)
|
class: 'btn btn-mini btn-danger'
|
||||||
= link_to icon(:delete), article_category, :method => :delete, :confirm => 'Are you sure?'
|
|
||||||
%p= link_to 'Neue Kategorie anlegen', new_article_category_path
|
|
||||||
|
|
Loading…
Reference in a new issue