Sha256: c0fbc3f50ff2d34fea37d900b57ec07ec6c11788b6195163d8b10615a5915439

Contents?: true

Size: 1.56 KB

Versions: 5

Compression:

Stored size: 1.56 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"
    .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

5 entries across 5 versions & 1 rubygems

Version Path
artfully_ose-1.1.0 app/views/contributions/find_person.html.haml
artfully_ose-1.1.0.rc2 app/views/contributions/find_person.html.haml
artfully_ose-1.1.0.rc1 app/views/contributions/find_person.html.haml
artfully_ose-1.0.0.rc4 app/views/contributions/find_person.html.haml
artfully_ose-1.0.0.rc3 app/views/contributions/find_person.html.haml