Implemented fancy box for ajax forms. Refactored articles modul.
This commit is contained in:
parent
0decbb36e1
commit
9388e918a7
36 changed files with 490 additions and 157 deletions
|
|
@ -7,19 +7,19 @@
|
|||
%li
|
||||
Zugriff auf externe Datenbank
|
||||
%ul
|
||||
%li= link_to_function "Suchen/Importieren", "Element.toggle('import')"
|
||||
%li= link_to "Suchen/Importieren", "#import", 'data-toggle_this' => '#import'
|
||||
%li= link_to "Synchronisieren", sync_supplier_articles_path(@supplier), :method => :post
|
||||
|
||||
|
||||
#change_supplier{:style => "padding:0 0 0.5em 0.7em;"}
|
||||
%span{:style => "float:left"}
|
||||
Lieferantin wechseln:
|
||||
- form_tag do
|
||||
= select_tag :switch_supplier, |
|
||||
options_for_select( Supplier.all(:order => 'name').collect {|s| [s.name, url_for(supplier_articles_path(s))] }, |
|
||||
url_for(supplier_articles_path(@supplier)) ), |
|
||||
:onchange => "redirectTo(this)", |
|
||||
:style => "font-size: 0.9em;margin-left:1em;" |
|
||||
= form_tag do
|
||||
= select_tag :switch_supplier,
|
||||
options_for_select( Supplier.all(:order => 'name').collect {|s| [s.name, url_for(supplier_articles_path(s))] },
|
||||
url_for(supplier_articles_path(@supplier)) ),
|
||||
:onchange => "redirectTo(this)",
|
||||
:style => "font-size: 0.9em;margin-left:1em;"
|
||||
|
||||
- unless @supplier.shared_supplier.nil?
|
||||
#import.single_column{:style => "display:none; clear:both"}
|
||||
|
|
@ -27,9 +27,7 @@
|
|||
%h2 Artikel importieren
|
||||
.column_content
|
||||
#search{:style => "padding-bottom:3em"}
|
||||
- form_remote_tag :url => shared_supplier_articles_path(@supplier), |
|
||||
:before => "Element.show('loader')", :success => "Element.hide('loader')", |
|
||||
:method => :get do |
|
||||
= form_tag shared_supplier_articles_path(@supplier), :method => :get, :remote => true do
|
||||
= text_field_tag :import_query, params['import_query'], :size => 10
|
||||
= submit_tag "Suchen"
|
||||
- if @supplier.shared_supplier.lists
|
||||
|
|
@ -42,30 +40,29 @@
|
|||
= check_box_tag "regional", "1", false
|
||||
#search_results
|
||||
// "import_search_results" will be rendered
|
||||
= link_to_function "Schließen", "Element.hide('import')"
|
||||
= link_to "Schließen", "#import", 'data-toggle_this' => '#import'
|
||||
|
||||
.single_column{:style => 'width:100%; clear:both'}
|
||||
.box_title
|
||||
.column_content
|
||||
#links
|
||||
%b= remote_link_to "Neuer Artikel", :url => new_supplier_article_path(@supplier)
|
||||
%b= link_to "Neuer Artikel", new_supplier_article_path(@supplier), :remote => true
|
||||
|
|
||||
= link_to "Alle bearbeiten", edit_all_supplier_articles_path(@supplier)
|
||||
|
|
||||
= link_to "Artikel hochladen", upload_supplier_articles_path(@supplier)
|
||||
|
|
||||
= link_to_if @current_user.role_orders?, "Bestellung anlegen", {:controller => 'orders', :action => 'new', :supplier_id => @supplier }
|
||||
- if current_user.role_orders?
|
||||
|
|
||||
= link_to "Bestellung anlegen", new_order_path(:supplier_id => @supplier)
|
||||
|
||||
#article_filter
|
||||
#article_search_form{:style=>"display:inline;"}
|
||||
- form_remote_tag :url => supplier_articles_path(@supplier), |
|
||||
:before => "Element.show('loader')", :success => "Element.hide('loader')", |
|
||||
:method => :get do |
|
||||
= form_tag supplier_articles_path(@supplier), :method => :get, :remote => true do
|
||||
%label{:for => 'article_name'} Suche im Artikelnamen:
|
||||
= text_field_tag("query", params['query'], :size => 10 )
|
||||
= submit_tag "Suchen"
|
||||
|
||||
%form{ :action => url_for(update_selected_supplier_articles_path(@supplier)), :method => "post", :id => "articlesInListForm" }
|
||||
#table= render :partial => 'articles'
|
||||
|
||||
= form_tag update_selected_supplier_articles_path(@supplier), :id => "articlesInListForm" do
|
||||
#table= render 'articles'
|
||||
|
||||
#edit_article{:style => "display:none"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue