[#4186] Added the Total Budget to the Contract list view.

This commit is contained in:
Eric Davis
2010-07-13 13:41:25 -07:00
parent 9c07ee676e
commit d8196842ff
3 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -8,7 +8,7 @@
<%# TODO: Status %>
<%# TODO: Type %>
<th><%= l(:field_account_executive_short) %></th>
<%# TODO: Total Budget %>
<th><%= l(:field_total_budget) %></th>
<th><%= l(:field_end_date) %></th>
</thead>
<tbody>
@@ -17,6 +17,7 @@
<td class="id"><%= link_to(h(contract.id), contract_path(@project, contract)) %></td>
<td class="name"><%= link_to(h(contract.name), contract_path(@project, contract)) %></td>
<td class="account-executive"><%= h contract.account_executive.name %></td>
<td class="total-budget"><%= h(number_to_currency(contract.total_budget)) %></td>
<td class="end-date"><%= h format_date(contract.end_date) %></td>
<% end %>
<% end %>
+1 -1
View File
@@ -47,6 +47,6 @@ en:
field_overhead_spent: "Overhead"
field_profit_budget: "Profit"
field_profit_spent: "Profit"
field_total_budget: "Contract Total"
field_total_budget: "Total Budget"
field_total_spent: "Contract Total"
field_contract_type: "Type"
+1
View File
@@ -31,6 +31,7 @@ class ContractsListTest < ActionController::IntegrationTest
assert_select "td.name", :text => /#{contract.name}/
assert_select "td.account-executive", :text => /#{contract.account_executive.name}/
assert_select "td.end-date", :text => /#{format_date(contract.end_date)}/
assert_select "td.total-budget"
end
end