Sha256: 6deef7e6def84ea56ab78905ec241f08e0e05fd624e936b9a9b1d5bab8c0487d

Contents?: true

Size: 1.57 KB

Versions: 28

Compression:

Stored size: 1.57 KB

Contents

- in_section :transactions
- content_for :header do
  %h1 Record Contribution

.row
  .span4
    %h3 New Donor
    = form_for Person.new, :url => people_path, :remote => true, :html => { "data-type" => :json } do |form|
      %ul
        %li
          .label= form.label :first_name, "First Name"
          .element= form.text_field :first_name
        %li
          .label= form.label :last_name, "Last Name"
          .element= form.text_field :last_name
        %li
          .label= form.label :email, "Email"
          .element= form.text_field :email
      = form.submit "Save", :class => "btn btn-primary"
    .hidden-target
      %span.name
      = form_for(@contribution, :url => new_contribution_path, :html => {:method => :get}) do |form|
        = form.hidden_field :person_id, :id => "person_id"
        = form.submit "Select", :class => "mini btn"
  .span8
    %h3 Find Donor
    %ul.wizard-list
      - @contributors.each do |contributor|
        %li
          %span.name 
            ="#{contributor.first_name} #{contributor.last_name}"
            -unless contributor.email.nil?
              ="(#{contributor.email})"
          = form_for(@contribution, :url => new_contribution_path, :html => {:method => :get}) do |form|
            = form.hidden_field :person_id, :value => contributor.id
            = form.submit "Select", :class => "mini btn"

    = form_tag new_contribution_path, :method => :get do
      %ul
        %li
          .label= label_tag :terms, "Search"
          .paired.element
            = text_field_tag :terms
            = submit_tag "Search", :class => "btn"

Version data entries

28 entries across 28 versions & 1 rubygems

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