diff --git a/app/helpers/contracts_helper.rb b/app/helpers/contracts_helper.rb index 0975f3f..fcbb441 100644 --- a/app/helpers/contracts_helper.rb +++ b/app/helpers/contracts_helper.rb @@ -159,4 +159,9 @@ module ContractsHelper }) end + + def release(version=5, message='') + return '' unless (1..5).include?(version) + image_tag("todo#{version}.png", :plugin => 'redmine_contracts', :title => "Coming in release #{version}. #{message}") + end end diff --git a/app/views/contracts/_title.html.erb b/app/views/contracts/_title.html.erb index 575398b..985ed90 100644 --- a/app/views/contracts/_title.html.erb +++ b/app/views/contracts/_title.html.erb @@ -2,15 +2,15 @@ <%= content_tag(:h2, h(contract.name)) %>
-<%# TODO: release 3/4, contract messages -There is $243 worth of time clocked to issues that are not assigned to any deliverables. Please update the orphaned issues.
-<%= l(:label_no_data) %>
-TODO: Release 5 (Contract Status)
+<%= release(5, "Contract Status. Split contracts by active and inactive") %>
diff --git a/app/views/contracts/show.html.erb b/app/views/contracts/show.html.erb index 826b1dc..d968e31 100644 --- a/app/views/contracts/show.html.erb +++ b/app/views/contracts/show.html.erb @@ -15,9 +15,16 @@| <%= release(5, "Contract status") %> | +|
| <%= release(5, "Contract type") %> | +
| <%= release(4, "Discount") %> | +|||||||||||||||||||||||||||||||||||||||||||
|
@@ -81,8 +91,8 @@
<%= content_tag(:h3, l(:field_deliverable_plural)) %>
- CSV (Release 2)
- View All (9) (Release ?)
+ <%= release(2, "CSV") %>
+ <%= release(5, "View All/Pagination") %>
<%= link_to(l(:button_add_new), new_contract_deliverable_path(@project, resource), :id => 'new-deliverable') %>
@@ -111,7 +121,7 @@
| <%= h format_date(deliverable.end_date) %> | <%= h deliverable.short_type %> | <%= h deliverable.title %> | -TODO: Release 5 | +<%= release(5, "Deliverable status") %> | <%= h deliverable.manager.try(:name) %> | <%= format_budget_for_deliverable(deliverable, deliverable.labor_budget_spent, deliverable.labor_budget_total, :class => 'labor') %> <%= format_budget_for_deliverable(deliverable, deliverable.overhead_spent, deliverable.overhead_budget_total, :class => 'overhead') %> @@ -130,7 +140,7 @@ <% end %> <%# div_for(resource) %> -|||||||||||||||||||||||||||||||||||||
| <%= release(5, "Retainer lightbox") %> |
| - | Spent | -Budget | -Hours | +<%= l(:field_spent) %> | +<%= l(:field_budget) %> | +<%= l(:field_hours) %> |
|---|---|---|---|---|---|---|
| Labor | +<%= l(:field_labor) %><%= release(3, "Deliverable lightbox") %> | <%= h(format_value_field_for_contracts(deliverable.labor_budget_spent(validated_period))) %> | <%= h(format_value_field_for_contracts(deliverable.labor_budget_total(validated_period))) %> | @@ -59,7 +59,7 @@ | ||
| Overhead | +<%= l(:field_overhead) %><%= release(3, "Deliverable lightbox") %> | <%= h(format_value_field_for_contracts(deliverable.overhead_spent(validated_period))) %> | <%= h(format_value_field_for_contracts(deliverable.overhead_budget_total(validated_period))) %> | @@ -87,13 +87,13 @@ <% end %> | ||
| Profit | +<%= l(:field_profit) %> | <%= h(format_value_field_for_contracts(deliverable.profit_left(validated_period))) %> | <%= h(format_value_field_for_contracts(deliverable.profit_budget(validated_period))) %> | |||
| Total: | +<%= l(:field_total) %>: | <%= h(format_value_field_for_contracts(deliverable.total_spent(validated_period))) %> | <%= h(format_value_field_for_contracts(deliverable.total(validated_period))) %> | diff --git a/app/views/deliverables/_finance_form.html.erb b/app/views/deliverables/_finance_form.html.erb index 17c5ca1..7636b4e 100644 --- a/app/views/deliverables/_finance_form.html.erb +++ b/app/views/deliverables/_finance_form.html.erb @@ -12,9 +12,8 @@ <%= labor_budget.hidden_field(:year) %> <%= labor_budget.hidden_field(:month) %> | ||
| - + <%= release(3, "Select field for the Time Entry Activity in a td") %> |
<%= labor_budget.label(:hours, l(:text_short_hours)) %> @@ -24,9 +23,8 @@<%= labor_budget.label(:budget, l(:text_dollar_sign)) %> <%= labor_budget.text_field(:budget, :value => format_deliverable_value_fields(labor_budget.object.budget), :class => 'financial') %> |
- <%# TODO: Green Add button for multiple records %>
- Todo: Add button (Release 3) + <%= release(3, "Green Add button for multiple records") %> | ||||
| - + <%= release(3, "Select field for the Time Entry Activity in a td") %> |
<%= overhead_budget.label(:hours, l(:text_short_hours)) %> @@ -53,9 +50,8 @@<%= overhead_budget.label(:budget, l(:text_dollar_sign)) %> <%= overhead_budget.text_field(:budget, :value => format_deliverable_value_fields(overhead_budget.object.budget), :class => 'financial') %> |
- <%# TODO: Green Add button for multiple records %>
- Todo: Add button (Release 3) + <%= release(3, "Green Add button for multiple records") %> |