Sha256: 752b1a2bc28ecab639e476e13554edb94d7b9022e0da024616c4687533fd767e

Contents?: true

Size: 1.05 KB

Versions: 6

Compression:

Stored size: 1.05 KB

Contents

= content_for :menu do
  = icon_to 'navigation90.png', members_path, title:'Liste des membres'
  = icon_to 'money-plus.png', new_member_payment_path(@member), title:'Nouveau paiement'


.champ
  %h3 Historique des paiements reçus de #{@member.to_s} 
  
  %table.table.table-striped.table-bordered.table-condensed(cellpadding="0" cellspacing="0" border="0")
    %thead
      %tr
        %th Le
        %th Montant
        %th Par
        %th Imputé sur 
        %th Reste à imputer
        %th Actions
    %tbody
      - @payments.each do |payment|
        %tr
          %td= payment.date
          %td= number_to_currency(payment.amount, locale: :fr)
          %td= payment.mode
          %td= list_imputations(payment)
          %td= number_to_currency payment.non_impute, locale: :fr

          %td
            - if (payment.non_impute != 0.0)
              = link_to 'imputation', new_payment_reglement_path(payment), title: 'Imputer le solde sur une autre adhésion'
            = icon_to 'supprimer.png', [@member,payment], method: :delete, confirm: 'Etes vous sûr ?'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
adherent-0.1.1 app/views/adherent/payments/index.html.haml
adherent-0.1.0 app/views/adherent/payments/index.html.haml
adherent-0.0.9 app/views/adherent/payments/index.html.haml
adherent-0.0.7 app/views/adherent/payments/index.html.haml
adherent-0.0.6 app/views/adherent/payments/index.html.haml
adherent-0.0.5 app/views/adherent/payments/index.html.haml