-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scope back to UserList edit, password, and export.
When dealing with large classes (>200 users), having to filter before acting on all users is an extra step which can slow things down, so in these cases there is a scope to choose between all users or selected users. Compared to the previous scope, there is no longer a 'visible' option, as that can be done via selecting all visible users.
- Loading branch information
Showing
5 changed files
with
72 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
templates/ContentGenerator/Instructor/UserList/edit_form.html.ep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
<div class="row mb-2"> | ||
<p><%= maketext('Select users to edit.') =%></p> | ||
<%= label_for edit_select => maketext('Edit which users?'), class => 'col-form-label col-form-label-sm col-auto' =%> | ||
<div class="col-auto"> | ||
<%= select_field 'action.edit.scope' => [ | ||
[ maketext('all users') => 'all' ], | ||
[ maketext('selected users') => 'selected', selected => undef ] | ||
], | ||
id => 'edit_select', class => 'form-select form-select-sm' =%> | ||
</div> | ||
</div> |
11 changes: 11 additions & 0 deletions
11
templates/ContentGenerator/Instructor/UserList/export_form.html.ep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
templates/ContentGenerator/Instructor/UserList/password_form.html.ep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
<div class="row mb-2"> | ||
<p><%= maketext('Select users to give a new password.') =%></p> | ||
<%= label_for password_select => maketext('Give new password to which users?'), | ||
class => 'col-form-label col-form-label-sm col-auto' =%> | ||
<div class="col-auto"> | ||
<%= select_field 'action.password.scope' => [ | ||
[ maketext('all users') => 'all' ], | ||
[ maketext('selected users') => 'selected', selected => undef ] | ||
], | ||
id => 'password_select', class => 'form-select form-select-sm' =%> | ||
</div> | ||
</div> |