|
|
@ -37,12 +37,17 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
|
|
<%= fields_for prefix, labor_budget_item do |cost_form| %> |
|
|
|
<%= fields_for prefix, labor_budget_item do |cost_form| %> |
|
|
|
<tr class="cost_entry <%= classes %>" id="<%= id_prefix %>"> |
|
|
|
<tr class="cost_entry <%= classes %>" id="<%= id_prefix %>"> |
|
|
|
<td class="units"> |
|
|
|
<td class="units"> |
|
|
|
<label class="hidden-for-sighted" for="<%= id_prefix %>_units"><%= LaborBudgetItem.human_attribute_name(:hours) %></label> |
|
|
|
<div class="form--field-container"> |
|
|
|
<%= cost_form.text_field :hours, |
|
|
|
<div class="form--text-field-container -xslim"> |
|
|
|
index: id_or_index, |
|
|
|
<label class="hidden-for-sighted" for="<%= id_prefix %>_units"><%= LaborBudgetItem.human_attribute_name(:hours) %></label> |
|
|
|
size: 3, |
|
|
|
<%= cost_form.number_field :hours, |
|
|
|
class: 'budget-item-value', |
|
|
|
index: id_or_index, |
|
|
|
data: { :'request-key' => 'hours' } %> |
|
|
|
min: 0, |
|
|
|
|
|
|
|
step: 0.01, |
|
|
|
|
|
|
|
class: 'budget-item-value form--text-field', |
|
|
|
|
|
|
|
data: { :'request-key' => 'hours' } %> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</td> |
|
|
|
<td class="user"> |
|
|
|
<td class="user"> |
|
|
|
<label class="hidden-for-sighted" for="<%= id_prefix %>_user_id"><%= t(:label_user) %></label> |
|
|
|
<label class="hidden-for-sighted" for="<%= id_prefix %>_user_id"><%= t(:label_user) %></label> |
|
|
|