[#4570] Add the $ to the orphaned time message

This commit is contained in:
Eric Davis
2010-10-05 09:58:24 -07:00
parent d6aee43b4b
commit b0b434dbfb
2 changed files with 4 additions and 3 deletions

View File

@@ -92,8 +92,9 @@ module ContractsHelper
end
end
def format_value_field_for_contracts(value)
number_with_precision(value, :precision => Contract::ViewPrecision, :delimiter => ',')
def format_value_field_for_contracts(value, options={})
opt = {:unit => '', :precision => Contract::ViewPrecision, :delimiter => ','}.merge(options)
number_to_currency(value, opt)
end
def format_as_yes_or_no(value)

View File

@@ -3,7 +3,7 @@
<% if resource.orphaned_time && resource.orphaned_time > 0 %>
<div class="error_msg">
<p>
<%= l(:text_error_message_orphaned_time, :amount => format_value_field_for_contracts(resource.orphaned_time)) %>
<%= l(:text_error_message_orphaned_time, :amount => format_value_field_for_contracts(resource.orphaned_time, :unit => '$')) %>
<%= link_to_issue_list_with_filter(l(:text_error_message_update_orphaned_time), :deliverable_id => '!*') %>
</p>
</div>