Added budget items to view. #1137
This commit is contained in:
1 parent
1eb49e3c87
commit
5af52d5c15
2 files changed
+10
-8
No files matched your search
@@ -20,6 +20,8 @@ class DeliverablesController < ApplicationController
|
|||||||
|
|
||||||
@deliverable = Deliverable.new
|
@deliverable = Deliverable.new
|
||||||
|
|
||||||
|
@budget = Budget.new(@project.id)
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { render :action => 'index', :layout => !request.xhr? }
|
format.html { render :action => 'index', :layout => !request.xhr? }
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -2,28 +2,28 @@
|
|||||||
<h2>Budget</h1>
|
<h2>Budget</h1>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Project Budget: TODO
|
Project Budget: <%= h number_to_currency(@budget.budget, :precision => 0) %>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Budget Spent: TODO
|
Budget Spent: <%= h number_to_currency(@budget.spent, :precision => 0) %>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Budget Remaining: TODO
|
Budget Remaining: <%= h number_to_currency(@budget.left, :precision => 0) %>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Progress: TODO
|
Progress: <%= h @budget.progress %>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Budget Score: TODO
|
Budget Score: <%= h @budget.score %>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Overruns: TODO
|
Overruns: <%= h number_to_currency(@budget.overruns, :precision => 0) %>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Next Due Date: TODO
|
Next Due Date: <%= h distance_of_time_in_words_to_now(@budget.next_due_date) %>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Completion: TODO
|
Completion: <%= h distance_of_time_in_words_to_now(@budget.final_due_date) %>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
Profit: TODO
|
Profit: TODO
|
||||||
|
|||||||
Reference in new issue
Block a user