Form improvements
This commit is contained in:
parent
f00f93c9e9
commit
1b6905d105
@ -2,7 +2,7 @@
|
|||||||
<%= fields_for 'measurement[routine_attributes]', @routine do |ff| %>
|
<%= fields_for 'measurement[routine_attributes]', @routine do |ff| %>
|
||||||
<%= ff.hidden_field :id %>
|
<%= ff.hidden_field :id %>
|
||||||
<p>
|
<p>
|
||||||
<label><%= l(:field_name) %></label>
|
<label><%= l(:field_name) %><span class="required"> *</span></label>
|
||||||
<%= ff.text_field :name, required: true, style: "width: 95%;" %>
|
<%= ff.text_field :name, required: true, style: "width: 95%;" %>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<%= fields_for 'measurement[routine_attributes]', @routine do |ff| %>
|
<%= fields_for 'measurement[routine_attributes]', @routine do |ff| %>
|
||||||
<p>
|
<p>
|
||||||
<label><%= l(:field_measurement_routine) %></label>
|
<label><%= l(:field_measurement_routine) %><span class="required"> *</span></label>
|
||||||
<%= ff.select :id,
|
<%= ff.select :id,
|
||||||
options_from_collection_for_select(@project.measurement_routines,
|
options_from_collection_for_select(@project.measurement_routines,
|
||||||
:id, :name, @routine.id),
|
:id, :name, @routine.id),
|
||||||
|
@ -10,7 +10,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<hr style="width: 95%;">
|
<hr style="width: 95%;">
|
||||||
<div class="tabular">
|
<div class="tabular">
|
||||||
<p><%= f.text_area :notes, cols: 40, rows: 1, style: "width: 95%;" %></p>
|
|
||||||
<div class="splitcontent">
|
<div class="splitcontent">
|
||||||
<div class="splitcontentleft">
|
<div class="splitcontentleft">
|
||||||
<p>
|
<p>
|
||||||
@ -24,6 +23,7 @@
|
|||||||
{required: false, include_blank: t('.null_source')} %></p>
|
{required: false, include_blank: t('.null_source')} %></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<p><%= f.text_area :notes, cols: 40, rows: 1, style: "width: 95%;" %></p>
|
||||||
<% @measurement.readouts.each_with_index do |r, index| %>
|
<% @measurement.readouts.each_with_index do |r, index| %>
|
||||||
<%= f.fields_for 'readouts_attributes', r, index: '' do |ff| %>
|
<%= f.fields_for 'readouts_attributes', r, index: '' do |ff| %>
|
||||||
<p class="readout">
|
<p class="readout">
|
||||||
|
Reference in New Issue
Block a user