[#4420] Add the options for Retainers to select which month to display. (UI only).

This commit is contained in:
Eric Davis committed 2010-09-08 11:57:46 -07:00
1 parent d3052d7d54
commit ad6766fd2f
3 files changed
+32 -2

No files matched your search

+11
View File
@@ -85,4 +85,15 @@ module ContractsHelper
def format_value_field_for_contracts(value)
number_with_precision(value, :precision => Contract::ViewPrecision, :delimiter => ',')
end
def retainer_period_options(deliverable)
options = []
options << content_tag(:option, l(:label_all).capitalize, :value => '')
deliverable.months.collect do |month|
options << content_tag(:option, month.strftime("%B %Y"), :value => month.strftime("%Y-%m"))
end
options
end
end