Sha256: ee051f6dcdef7ce06855bc43a9a76d3241aa9e18e44ac513f9f5927a2905f5d5

Contents?: true

Size: 1.7 KB

Versions: 2

Compression:

Stored size: 1.7 KB

Contents

- in_section :transactions
- content_for :header do
  %h1 Record Contribution

.row
  .span8.offset2
    %h4= link_to "#{@contribution.contributor.first_name} #{@contribution.contributor.last_name}", person_path(@contribution.contributor)
    %h4= @contribution.contributor.email
    .hr
    - if current_user.current_organization.has_active_fiscally_sponsored_project?
      %p Use this form for recording contributions received outside of Fractured Atlas.  Donations to Fractured Atlas Fiscally Sponsored Projects should be made through Fractured Atlas.
      %p Please contact support with any questions.
      
    %hr
  
    = form_for(@contribution, :url => contributions_path, :html=>{ :class=>'form-horizontal' }) do |form|
      = form.hidden_field :person_id
      = form.hidden_field :organization_id
      .control-group
        = form.label :subtype, "Type", :class => 'control-label'
        .controls
          = form.select :subtype, options_for_select(Action::GIVE_TYPES)
        
      .control-group
        = form.label :amount, "Dollar Value", :class => 'control-label'
        .controls      
          = form.text_field :amount, :class => :currency
        
      .control-group
        = form.label :occurred_at, "Date and Time", :class => 'control-label'
        .controls  
          = form.text_field :occurred_at, :value => l(Time.now, :format => :datetime_for_input), :readonly => true, :class => :datetimepicker
          
      .control-group
        = form.label :details, "Notes", :class => 'control-label'
        .controls 
          = form.text_field :details
      .form-actions
        = submit_tag "Save", :class => "btn"
        = link_to "Cancel", person_path(@contribution.person_id), :class => "btn"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
artfully_ose-1.0.0.rc4 app/views/contributions/new.html.haml
artfully_ose-1.0.0.rc3 app/views/contributions/new.html.haml