allow to match category names on import/sync

This commit is contained in:
wvengen 2014-05-21 14:12:38 +02:00
parent 16b78ba2a0
commit d9c61b2db3
8 changed files with 30 additions and 6 deletions

View file

@ -1,6 +1,6 @@
= simple_form_for @article_category do |f|
= f.input :name
= f.input :description
= f.input :description, as: :text, input_html: {class: 'input-xxlarge'}
.form-actions
= f.submit class: 'btn'
= link_to t('ui.or_cancel'), article_categories_path

View file

@ -12,7 +12,7 @@
- @article_categories.each do |article_category|
%tr
%td= article_category.name
%td= article_category.description
%td= truncate article_category.description, length: 50
%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, :data => {:confirm => t('.confirm_delete')},