2009-01-16 16:19:26 +01:00
|
|
|
- title "Artikel von #{@supplier.name}"
|
|
|
|
|
|
|
|
// import menu
|
|
|
|
- unless @supplier.shared_supplier.nil?
|
2009-02-10 13:26:10 +01:00
|
|
|
.menu{:style => 'width: 16em'}
|
2009-01-06 11:49:19 +01:00
|
|
|
%ul
|
2009-01-16 16:19:26 +01:00
|
|
|
%li
|
2009-02-10 13:26:10 +01:00
|
|
|
Zugriff auf externe Datenbank
|
2009-01-16 16:19:26 +01:00
|
|
|
%ul
|
2011-05-19 19:49:37 +02:00
|
|
|
%li= link_to "Suchen/Importieren", "#import", 'data-toggle-this' => '#import'
|
2009-02-10 13:26:10 +01:00
|
|
|
%li= link_to "Synchronisieren", sync_supplier_articles_path(@supplier), :method => :post
|
2009-01-16 16:19:26 +01:00
|
|
|
|
|
|
|
|
|
|
|
#change_supplier{:style => "padding:0 0 0.5em 0.7em;"}
|
|
|
|
%span{:style => "float:left"}
|
2009-03-22 13:56:54 +01:00
|
|
|
Lieferantin wechseln:
|
2011-05-19 19:49:37 +02:00
|
|
|
= select_tag :switch_supplier,
|
|
|
|
options_for_select(Supplier.order(:name).map {|s| [s.name, supplier_articles_url(s)] }, supplier_articles_url(@supplier)),
|
|
|
|
:style => "font-size: 0.9em;margin-left:1em;",
|
|
|
|
'data-redirect-to' => true
|
2009-01-16 16:19:26 +01:00
|
|
|
|
|
|
|
- unless @supplier.shared_supplier.nil?
|
|
|
|
#import.single_column{:style => "display:none; clear:both"}
|
|
|
|
.box_title
|
2009-02-10 13:26:10 +01:00
|
|
|
%h2 Artikel importieren
|
2009-01-16 16:19:26 +01:00
|
|
|
.column_content
|
|
|
|
#search{:style => "padding-bottom:3em"}
|
2011-05-18 17:37:10 +02:00
|
|
|
= form_tag shared_supplier_articles_path(@supplier), :method => :get, :remote => true do
|
2009-01-16 16:19:26 +01:00
|
|
|
= text_field_tag :import_query, params['import_query'], :size => 10
|
2009-02-10 13:26:10 +01:00
|
|
|
= submit_tag "Suchen"
|
2009-01-16 16:19:26 +01:00
|
|
|
- if @supplier.shared_supplier.lists
|
2009-02-10 13:26:10 +01:00
|
|
|
Suche in folgenden Listen:
|
2009-01-16 16:19:26 +01:00
|
|
|
- @supplier.shared_supplier.lists.each do |token, name|
|
|
|
|
= check_box_tag "lists[#{token}]", "1", true
|
|
|
|
= name
|
|
|
|
|
|
2009-02-10 13:26:10 +01:00
|
|
|
Nur aus der Region:
|
2009-01-16 16:19:26 +01:00
|
|
|
= check_box_tag "regional", "1", false
|
|
|
|
#search_results
|
|
|
|
// "import_search_results" will be rendered
|
2011-05-19 19:49:37 +02:00
|
|
|
= link_to "Schließen", "#import", 'data-toggle-this' => '#import'
|
2009-01-16 16:19:26 +01:00
|
|
|
|
|
|
|
.single_column{:style => 'width:100%; clear:both'}
|
|
|
|
.box_title
|
|
|
|
.column_content
|
|
|
|
#links
|
2011-05-18 17:37:10 +02:00
|
|
|
%b= link_to "Neuer Artikel", new_supplier_article_path(@supplier), :remote => true
|
2009-01-16 16:19:26 +01:00
|
|
|
|
|
2009-02-10 13:26:10 +01:00
|
|
|
= link_to "Alle bearbeiten", edit_all_supplier_articles_path(@supplier)
|
2009-01-16 16:19:26 +01:00
|
|
|
|
|
2009-02-10 13:26:10 +01:00
|
|
|
= link_to "Artikel hochladen", upload_supplier_articles_path(@supplier)
|
2011-05-18 17:37:10 +02:00
|
|
|
- if current_user.role_orders?
|
|
|
|
|
|
|
|
|
= link_to "Bestellung anlegen", new_order_path(:supplier_id => @supplier)
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2009-01-16 16:19:26 +01:00
|
|
|
#article_filter
|
|
|
|
#article_search_form{:style=>"display:inline;"}
|
2011-05-19 19:49:37 +02:00
|
|
|
= form_tag supplier_articles_path(@supplier), :method => :get, :remote => true, 'data-submit-onchange' => true do
|
2009-02-10 13:26:10 +01:00
|
|
|
%label{:for => 'article_name'} Suche im Artikelnamen:
|
2011-05-19 19:49:37 +02:00
|
|
|
= text_field_tag :query, params[:query], :size => 10
|
2009-02-10 13:26:10 +01:00
|
|
|
= submit_tag "Suchen"
|
2011-05-18 17:37:10 +02:00
|
|
|
|
2011-05-19 19:49:37 +02:00
|
|
|
= form_tag update_selected_supplier_articles_path(@supplier), :id => "articlesInListForm",
|
|
|
|
'data-submit-onchange' => true do
|
2011-05-18 17:37:10 +02:00
|
|
|
#table= render 'articles'
|
2009-02-12 21:38:41 +01:00
|
|
|
|
2009-02-10 13:26:10 +01:00
|
|
|
#edit_article{:style => "display:none"}
|