Building up the JavaScript details. #1190
This commit is contained in:
1 parent
e96bdccb42
commit
eba994a686
6 files changed
+62
-1
No files matched your search
@@ -1,4 +1,5 @@
|
||||
<tr id="deliverable-<%= deliverable.id %>" class="deliverable <%= cycle('odd', 'even') %>">
|
||||
<% css = cycle('odd','even') %>
|
||||
<tr id="deliverable-<%= deliverable.id %>" class="deliverable <%= css %>">
|
||||
<%= content_tag(:td, deliverable.id) %>
|
||||
<%= content_tag(:td, deliverable.score) %>
|
||||
<%= content_tag(:td, deliverable.subject) %>
|
||||
@@ -6,4 +7,27 @@
|
||||
<%= content_tag(:td, number_to_currency(deliverable.spent)) %>
|
||||
<%= content_tag(:td, format_date(deliverable.due_date)) %>
|
||||
<%= content_tag(:td, progress_bar(deliverable.progress, :width => '100%')) %>
|
||||
<%= content_tag(:td, link_to_function("Details", "$('deliverable-details-#{deliverable.id}').toggle();")) %>
|
||||
</tr>
|
||||
<tr id="deliverable-details-<%= deliverable.id %>" class="deliverable deliverable-details <%= css %>" style="display:none;">
|
||||
<%# TODO: link to issues %>
|
||||
<%# TODO: link to edit %>
|
||||
<%= content_tag(
|
||||
:td,
|
||||
"<dl>" +
|
||||
paragraph_with_data("Deliverable Budget: ", number_to_currency(deliverable.budget)) +
|
||||
paragraph_with_data("Budget Spent: ", number_to_currency(deliverable.spent)) +
|
||||
paragraph_with_data("Budget Remaining: ", number_to_currency(deliverable.budget_remaining)) +
|
||||
paragraph_with_data("Hours Used: ", deliverable.hours_used) +
|
||||
paragraph_with_data("Hours Estimated: ", deliverable.total_hours) +
|
||||
paragraph_with_data("Progress: ", deliverable.progress) +
|
||||
paragraph_with_data("Score ", deliverable.score) +
|
||||
paragraph_with_data("Overruns ", number_to_currency(deliverable.overruns)) +
|
||||
paragraph_with_data("TODO: Overall project %", nil) +
|
||||
paragraph_with_data("Profit: ", number_to_currency(deliverable.profit)) +
|
||||
"</dl>",
|
||||
:colspan => 4) %>
|
||||
|
||||
<%= content_tag(
|
||||
:td, "TODO", :colspan => 4) %>
|
||||
</tr>
|
||||
Reference in new issue
Block a user