diff --git a/templates/ContentGenerator/Instructor/ProblemSetList/set_list_row.html.ep b/templates/ContentGenerator/Instructor/ProblemSetList/set_list_row.html.ep index 87b78fedef..56a5f0f607 100644 --- a/templates/ContentGenerator/Instructor/ProblemSetList/set_list_row.html.ep +++ b/templates/ContentGenerator/Instructor/ProblemSetList/set_list_row.html.ep @@ -16,29 +16,29 @@ <%= check_box selected_sets => $set_id, id => "${set_id}_id", class => 'form-check-input' =%> -
+
<%= label_for "${set_id}_id", begin =%> <%= $prettySetID =%> - % if ($authz->hasPermissions(param('user'), 'modify_problem_sets')) { - <%= link_to $c->systemLink( - url_for('instructor_set_list', setID => $set_id), - params => { editMode => 1, visible_sets => $set_id } - ), - class => 'set-id-tooltip', - 'aria-label' => maketext('Edit Set Data'), - data => { - bs_toggle => 'tooltip', - bs_placement => 'right', - bs_title => maketext('Edit Set Data') - }, - begin =%> - - <% end =%> - % } <% end =%> + % if ($authz->hasPermissions(param('user'), 'modify_problem_sets')) { + <%= link_to $c->systemLink( + url_for('instructor_set_list', setID => $set_id), + params => { editMode => 1, visible_sets => $set_id } + ), + class => 'set-id-tooltip', + 'aria-label' => maketext('Edit Set Data'), + data => { + bs_toggle => 'tooltip', + bs_placement => 'right', + bs_title => maketext('Edit Set Data') + }, + begin =%> + + <% end =%> + % }
%# Problems link diff --git a/templates/ContentGenerator/Instructor/ProblemSetList/set_list_table.html.ep b/templates/ContentGenerator/Instructor/ProblemSetList/set_list_table.html.ep index f045836bd2..010873fec1 100644 --- a/templates/ContentGenerator/Instructor/ProblemSetList/set_list_table.html.ep +++ b/templates/ContentGenerator/Instructor/ProblemSetList/set_list_table.html.ep @@ -37,9 +37,11 @@ % for (@$fieldNames) { % if (!$c->{editMode} && $sortableFields->{$_}) { - <%= link_to $fieldHeaders{$_} => '#', class => 'sort-header', - data => { sort_field => $_ } =%> - <%= include 'ContentGenerator/Instructor/ProblemSetList/sort_button', field => $_ =%> +
+ <%= link_to $fieldHeaders{$_} => '#', class => 'sort-header', + data => { sort_field => $_ } =%> + <%= include 'ContentGenerator/Instructor/ProblemSetList/sort_button', field => $_ =%> +
% } else { <%= $fieldHeaders{$_} =%> % } diff --git a/templates/ContentGenerator/Instructor/ProblemSetList/sort_button.html.ep b/templates/ContentGenerator/Instructor/ProblemSetList/sort_button.html.ep index 3cedfdf34d..5e8acde25b 100644 --- a/templates/ContentGenerator/Instructor/ProblemSetList/sort_button.html.ep +++ b/templates/ContentGenerator/Instructor/ProblemSetList/sort_button.html.ep @@ -1,6 +1,6 @@ % if ($c->{primarySortField} eq $field) { % } elsif ($c->{secondarySortField} eq $field) {