Sha256: 39756f513495a840db0c805de5b8c801cc3a31c853e020579470992d70ddb377

Contents?: true

Size: 1.31 KB

Versions: 2

Compression:

Stored size: 1.31 KB

Contents

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

#donations-search
  = form_tag contributions_path, :method => :get, :class => 'well form-inline' do
    = 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 :start, "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"

- unless @search.results.empty?
  #donations
    %table.table
      %thead
        %tr	
          %th Order
          %th Time
          %th Person
          %th Amount
          %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 contributions found between #{l @search.start} and #{l @search.stop}"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
artfully_ose-1.0.0.rc4 app/views/contributions/index.html.haml
artfully_ose-1.0.0.rc3 app/views/contributions/index.html.haml