Sha256: 5fc4aee9b8eaab134b51ca76a90481d8fbe3e242ed2ccccdef42a71b29615c58

Contents?: true

Size: 1.85 KB

Versions: 14

Compression:

Stored size: 1.85 KB

Contents

- if current_user.current_organization.has_active_fiscally_sponsored_project?
  %p Use this form for recording donations received outside of Fractured Atlas.  Donations to Fractured Atlas Fiscally Sponsored Projects should be made through Fractured Atlas.  Please <a href='mailto:support@artful.ly'>contact support</a> with any questions.

= form_for(contribution, :html=>{ :class=>'form-horizontal' }) do |form|
  = form.hidden_field :person_id
  = form.hidden_field :organization_id
  = hidden_field_tag(:order_id, contribution.order.id) if contribution.order
  .control-group
    = form.label :subtype, "Type", :class => 'control-label'
    .controls
      = form.select :subtype, options_for_select(GiveAction.subtypes, contribution.subtype)
      
  .control-group
    = form.label :payment_method, "Payment method", :class => 'control-label'
    .controls
      = form.select :payment_method, options_for_select([ "Cash", "Check", "Credit card", "Other" ], contribution.payment_method)
    
  .control-group
    = form.label :amount, "Deductible Amount", :class => 'control-label'
    .controls      
      = form.text_field :amount, :class => :currency
    
  .control-group
    = form.label :nongift_amount, "Non-Deductible Amount", :class => 'control-label'
    .controls      
      = form.text_field :nongift_amount, :class => :currency
    
  .control-group
    = form.label :occurred_at, "Date and Time", :class => 'control-label'
    .controls  
      = form.text_field :occurred_at, :value => l(contribution.occurred_at_local_to_organization, :format => :datetime_for_input), :readonly => true, :class => :datetimepicker
      
  .control-group
    = form.label :details, "Notes", :class => 'control-label'
    .controls 
      = form.text_area :details, :size => "20x5" 
  
  .form-actions
    = submit_tag "Save", :class => "btn"
    = link_to "Cancel", cancel_path, :class => "btn"

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.15 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.12 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.11 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.10 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.9 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.8 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.7 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.6 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.5 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.4 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.3 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.2 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.1 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre app/views/contributions/_form.html.haml