Nicolas Bally dbcab11c01 suite
2020-07-22 15:50:47 +02:00

48 lines
1.2 KiB
Plaintext

.qi_header
.right{:style => "text-align:right;"}
= link_to i(:pencil), edit_admin_p_customer_path(@p_customer), :remote => false
%h1
Utilisateurs
%span
Historique des changements de coordonnées
%span
=@p_customer.code
=@p_customer.show_name
%br
.qi_tab_header.qi_padding
.right{:style => "text-align:right;"}
-if @p_customer.npai
= link_to "Lever le NPAI", toggle_npai_admin_p_customer_path(@p_customer), :remote => false, :class => "btn btn-success"
-else
= link_to "Signaler le NPAI", toggle_npai_admin_p_customer_path(@p_customer), :remote => false, :class => "btn btn-danger"
.clear
-params[:search][:per_page] = params[:search][:per_page] || 50
-per_page = params[:search][:per_page]
-page = (params[:page] and params[:page] != "") ? params[:page] : 1
-@particular_hists =@p_customer.particular_hists
-@particular_hists = sort_by_sorting(@particular_hists, "created_at DESC")
-@particular_hists = @particular_hists.page(page).per(per_page)
=#debug MailHist.qi_ordered_table_name
=render :partial => "qi/qi_ordered_table", :locals => {:qi_ordered_table_collection => @particular_hists}