|
|
|
@ -41,12 +41,20 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
|
|
|
<tr class="subform-row <%= classes %>" id="<%= id_prefix %>"> |
|
|
|
|
<td> |
|
|
|
|
<label class="hidden-for-sighted" for="<%= "#{id_prefix}_valid_from" %>"><%= Rate.human_attribute_name(:valid_from) %></label> |
|
|
|
|
<%= rate_form.text_field :valid_from, :size => 10, :class => 'date', :index => id_or_index %><%= calendar_for("#{id_prefix}_valid_from") %> |
|
|
|
|
<%= rate_form.text_field :valid_from, |
|
|
|
|
class: 'date', |
|
|
|
|
index: id_or_index, |
|
|
|
|
required: true %> |
|
|
|
|
<%= calendar_for("#{id_prefix}_valid_from") %> |
|
|
|
|
</td> |
|
|
|
|
<td class="currency"> |
|
|
|
|
<span class="inline-label"> |
|
|
|
|
<label class="hidden-for-sighted" for="<%= "#{id_prefix}_rate" %>"><%= Rate.model_name.human %></label> |
|
|
|
|
<%= rate_form.text_field :rate, :size => 7, :index => id_or_index, :value => rate.rate ? rate.rate.round(2) : "" %> |
|
|
|
|
<%= rate_form.text_field :rate, |
|
|
|
|
size: 7, |
|
|
|
|
index: id_or_index, |
|
|
|
|
value: rate.rate ? rate.rate.round(2) : "", |
|
|
|
|
required: true %> |
|
|
|
|
<span class="form-label"> |
|
|
|
|
<%= Setting.plugin_openproject_costs['costs_currency'] %> |
|
|
|
|
</span> |
|
|
|
|