-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a few pages... added a Summary page for the treasurer
- Loading branch information
Showing
14 changed files
with
114 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,4 +49,8 @@ def received? | |
received_at? | ||
end | ||
|
||
def liquid_value? | ||
/cash|check/i === nature | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,10 @@ | ||
row_id = "business_#{@business.id}" | ||
|
||
#page.visual_effect :highlight, row_id, :startcolor => "#19ff19" | ||
if @business.mailing_required | ||
page << "$('#{row_id}').firstDescendant().addClassName('hi');" | ||
else | ||
page << "$('#{row_id}').firstDescendant().removeClassName('hi');" | ||
end | ||
|
||
#flash.each do |name, msg| | ||
# page << %div{:id => "flash_#{name}"}= msg | ||
#end | ||
flash.clear | ||
|
||
#if @business.errors | ||
# page << "console.debug('Errors on saving business: #{@business.errors.full_messages.join(" ")}');" | ||
#end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
- title "Contributions Summary" | ||
|
||
|
||
Retrieved #{Time.now.strftime("%a %d %B %Y @ %I:%M %p")} | ||
|
||
%table#contributions_summary | ||
%thead | ||
%tr | ||
- @headers.each do |header| | ||
%th= header | ||
|
||
%tfoot | ||
%tr | ||
%th.right{ :colspan => 2 } Total Value | ||
%th.right= @total_value | ||
%tr | ||
%th.right{ :colspan => 2 } Total Liquid Value | ||
%th.right= @total_liquid_value | ||
|
||
%tbody | ||
- @contributions.each do |c| | ||
%tr{:class => cycle('a','b')} | ||
%td= c.business.name | ||
%td= c.nature | ||
%td.right= c.value.to_s | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters