Skip to content

Commit

Permalink
Merge pull request #2673 from drgrice1/set-maker-checks-on
Browse files Browse the repository at this point in the history
Make the Library Browser "Hints", "Solutions", and "Include Contrib" check boxes checked by default.
  • Loading branch information
Alex-Jordan authored Feb 18, 2025
2 parents da75967 + a4806de commit d455f7b
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 d455f7b

Please sign in to comment.