foodsoft/app/views/articles/_sync.html.haml

33 lines
1007 B
Plaintext
Raw Normal View History

2015-03-27 14:38:16 +01:00
- if @outlisted_articles.any?
%h2= t '.outlist.title'
%p
= t('.outlist.body').html_safe
%ul
- for article in @outlisted_articles
%li
= hidden_field_tag "outlisted_articles[#{article.id}]", '1'
= article.name
- if article.in_open_order
.alert= t '.outlist.alert_used', article: article.name
%hr/
- if @updated_article_pairs.any?
%h2= t '.update.title'
%p
%i
= t '.update.update_msg', count: @updated_article_pairs.size
= t '.update.body'
= render 'sync_table', articles: @updated_article_pairs, field: 'articles', hidden_fields: %w(shared_updated_on)
%hr/
- if @new_articles.any?
%h2= t '.upnew.title'
%p
%i= t '.upnew.body_count', count: @new_articles.length
= render 'sync_table', articles: @new_articles, field: 'new_articles', hidden_fields: %w(shared_updated_on order_number availability)
2015-03-27 14:38:16 +01:00
%hr/
2015-04-03 15:53:08 +02:00
- if ignored_article_count > 0
2015-03-27 14:38:16 +01:00
%p
2015-04-03 15:53:08 +02:00
%i= t '.outlist.body_ignored', count: ignored_article_count