diff --git a/app/views/measurement_routines/_form.html.erb b/app/views/measurement_routines/_form.html.erb index 25b09a4..a9aac87 100644 --- a/app/views/measurement_routines/_form.html.erb +++ b/app/views/measurement_routines/_form.html.erb @@ -2,7 +2,7 @@ <%= fields_for 'measurement[routine_attributes]', @routine do |ff| %> <%= ff.hidden_field :id %>

- + <%= ff.text_field :name, required: true, style: "width: 95%;" %>

diff --git a/app/views/measurement_routines/_show_form.html.erb b/app/views/measurement_routines/_show_form.html.erb index 9b8038c..570d729 100644 --- a/app/views/measurement_routines/_show_form.html.erb +++ b/app/views/measurement_routines/_show_form.html.erb @@ -1,7 +1,7 @@

<%= fields_for 'measurement[routine_attributes]', @routine do |ff| %>

- + <%= ff.select :id, options_from_collection_for_select(@project.measurement_routines, :id, :name, @routine.id), diff --git a/app/views/measurements/_form.html.erb b/app/views/measurements/_form.html.erb index 0bc1b02..c830254 100644 --- a/app/views/measurements/_form.html.erb +++ b/app/views/measurements/_form.html.erb @@ -10,7 +10,6 @@


-

<%= f.text_area :notes, cols: 40, rows: 1, style: "width: 95%;" %>

@@ -24,6 +23,7 @@ {required: false, include_blank: t('.null_source')} %>

+

<%= f.text_area :notes, cols: 40, rows: 1, style: "width: 95%;" %>

<% @measurement.readouts.each_with_index do |r, index| %> <%= f.fields_for 'readouts_attributes', r, index: '' do |ff| %>