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.pre.7 app/views/contributions/find_person.html.haml
artfully_ose-1.2.0.pre.6 app/views/contributions/find_person.html.haml
artfully_ose-1.2.0.pre.5 app/views/contributions/find_person.html.haml
artfully_ose-1.2.0.pre.4 app/views/contributions/find_person.html.haml
artfully_ose-1.2.0.pre.3 app/views/contributions/find_person.html.haml
artfully_ose-1.2.0.pre.2 app/views/contributions/find_person.html.haml
artfully_ose-1.2.0.pre.1 app/views/contributions/find_person.html.haml
artfully_ose-1.2.0.pre app/views/contributions/find_person.html.haml