Sha256: 0789d478398bfe43604d57ca5d31860d3d2c60137b3f2e47c0c949bec98ea41e

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 => "20x3"
  
  .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 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.beta.1 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.alpha.2 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.alpha.1 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.27 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.26 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.24 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.23 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.21 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.20 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.19 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.18 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.17 app/views/contributions/_form.html.haml
artfully_ose-1.2.0.pre.16 app/views/contributions/_form.html.haml