app/views/contributions/find_person.html.haml in artfully_ose-1.2.0 vs app/views/contributions/find_person.html.haml in artfully_ose-1.3.0.pre1

- old
+ new

@@ -6,39 +6,40 @@ .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 + = form.label :first_name, "First Name" + = form.text_field :first_name %li - .label= form.label :last_name, "Last Name" - .element= form.text_field :last_name + = form.label :last_name, "Last Name" + = form.text_field :last_name %li - .label= form.label :email, "Email" - .element= form.text_field :email + = form.label :email, "Email" + = 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 + %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_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= label_tag :terms, "Search" + = label_tag :terms, "Search" .paired.element = text_field_tag :terms - = submit_tag "Search", :class => "btn" + = submit_tag "Search", :class => "btn find-donor" + +