From a4806ded318861d4d358407fd62f77ff6826f389 Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Thu, 13 Feb 2025 22:23:22 -0600 Subject: [PATCH] Make the Library Browser "Hints", "Solutions", and "Include Contrib" check boxes checked by default. This was requested in #2668 for "Hints" and "Solutions", and in the developer meeting for "Include Contrib". --- .../Instructor/SetMaker/library-include-checks.html.ep | 2 ++ .../Instructor/SetMaker/view_problems_line.html.ep | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/templates/ContentGenerator/Instructor/SetMaker/library-include-checks.html.ep b/templates/ContentGenerator/Instructor/SetMaker/library-include-checks.html.ep index 5c2f0e34b6..36a8bcf9d5 100644 --- a/templates/ContentGenerator/Instructor/SetMaker/library-include-checks.html.ep +++ b/templates/ContentGenerator/Instructor/SetMaker/library-include-checks.html.ep @@ -6,8 +6,10 @@ <%= hidden_field includeOPL => 0 =%>
+ % param('includeContrib', 'on') unless defined param('includeContrib'); <%= check_box includeContrib => 'on', id => 'includeContrib', class => 'form-check-input' =%> <%= label_for includeContrib => maketext('Include Contrib'), class => 'form-check-label' =%> + <%= hidden_field includeContrib => 0 =%>
% } else { <%= hidden_field includeOPL => 1 =%> diff --git a/templates/ContentGenerator/Instructor/SetMaker/view_problems_line.html.ep b/templates/ContentGenerator/Instructor/SetMaker/view_problems_line.html.ep index 8436a67ec3..8cb5b0cc26 100644 --- a/templates/ContentGenerator/Instructor/SetMaker/view_problems_line.html.ep +++ b/templates/ContentGenerator/Instructor/SetMaker/view_problems_line.html.ep @@ -28,14 +28,18 @@