Skip to content

Commit

Permalink
Make the Library Browser "Hints", "Solutions", and "Include Contrib" …
Browse files Browse the repository at this point in the history
…check boxes checked by default.

This was requested in openwebwork#2668 for "Hints" and "Solutions", and in the
developer meeting for "Include Contrib".
  • Loading branch information
drgrice1 committed Feb 14, 2025
1 parent 28b21ed commit a4806de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
<%= hidden_field includeOPL => 0 =%>
</div>
<div class="form-check font-sm">
% 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 =%>
</div>
% } else {
<%= hidden_field includeOPL => 1 =%>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,18 @@
<div class="d-inline-block ms-2 mb-2">
<div class="form-check form-check-inline ms-2">
<label class="form-check-label col-form-label-sm">
% param('showHints', 'on') unless defined param('showHints');
<%= check_box showHints => 'on', class => 'form-check-input me-1' =%>
<%= maketext('Hints') =%>
<%= hidden_field showHints => 0 =%>
</label>
</div>
<div class="form-check form-check-inline ms-2">
<label class="form-check-label col-form-label-sm">
% param('showSolutions', 'on') unless defined param('showSolutions');
<%= check_box showSolutions => 'on', class => 'form-check-input me-1' =%>
<%= maketext('Solutions') =%>
<%= hidden_field showSolutions => 0 =%>
</label>
</div>
</div>
Expand Down

0 comments on commit a4806de

Please sign in to comment.