Sha256: e563b23d9cbcc6458a2ecfb4954b68c11d93cc360f9b4ee41c4cce9a7232550c

Contents?: true

Size: 1.38 KB

Versions: 26

Compression:

Stored size: 1.38 KB

Contents

- in_section :transactions
- content_for :header do
  %h1 Donations

#donations-search
  = form_tag contributions_path, :method => :get, :class => 'well form-inline' do
    .pull-left
      = label_tag :start, "From", :class => "control-label"
      = text_field_tag :start,"#{l @search.start, :format => :date_for_input}", :readonly => true, :class => 'datepicker input-small'
      = label_tag :stop, "To", :class => "control-label"
      = text_field_tag :stop, "#{l @search.stop, :format => :date_for_input}", :readonly => true, :class => 'datepicker input-small'
    .pull-right
      = submit_tag "Search", :class => "btn"
      = submit_tag "Download", :class => "btn"

- unless @search.results.empty?
  #donations
    %table.table
      %thead
        %tr	
          %th Order
          %th Time
          %th Person
          %th Total Contribution
          %th Non-deductible
      %tbody
        - @search.results.each do |order|
          - order.items.select(&:donation?).each do |item|
            %tr
              %td= link_to order.id, order_path(order.id)
              %td= l order.created_at_local_to_organization
              %td= link_to_person order.person
              %td= number_as_cents item.total_price
              %td= number_as_cents item.nongift_amount
    = will_paginate(@search.results)
- else
  %h4= "No donations found between #{l @search.start} and #{l @search.stop}"

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.alpha.2 app/views/contributions/index.html.haml
artfully_ose-1.2.0.alpha.1 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.27 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.26 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.24 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.23 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.21 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.20 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.19 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.18 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.17 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.16 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.15 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.12 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.11 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.10 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.9 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.8 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.7 app/views/contributions/index.html.haml
artfully_ose-1.2.0.pre.6 app/views/contributions/index.html.haml