2017-08-14 10:53:30 +02:00

76 lines
1.9 KiB
Plaintext

.qi_header
%h1
Donateurs
%span liste des opérations
.qi_row
.qi_pannel.qi_plain.padding
-if !Admin::SPECIAL_USER_ID.include?(current_admin.id)
.header
=form_tag "", :method => "get" do
.row{:style => "margin:0 -15px;"}
.col-xs-6
.input-group
=text_field_tag :start, params[:start],:class => "form-control datepicker", :placeholder => "Début"
%span.input-group-addon.btn{:onclick => "$(this).prev('input').val('');"}
=ic(:times)
.col-xs-6
.input-group
=text_field_tag :stop, params[:stop],:class => "form-control datepicker", :placeholder => "Fin"
%span.input-group-addon.btn{:onclick => "$(this).prev('input').val('');"}
=ic(:times)
=select_tag :payment_type_id, options_for_select([["Type de paiement", ""],["CB", 3] , ["Chèque", 1], ["SEPA", 5] ], params[:payment_type_id])
=text_field_tag :q, params[:q], :placeholder => "Nom"
=submit_tag "filtrer", :class => "btn btn-default", :style => "margin-bottom: 10px;"
.result_count
%table.table.table-hover
%tr
%th
Id
%th
%th
Date de création
%th Date de paiement
%th
Payé ?
%th{:style => "width:150px"}
Coordonnées
%th
Email /tel
%th
Type de paiement
%th Montant
%th Ponctuel/mensuel
%th Type de don
%th Détail de don
%th{:style => "width:120px;"}
-@total = 0.0
-@total_nbr = 0
=render @donator_transactions
%p
Total transaction payées sur cette période (
=@total_nbr
):
=number_to_currency @total
- if params[:archives]
#pagination
= paginate @donator_transactions