Readded fieldset id and ensured it is unique since it was erroneously removed in another pull request

pull/6827/head
Sebastian Schuster 12 years ago
parent e359230f7c
commit f946e2a542
  1. 4
      app/views/cost_objects/_form.html.erb
  2. 2
      features/step_definitions/cost_object_steps.rb

@ -30,7 +30,7 @@
//]]>
</script>
<fieldset>
<fieldset id="material_budget_items_fieldset">
<legend><%= VariableCostObject.human_attribute_name(:material_budget) %></legend>
<table class="list material_budget_items" id="material_budget_items">
<thead><tr>
@ -49,7 +49,7 @@
<div style="text-align: right"><%= link_to_function l(:button_add_budget_item), "materialBudgetItemsForm.add()", {:class => "icon icon-add"} %></div>
</fieldset>
<fieldset>
<fieldset id="labor_budget_items_fieldset">
<legend><%= VariableCostObject.human_attribute_name(:labor_budget) %></legend>
<table class="list labor_budget_items" id="labor_budget_items">
<thead><tr>

@ -35,7 +35,7 @@ When(/^I (?:create|update) (?:a|the) (labor|material) item in row (\d+) with the
end
When(/^I add a new (labor|material) item$/) do | type|
steps %Q{ When I click on "Add Planned Costs" within "fieldset##{type}_budget_items" }
steps %Q{ When I click on "Add Planned Costs" within "fieldset##{type}_budget_items_fieldset" }
end
Then (/^the planned (labor|material) costs in row (\d+) should be (.+)$/) do | type, row_nr, amount|

Loading…
Cancel
Save