%= form_tag({}) do -%>
<%= CostObject.human_attribute_name(:budget) %> | <%= CostObject.human_attribute_name(:spent) %> | <%= CostObject.human_attribute_name(:available) %> | <%= CostObject.human_attribute_name(:budget_ratio) %> | ||
---|---|---|---|---|---|
<%= link_to cost_object.id, cost_object_path(cost_object.id) %> | <%= content_tag(:td, link_to(h(cost_object.subject), cost_object_path(cost_object.id)), :class => 'subject') %> <%= content_tag(:td, number_to_currency(cost_object.budget, :precision => 0), :class => 'currency') %> <%= content_tag(:td, number_to_currency(cost_object.spent, :precision => 0), :class => 'currency') %> <%= content_tag(:td, number_to_currency(cost_object.budget - cost_object.spent, :precision => 0), :class => 'currency') %> <%= content_tag(:td, extended_progress_bar(cost_object.budget_ratio, :legend => "#{cost_object.budget_ratio}%")) %> <%- total_budget += cost_object.budget labor_budget += cost_object.labor_budget material_budget += cost_object.material_budget spent += cost_object.spent -%>|||||
<%= number_to_currency( total_budget, :precision => 0) %> | <%= number_to_currency( spent, :precision => 0) %> | <%= number_to_currency( total_budget - spent, :precision => 0) %> | |||