Form improvements
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<%= fields_for 'measurement[routine_attributes]', @routine do |ff| %>
|
||||
<%= ff.hidden_field :id %>
|
||||
<p>
|
||||
<label><%= l(:field_name) %></label>
|
||||
<label><%= l(:field_name) %><span class="required"> *</span></label>
|
||||
<%= ff.text_field :name, required: true, style: "width: 95%;" %>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div>
|
||||
<%= fields_for 'measurement[routine_attributes]', @routine do |ff| %>
|
||||
<p>
|
||||
<label><%= l(:field_measurement_routine) %></label>
|
||||
<label><%= l(:field_measurement_routine) %><span class="required"> *</span></label>
|
||||
<%= ff.select :id,
|
||||
options_from_collection_for_select(@project.measurement_routines,
|
||||
:id, :name, @routine.id),
|
||||
|
||||
Reference in New Issue
Block a user