|
16 | 16 | % $c->stash->{footerWidthClass} = 'col-md-10 col-lg-8'; |
17 | 17 | % |
18 | 18 | <div class="row"> |
19 | | - <div class="border border-dark p-2 col-md-10 col-lg-8"> |
| 19 | + <div class="col-md-10 col-lg-8 border border-dark p-2"> |
20 | 20 | <%= form_for current_route, name => 'scoring-form', id => 'scoring-form', method => 'POST', begin =%> |
21 | 21 | <%= $c->hidden_authen_fields =%> |
22 | 22 | <%= hidden_field returning => 1 =%> |
23 | 23 | <div class="row"> |
24 | | - <div class="col-sm-6 mb-2"> |
| 24 | + <div class="mb-2 col-6"> |
25 | 25 | <%= label_for selectedSet => maketext('Selected sets:'), class => 'form-label' =%> |
26 | 26 | <%= select_field selectedSet => |
27 | 27 | [ map { [ format_set_name_display($_) => $_ ] } @{ $c->{ra_set_ids} } ], |
28 | 28 | id => 'selectedSet', class => 'form-select', size => 10, multiple => undef, dir => 'ltr' =%> |
29 | 29 | </div> |
30 | | - <div class="col-sm-6 my-sm-auto mb-2"> |
| 30 | + <div class="col-6 mt-5"> |
31 | 31 | <div class="form-check"> |
32 | 32 | <label class="form-check-label"> |
33 | | - <%= check_box includeIndex => 1, class => 'form-check-input' =%> |
34 | | - <%= maketext('Include Success Index') =%> |
| 33 | + % param('padFields', 1) unless param('returning'); |
| 34 | + <%= check_box padFields => 1, class => 'form-check-input' =%> |
| 35 | + <%= maketext('Pad fields') =%> |
35 | 36 | </label> |
36 | 37 | </div> |
37 | 38 | <div class="form-check"> |
38 | 39 | <label class="form-check-label"> |
39 | | - <%= check_box recordSingleSetScores => 1, class => 'form-check-input' =%> |
40 | | - <%= maketext('Record Scores for Single Sets') =%> |
| 40 | + % param('includePercentEachSet', 1) unless param('returning'); |
| 41 | + <%= check_box includePercentEachSet => 1, class => 'form-check-input' =%> |
| 42 | + <%= maketext('Include percentage columns') =%> |
41 | 43 | </label> |
42 | 44 | </div> |
43 | 45 | <div class="form-check"> |
44 | 46 | <label class="form-check-label"> |
45 | | - % param('padFields', 1) unless param('returning'); |
46 | | - <%= check_box padFields => 1, class => 'form-check-input' =%> |
47 | | - <%= maketext('Pad Fields') =%> |
| 47 | + <%= check_box includeIndex => 1, class => 'form-check-input' =%> |
| 48 | + <%= maketext('Include success index columns') =%> |
48 | 49 | </label> |
49 | 50 | </div> |
50 | 51 | <div class="form-check"> |
51 | 52 | <label class="form-check-label"> |
52 | | - % param('includePercentEachSet', 1) unless param('returning'); |
53 | | - <%= check_box includePercentEachSet => 1, class => 'form-check-input' =%> |
54 | | - <%= maketext('Include percentage grades columns for all sets') =%> |
| 53 | + <%= check_box recordSingleSetScores => 1, class => 'form-check-input' =%> |
| 54 | + <%= maketext('Record scores for each set') =%> |
55 | 55 | </label> |
56 | 56 | </div> |
57 | 57 | </div> |
|
68 | 68 | % |
69 | 69 | % my @selected = param('selectedSet'); |
70 | 70 | % if (@selected) { |
71 | | - <p><%= maketext('All of these files will also be made available for mail merge.') %></p> |
72 | | -% } |
73 | | -% |
74 | | -% for my $setID (@selected) { |
75 | | - % my @validFiles; |
76 | | - % for my $type ('scr', 'ful') { |
77 | | - % my $filename = "s$setID$type.csv"; |
78 | | - % my $path = "$scoringDir/$filename"; |
79 | | - % push @validFiles, $filename if -f $path; |
80 | | - % } |
81 | | - % if (@validFiles) { |
82 | | - <h2 dir="ltr"><%= format_set_name_display($setID) %></h2> |
83 | | - % for my $filename (@validFiles) { |
84 | | - <div class="mb-3"> |
85 | | - <%= link_to $filename => |
86 | | - $c->systemLink(url_for('instructor_scoring_download'), params => { getFile => $filename }) =%> |
87 | | - </div> |
| 71 | + <p class="mt-2"><%= maketext('All of these files will also be made available for mail merge.') %></p> |
| 72 | + <dl> |
| 73 | + % for my $setID (@selected) { |
| 74 | + % my @validFiles; |
| 75 | + % for my $type ('scr', 'ful') { |
| 76 | + % my $filename = "s$setID$type.csv"; |
| 77 | + % my $path = "$scoringDir/$filename"; |
| 78 | + % push @validFiles, $filename if -f $path; |
88 | 79 | % } |
89 | | - <hr> |
| 80 | + % if (@validFiles) { |
| 81 | + <dt dir="ltr"><%= format_set_name_display($setID) %></dt> |
| 82 | + <dd> |
| 83 | + <ul> |
| 84 | + % for my $filename (@validFiles) { |
| 85 | + <li> |
| 86 | + <%= link_to $filename => |
| 87 | + $c->systemLink(url_for('instructor_scoring_download'), params => { getFile => $filename }) =%> |
| 88 | + </li> |
| 89 | + % } |
| 90 | + </ul> |
| 91 | + </dd> |
| 92 | + % } |
| 93 | + </dl> |
90 | 94 | % } |
91 | 95 | % } |
| 96 | +% |
92 | 97 | % if (-f "$scoringDir/$c->{scoringFileName}") { |
93 | | - <h2><%= maketext('Totals') %></h2> |
| 98 | + <h2 class="my-2"><%= maketext('Scores') %></h2> |
| 99 | + <%= maketext("Download: ") %> |
94 | 100 | <%= link_to $c->{scoringFileName} => |
95 | | - $c->systemLink(url_for('instructor_scoring_download'), params => { getFile => $c->{scoringFileName} }) =%> |
96 | | - <hr> |
97 | | - <pre style="font-size:smaller"><%== WeBWorK::Utils::readFile("$scoringDir/$c->{scoringFileName}") =%></pre> |
| 101 | + $c->systemLink(url_for('instructor_scoring_download'), params => { getFile => $c->{scoringFileName} }), |
| 102 | + class => 'font-monospace' =%> |
| 103 | + <pre class="mt-2 bg-light border" style="font-size:smaller; width:fit-content; max-width:100%;"> |
| 104 | + <%== WeBWorK::Utils::readFile("$scoringDir/$c->{scoringFileName}") =%>\ |
| 105 | + </pre> |
98 | 106 | % } |
0 commit comments