Skip to content
Snippets Groups Projects
Verified Commit 8bc5ad36 authored by Martin Mladenov's avatar Martin Mladenov
Browse files

Tick project automatically when copying a single project

parent 5976ab31
Branches
Tags
2 merge requests!871Project Forum Release v2.8.10 - 27-09-2022,!860Allow migration of projects between course editions
......@@ -3,7 +3,7 @@
<thead>
<tr>
<% if check_boxes %>
<th><input type="checkbox" /></th>
<th><input type="checkbox" <%= checked ? 'checked="checked"' : '' %> /></th>
<th><%= :id %></th>
<% else %>
<th><%= :id %></th>
......@@ -20,7 +20,7 @@
<tfoot>
<tr>
<% if check_boxes %>
<th><input type="checkbox" /></th>
<th><input type="checkbox" <%= checked ? 'checked="checked"' : '' %> /></th>
<th><%= :id %></th>
<% else %>
<th><%= :id %></th>
......@@ -44,7 +44,7 @@
<tr>
<% end %>
<% if check_boxes %>
<td><input type="checkbox" name="selected_projects[ids][]" value="<%= project.id %>"></td>
<td><input type="checkbox" name="selected_projects[ids][]" value="<%= project.id %>" <%= checked ? 'checked="checked"' : '' %>></td>
<%= table_cell_link_to admin_project_path(project), true do %><%= project.id %><% end %>
<% else %>
<%= table_cell_link_to admin_project_path(project), true do %><%= project.id %><% end %>
......
......@@ -29,7 +29,8 @@
<%#= render 'table_header',
relation: @current_round_experiments %>
<%= render 'admin/course_editions/import_projects/table', check_boxes: true, course_edition: true, selected_projects: @importable_projects, success_projects: @success_projects, failed_projects: @failed_projects %>
<%= render 'admin/course_editions/import_projects/table', check_boxes: true, checked: @filtered_importable_projects.any?, course_edition: true,
selected_projects: @importable_projects, success_projects: @success_projects, failed_projects: @failed_projects %>
<% @importing_editions.each do |edition| %>
<%= f.hidden_field 'importing_editions[]', :value => edition %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment