Added MemberSpent class to help create the fields for getting the amounts per member. #1190

This commit is contained in:
Eric Davis
2008-06-09 16:32:26 -07:00
parent b571a1f338
commit 211fc5879d
4 changed files with 52 additions and 2 deletions
+4 -2
View File
@@ -29,8 +29,10 @@
<%= paragraph_with_data("Progress: ", deliverable.progress) -%>
<%= paragraph_with_data("Hours Estimated: ", deliverable.total_hours) if allowed_management? -%>
<%= paragraph_with_data("Hours Used: ", deliverable.hours_used) if allowed_management? -%>
TODO: Each person
<% deliverable.members_spent.each do |person| %>
<p><%= h person.user.name -%>: <%= h(person.hours) %> <%= number_to_currency(person.spent, :precision => 0) %></p>
<% end %>
</td>
<td colspan="3">