Merge branch 'release/7.4' into dev

pull/6827/head
Jens Ulferts 7 years ago
commit 712e9240b0
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 17
      app/views/cost_objects/items/_labor_budget_item.html.erb
  2. 13
      app/views/cost_objects/items/_material_budget_item.html.erb
  3. 2
      lib/open_project/costs/version.rb

@ -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>

@ -38,13 +38,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<tr class="cost_entry <%= classes %>" id="<%= id_prefix %>"> <tr class="cost_entry <%= classes %>" id="<%= id_prefix %>">
<td class="units"> <td class="units">
<div class="form--field-container"> <div class="form--field-container">
<div class="form--text-field-container"> <div class="form--text-field-container -xslim">
<label class="hidden-for-sighted" for="<%= id_prefix %>_units"><%= MaterialBudgetItem.human_attribute_name(:units) %></label> <label class="hidden-for-sighted" for="<%= id_prefix %>_units"><%= MaterialBudgetItem.human_attribute_name(:units) %></label>
<%= cost_form.text_field :units, <%= cost_form.number_field :units,
index: id_or_index, index: id_or_index,
size: 3, min: 0,
class: 'budget-item-value', step: 0.01,
data: { :'request-key' => 'units' } %> class: 'budget-item-value form--text-field',
data: { :'request-key' => 'units' } %>
</div> </div>
</div> </div>
</td> </td>

@ -19,6 +19,6 @@
module OpenProject module OpenProject
module Costs module Costs
VERSION = "7.4.0" VERSION = "7.4.1"
end end
end end

Loading…
Cancel
Save