Form improvements
This commit is contained in:
parent
f00f93c9e9
commit
1b6905d105
@ -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),
|
||||
|
@ -10,7 +10,6 @@
|
||||
</div>
|
||||
<hr style="width: 95%;">
|
||||
<div class="tabular">
|
||||
<p><%= f.text_area :notes, cols: 40, rows: 1, style: "width: 95%;" %></p>
|
||||
<div class="splitcontent">
|
||||
<div class="splitcontentleft">
|
||||
<p>
|
||||
@ -24,6 +23,7 @@
|
||||
{required: false, include_blank: t('.null_source')} %></p>
|
||||
</div>
|
||||
</div>
|
||||
<p><%= f.text_area :notes, cols: 40, rows: 1, style: "width: 95%;" %></p>
|
||||
<% @measurement.readouts.each_with_index do |r, index| %>
|
||||
<%= f.fields_for 'readouts_attributes', r, index: '' do |ff| %>
|
||||
<p class="readout">
|
||||
|
Reference in New Issue
Block a user