[#4186] Added the Total Budget to the Contract list view.
This commit is contained in:
@@ -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 %>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user