2013-10-03 14:07:03 +02:00
|
|
|
- title t('.title')
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2013-04-08 01:00:49 +02:00
|
|
|
= form_tag update_synchronized_supplier_articles_path(@supplier) do
|
2014-05-21 21:24:03 +02: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_articles.any?
|
|
|
|
%h2= t '.update.title'
|
|
|
|
%p
|
|
|
|
%i
|
|
|
|
= t '.update.update_msg', count: @updated_articles.size
|
|
|
|
= t '.update.body'
|
|
|
|
= render 'sync_table', articles: @updated_articles, 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)
|
|
|
|
%hr/
|
|
|
|
|
2014-01-24 22:20:29 +01:00
|
|
|
- if @ignored_article_count > 0
|
2014-05-21 21:24:03 +02:00
|
|
|
%p
|
|
|
|
%i= t '.outlist.body_ignored', count: @ignored_article_count
|
|
|
|
|
2009-01-06 11:49:19 +01:00
|
|
|
= hidden_field 'supplier', 'id'
|
2013-03-22 00:20:30 +01:00
|
|
|
= submit_tag t('.submit'), class: 'btn btn-primary'
|
2013-04-04 02:49:52 +02:00
|
|
|
= link_to t('ui.or_cancel'), supplier_articles_path(@supplier)
|