diff --git a/app/views/deliverables/_form.html.erb b/app/views/deliverables/_form.html.erb
index d20f4a8..2f70443 100644
--- a/app/views/deliverables/_form.html.erb
+++ b/app/views/deliverables/_form.html.erb
@@ -27,7 +27,7 @@
<%= content_tag(:label, l(:field_labor)) %>
-
+
<% form.fields_for :labor_budgets do |labor_budget| %>
@@ -36,11 +36,11 @@
|
- <%= l(:text_short_hours) %>
+ <%= labor_budget.label(:hours, l(:text_short_hours)) %>
<%= labor_budget.text_field(:hours, :size => 10) %>
|
- <%= l(:text_dollar_sign) %>
+ <%= labor_budget.label(:budget, l(:text_dollar_sign)) %>
<%= labor_budget.text_field(:budget, :size => 10) %>
|
<%# TODO: Green Add button for multiple records %>
@@ -54,7 +54,7 @@
<%= content_tag(:label, l(:field_overhead)) %>
-
+
<% form.fields_for :overhead_budgets do |overhead_budget| %>
@@ -63,11 +63,11 @@
|
- <%= l(:text_short_hours) %>
+ <%= overhead_budget.label(:hours, l(:text_short_hours)) %>
<%= overhead_budget.text_field(:hours, :size => 10) %>
|
- <%= l(:text_dollar_sign) %>
+ <%= overhead_budget.label(:budget, l(:text_dollar_sign)) %>
<%= overhead_budget.text_field(:budget, :size => 10) %>
|
<%# TODO: Green Add button for multiple records %>
diff --git a/assets/javascripts/contracts.js b/assets/javascripts/contracts.js
index 87d1d34..0a54d1f 100644
--- a/assets/javascripts/contracts.js
+++ b/assets/javascripts/contracts.js
@@ -5,9 +5,9 @@ jQuery(function($) {
$("#deliverables table tbody tr td:contains('---')").css("text-align", "center");
- $("#texpand").jExpand();
+ $(".texpand").jExpand();
- $("#texpand").find("tr.even").next('tr:first').addClass("even");
+ $(".texpand").find("tr.even").next('tr:first').addClass("even");
$(window).resize(function() {
diff --git a/assets/stylesheets/redmine_contracts.css b/assets/stylesheets/redmine_contracts.css
index 46b5d34..bdb3fa7 100644
--- a/assets/stylesheets/redmine_contracts.css
+++ b/assets/stylesheets/redmine_contracts.css
@@ -122,6 +122,8 @@ padding-left: 0px; /* Don't pad submit buttons */
border: 0;
}
+.deliverable_finance_table p.inline-hints label {font-weight: normal; float: none; display: auto; margin-left: 0px; } /* An inline label so it needs to be reset from .tabular */
+
#expand_terms{
margin: 10px 0 10px 0;
display: block;
diff --git a/test/integration/contracts_edit_test.rb b/test/integration/contracts_edit_test.rb
index 18fcbcc..38c5ecf 100644
--- a/test/integration/contracts_edit_test.rb
+++ b/test/integration/contracts_edit_test.rb
@@ -29,7 +29,7 @@ class ContractsEditTest < ActionController::IntegrationTest
end
fill_in "Name", :with => 'An updated name'
- click_button "Update Contract"
+ click_button "Save Contract"
assert_response :success
assert_template 'contracts/show'
diff --git a/test/integration/contracts_new_test.rb b/test/integration/contracts_new_test.rb
index d3db4c8..872da4e 100644
--- a/test/integration/contracts_new_test.rb
+++ b/test/integration/contracts_new_test.rb
@@ -30,7 +30,7 @@ class ContractsNewTest < ActionController::IntegrationTest
fill_in "End Date", :with => '2010-12-31'
select "Net 30", :from => "Payment Terms"
- click_button "Create Contract"
+ click_button "Save Contract"
assert_response :success
assert_template 'contracts/show'
diff --git a/test/integration/contracts_show_test.rb b/test/integration/contracts_show_test.rb
index 38e6ba7..a49b25c 100644
--- a/test/integration/contracts_show_test.rb
+++ b/test/integration/contracts_show_test.rb
@@ -15,7 +15,7 @@ class ContractsShowTest < ActionController::IntegrationTest
assert_template 'contracts/show'
assert_equal "/projects/main/contracts/#{@contract.id}", current_url
- assert_select "div#contract_#{@contract.id}.contract" do
+ assert_select "div.title-bar" do
assert_select 'h2', :text => @contract.name
end
end
diff --git a/test/integration/deliverables_delete_test.rb b/test/integration/deliverables_delete_test.rb
index 8b76d68..795e2c4 100644
--- a/test/integration/deliverables_delete_test.rb
+++ b/test/integration/deliverables_delete_test.rb
@@ -13,7 +13,7 @@ class DeliverablesDeleteTest < ActionController::IntegrationTest
should "allow anyone to delete the deliverable" do
visit_contract_page(@contract)
- click_link_within "#fixed_deliverable_#{@deliverable.id}", 'Delete'
+ click_link_within "#deliverable_details_#{@deliverable.id}", 'Delete'
assert_response :success
assert_template 'contracts/show'
diff --git a/test/integration/deliverables_edit_test.rb b/test/integration/deliverables_edit_test.rb
index 473585c..985729d 100644
--- a/test/integration/deliverables_edit_test.rb
+++ b/test/integration/deliverables_edit_test.rb
@@ -16,7 +16,7 @@ class DeliverablesEditTest < ActionController::IntegrationTest
should "allow any user to edit the Fixed deliverable" do
visit_contract_page(@contract)
- click_link_within "#fixed_deliverable_#{@fixed_deliverable.id}", 'Edit'
+ click_link_within "#deliverable_details_#{@fixed_deliverable.id}", 'Edit'
assert_response :success
assert_template 'deliverables/edit'
|