38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
-content_for :header do
|
|
.qi_header
|
|
.right= link_to 'Ajouter un fournisseur', new_admin_p_fournisseur_path(), :class => "btn btn-primary" #, :remote => true
|
|
%h1
|
|
Achats
|
|
%span
|
|
Fournisseurs
|
|
|
|
|
|
|
|
.qi_search_row
|
|
-params[:search] = params[:search] || {}
|
|
=form_tag "", :method => "get", :onsubmit => "" do
|
|
|
|
=hidden_field_tag :column, params[:column]
|
|
=hidden_field_tag :direction, params[:direction]
|
|
|
|
%table
|
|
%tr
|
|
|
|
=boolean_search_field(:enabled, "Actif :")
|
|
|
|
=text_search_field(:code, "Code")
|
|
|
|
=text_search_field(:name, "Nom")
|
|
|
|
=boolean_search_field(:payment_comptant, "Paiement comptant :")
|
|
|
|
=option_search_field(:p_payment_type_id, "Type de paiement :", PPaymentType.all, :name)
|
|
|
|
|
|
|
|
=render :partial => "qi/qi_ordered_table_search_footer", :locals => {:collection_object => @p_fournisseurs}
|
|
|
|
|
|
=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @p_fournisseurs}
|
|
|