allow to match category names on import/sync
This commit is contained in:
parent
16b78ba2a0
commit
d9c61b2db3
8 changed files with 30 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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')},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue