File tree Expand file tree Collapse file tree 4 files changed +14
-15
lines changed
lib/WeBWorK/ContentGenerator
templates/ContentGenerator Expand file tree Collapse file tree 4 files changed +14
-15
lines changed Original file line number Diff line number Diff line change @@ -1442,13 +1442,13 @@ sub output_custom_edit_message ($c) {
14421442
14431443# Output the "Show Past Answers" button
14441444sub output_past_answer_button ($c ) {
1445- my $problemID = $c -> {problem }-> problem_id;
1446- my $setRecord = $c -> db-> getGlobalSet($c -> {problem }-> set_id);
1447- if (defined $setRecord && $setRecord -> assignment_type eq ' jitar' ) {
1448- $problemID = join (' .' , jitar_id_to_seq($problemID ));
1449- }
1450-
14511445 if ($c -> authz-> hasPermissions($c -> param(' user' ), ' view_answers' )) {
1446+ my $problemID = $c -> {problem }-> problem_id;
1447+ my $setRecord = $c -> db-> getGlobalSet($c -> {problem }-> set_id);
1448+ if (defined $setRecord && $setRecord -> assignment_type eq ' jitar' ) {
1449+ $problemID = join (' .' , jitar_id_to_seq($problemID ));
1450+ }
1451+
14521452 my $hiddenFields = $c -> hidden_authen_fields;
14531453 $hiddenFields =~ s /\" hidden_/ \" pastans-hidden_/ g ;
14541454 return $c -> form_for(
Original file line number Diff line number Diff line change 66 % next if $key eq 'pg_object'; # Not used in internal feedback mechanism
77 <%= hidden_field $key => $value =%>
88 % }
9- <div class="mb-3">
10- <%= submit_button maketext($ce->{feedback_button_name}) || maketext('Email instructor'),
11- name => 'feedbackForm', class => 'btn btn-primary' =%>
12- </div>
9+ <%= submit_button maketext($ce->{feedback_button_name}) || maketext('Email instructor'),
10+ name => 'feedbackForm', class => 'btn btn-primary' =%>
1311% end
Original file line number Diff line number Diff line change 114114 <% end =%>
115115 </div>
116116</div>
117- <div id="problemFooter" class="problemFooter">
118- <%= $c->output_past_answer_button =%>
119- <%= $c->output_email_instructor =%>
120- </div>
117+ <%= $c->output_past_answer_button =%>
118+ % my $emailInstructorButton = $c->output_email_instructor;
119+ % if ($emailInstructorButton) {
120+ <div class="mb-3"><%= $emailInstructorButton =%></div>
121+ % }
121122<%= include 'ContentGenerator/Base/problem_warning_and_debug_output',
122123 warnings => $c->{pg}{warnings},
123124 warning_messages => ref $c->{pg}{warning_messages} eq 'ARRAY' ? $c->{pg}{warning_messages} : [],
Original file line number Diff line number Diff line change 4343 <div class="modal-dialog modal-dialog-centered">
4444 <div class="modal-content">
4545 <div class="modal-header">
46- <h4 class="modal-title"><%= maketext('Achievement Rewards') %></h4 >
46+ <h1 class="modal-title h4 "><%= maketext('Achievement Rewards') %></h1 >
4747 <button type="button" class="btn-close" data-bs-dismiss="modal"
4848 aria-label="<%= maketext('close') %>"></button>
4949 </div>
You can’t perform that action at this time.
0 commit comments