foodsoft/app/views/article_categories/index.html.haml

20 lines
688 B
Text
Raw Normal View History

- title t('.title')
2009-01-18 17:42:51 +01:00
%p= link_to t('.new'), new_article_category_path, class: 'btn btn-primary'
2012-10-29 17:35:50 +01:00
%table.table.table-striped
2012-11-10 16:51:30 +01:00
%thead
%tr
%th= t('simple_form.labels.article_category.name')
%th= t('simple_form.labels.article_category.description')
2012-11-10 16:51:30 +01:00
%th
%tbody
- @article_categories.each do |article_category|
%tr
%td= article_category.name
%td= article_category.description
%td
= link_to t('ui.edit'), edit_article_category_path(article_category), class: 'btn btn-mini'
= link_to t('ui.delete'), article_category, :method => :delete, :confirm => t('.confirm_delete'),
2012-11-10 16:51:30 +01:00
class: 'btn btn-mini btn-danger'