sanger/sequencescape

View on GitHub
app/views/studies/asset_groups/search.html.erb

Summary

Maintainability
Test Coverage

<div class="page-header"><h1>Found <%= pluralize @assets.size, 'asset' %></h1></div>

<div class="page-header"><h1>Add to <%= @asset_group.name %></h1></div>

<%= form_for @asset_group,  url: add_study_asset_group_path(@study, @asset_group), html: { method: :post } do |f| %>
  <%= render_error_messages(@asset_group) %>


  <% @assets.each do |asset| %>
    <%= check_box :asset, asset.id, value: asset.id %> <%= label(:asset, asset.id, "#{asset.display_name} #{asset.label}") %><br/>
  <% end %>

  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', study_asset_groups_path(@study) %>