1
0

Form improvements

This commit is contained in:
cryptogopher
2020-04-04 02:37:37 +02:00
parent f00f93c9e9
commit 1b6905d105
3 changed files with 3 additions and 3 deletions

View File

@@ -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>

View File

@@ -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),