Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial scaffolding #16

Open
wants to merge 3 commits into
base: feature-recurring-donation-reporting
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions app/controllers/recurring_donations_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class RecurringDonationsController < ApplicationController

before_filter :is_staff_filter

public

def index
@page_title = "Recurring donation history"
@header = @page_title

end
end
2 changes: 2 additions & 0 deletions app/views/donations/index.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
%h1= @header

= link_to 'Recurring Donations', recurring_donations_path, class: 'btn btn-primary', style: 'float: right; margin-top: 10px;'

.pagination-container
.pagination.mx-auto
= will_paginate @donations, :previous_label => '&laquo;', :next_label => '&raquo;', :container => false
Expand Down
16 changes: 16 additions & 0 deletions app/views/recurring_donations/index.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
%h1= @header

= link_to 'Donations', donations_path, class: 'btn btn-primary', style: 'float: right; margin-top: 10px;'

%table.a1-table.table.table-hover#donations
%thead
%tr
%th Customer
%th Order#
%th Start Date
%th Monthly Amount
%th Total to Date
%th End Date
%th Item Description or Acct Code

%br
6 changes: 6 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
end
end

resources :recurring_donations, :only => [:index, :update] do
member do
post :update_comment_for
end
end

# RSS

get '/ics/showdates.ics' => 'info#showdates'
Expand Down
Loading