coton_app/app/views/admin/p_customers/index.html.haml
2019-11-14 00:39:42 +01:00

63 lines
1.2 KiB
Plaintext

.qi_header
.right= link_to 'Ajouter un client', new_admin_p_customer_path(), :class => "btn btn-primary", :remote => true
%h1
Ventes
%span
Clients
-if false and params[:search].to_s == "" and ! params[:page]
.qi_row
.qi_pannel.qi_plain.padding
%table.table
%tr
%th Email
%th Code
%th Nom
%th CP
%th Ville
%th Encours
%th Nbr emails
%th
%tbody#p_customers_rows
=render @fav_p_customers
.qi_row
.qi_pannel.qi_plain.padding
=form_tag "", :method => "get", :onsubmit => "" do
=text_field_tag :search, params[:search],:class => "form-control", :placeholder => "Rechercher"
=submit_tag "Recherche", :class => "btn btn-default", :style => "margin-bottom: 10px;"
%table.table
%tr
%th Email
%th Code
%th Nom
%th CP
%th Ville
%th Encours
%th Nbr emails
%th
%tbody#p_customers_rows
=render @p_customers
#pagination
= paginate @p_customers #, :remote => true