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
No related branches found
No related tags found
2 merge requests!871Project Forum Release v2.8.10 - 27-09-2022,!860Allow migration of projects between course editions
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<thead> <thead>
<tr> <tr>
<% if check_boxes %> <% if check_boxes %>
<th><input type="checkbox" /></th> <th><input type="checkbox" <%= checked ? 'checked="checked"' : '' %> /></th>
<th><%= :id %></th> <th><%= :id %></th>
<% else %> <% else %>
<th><%= :id %></th> <th><%= :id %></th>
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<tfoot> <tfoot>
<tr> <tr>
<% if check_boxes %> <% if check_boxes %>
<th><input type="checkbox" /></th> <th><input type="checkbox" <%= checked ? 'checked="checked"' : '' %> /></th>
<th><%= :id %></th> <th><%= :id %></th>
<% else %> <% else %>
<th><%= :id %></th> <th><%= :id %></th>
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
<tr> <tr>
<% end %> <% end %>
<% if check_boxes %> <% 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 %> <%= table_cell_link_to admin_project_path(project), true do %><%= project.id %><% end %>
<% else %> <% else %>
<%= table_cell_link_to admin_project_path(project), true do %><%= project.id %><% end %> <%= table_cell_link_to admin_project_path(project), true do %><%= project.id %><% end %>
......
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
<%#= render 'table_header', <%#= render 'table_header',
relation: @current_round_experiments %> 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| %> <% @importing_editions.each do |edition| %>
<%= f.hidden_field 'importing_editions[]', :value => 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 to comment