- 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 = form.label :first_name, "First Name" = form.text_field :first_name %li = form.label :last_name, "Last Name" = form.text_field :last_name %li = form.label :email, "Email" = form.text_field :email = form.submit "Save", :class => "btn btn-primary" .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, :remote => true, :html => {:method => :get, :class => 'ajax-form'}) do |form| -unless @campaign.nil? = form.hidden_field :campaign_id, :value => @campaign.id = form.hidden_field :person_id, :value => contributor.id = form.submit "Select", :class => "mini btn" = form_tag new_contribution_path, :method => :get do -unless @campaign.nil? = hidden_field_tag :campaign_id, @campaign.id %ul %li = label_tag :terms, "Search" .paired.element = text_field_tag :terms = submit_tag "Search", :class => "btn find-donor"