% if @element.free_text %> <% else %> <% if @element.optional == true %> - None - <% end %> <% if @sample.naming_element_selections != nil %> <%= options_from_collection_for_select @element.ordered_naming_terms, "id", "term", selected_value=@sample.naming_element_selections[@m.to_i].to_i %> <% else %> <%= options_from_collection_for_select @element.ordered_naming_terms, "id", "term" %> <% end %> <% end %>