Skip to content

Commit a4806de

Browse files
committed
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".
1 parent 28b21ed commit a4806de

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

templates/ContentGenerator/Instructor/SetMaker/library-include-checks.html.ep

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
<%= hidden_field includeOPL => 0 =%>
77
</div>
88
<div class="form-check font-sm">
9+
% param('includeContrib', 'on') unless defined param('includeContrib');
910
<%= check_box includeContrib => 'on', id => 'includeContrib', class => 'form-check-input' =%>
1011
<%= label_for includeContrib => maketext('Include Contrib'), class => 'form-check-label' =%>
12+
<%= hidden_field includeContrib => 0 =%>
1113
</div>
1214
% } else {
1315
<%= hidden_field includeOPL => 1 =%>

templates/ContentGenerator/Instructor/SetMaker/view_problems_line.html.ep

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,18 @@
2828
<div class="d-inline-block ms-2 mb-2">
2929
<div class="form-check form-check-inline ms-2">
3030
<label class="form-check-label col-form-label-sm">
31+
% param('showHints', 'on') unless defined param('showHints');
3132
<%= check_box showHints => 'on', class => 'form-check-input me-1' =%>
3233
<%= maketext('Hints') =%>
34+
<%= hidden_field showHints => 0 =%>
3335
</label>
3436
</div>
3537
<div class="form-check form-check-inline ms-2">
3638
<label class="form-check-label col-form-label-sm">
39+
% param('showSolutions', 'on') unless defined param('showSolutions');
3740
<%= check_box showSolutions => 'on', class => 'form-check-input me-1' =%>
3841
<%= maketext('Solutions') =%>
42+
<%= hidden_field showSolutions => 0 =%>
3943
</label>
4044
</div>
4145
</div>

0 commit comments

Comments
 (0)