>
- % if (defined $userRecord) {
+ % unless ($isVersioned) {
- <%= $isVersioned ? maketext(q{User's Test Version Dates}) : maketext('User Overrides') =%>
+ <%= maketext('Assignment Dates') =%>
|
% }
- % unless ($isVersioned) {
- >
- <%= $isGateway ? maketext('Test Dates') : maketext('Assignment Dates') =%>
+ % if (defined $userRecord) {
+ | >
+ <%= $isVersioned ? maketext(q{User's Test Version Dates}) : maketext('User Overrides') =%>
|
% }
@@ -32,13 +32,24 @@
maketext($fieldLabels->{$field}),
class => 'form-label mb-0' =%>
+ % unless ($isVersioned) {
+
+ <%= text_field "set.$setID.$field.class_value" =>
+ $c->formatDateTime($globalValue, 'datetime_format_short'),
+ id => "set.$setID.$field.class_value", readonly => undef, dir => 'ltr',
+ class => 'form-control-plaintext form-control-sm w-auto',
+ size => 16,
+ defined $userRecord ? ('aria-labelledby' => "set.$setID.${field}_id") : () =%>
+ |
+ % }
% if (defined $userRecord) {
<%= text_field "set.$setID.$field" =>
defined $userRecord ? $userRecord->$field : $globalValue,
id => "set.$setID.${field}_id",
- class => 'form-control w-auto' . ($field eq 'open_date' ? ' datepicker-group' : ''),
+ class => 'form-control w-auto'
+ . ($field eq 'open_date' ? ' datepicker-group' : ''),
placeholder => $isGateway
? ($isVersioned && $field ne 'reduced_scoring_date'
? maketext('Required')
@@ -60,15 +71,6 @@
|
% }
- % unless ($isVersioned) {
-
- <%= text_field "set.$setID.$field.class_value" =>
- $c->formatDateTime($globalValue, 'datetime_format_short'),
- id => "set.$setID.$field.class_value", readonly => undef, dir => 'ltr',
- class => 'form-control form-control-sm w-auto',
- defined $userRecord ? ('aria-labelledby' => "set.$setID.${field}_id") : () =%>
- |
- % }
% }
diff --git a/templates/ContentGenerator/Instructor/UserDetail/set_row.html.ep b/templates/ContentGenerator/Instructor/UserDetail/set_row.html.ep
index df4d683b12..33d26d9397 100644
--- a/templates/ContentGenerator/Instructor/UserDetail/set_row.html.ep
+++ b/templates/ContentGenerator/Instructor/UserDetail/set_row.html.ep
@@ -2,29 +2,40 @@
%
% # my ($set, $userSet, $mergedSet, $version) = @_;
% my $setID = $set->set_id;
+% my $isGateway = $set->assignment_type =~ /gateway/;
% my $version = stash 'version';
-
-
- |
-
+ |
% if (defined $mergedSet) {
-
+
+ % if ($isGateway) {
+
+ <%= maketext('Test/Quiz') %>
+ % }
<%= link_to format_set_name_display($version ? "$setID (version $version)" : $setID) =>
$c->systemLink(
url_for('instructor_set_detail', setID => $setID . ($version ? ",v$version" : '')),
params => { editForUser => $userID }
) =%>
-
+
% if ($version) {
<%= hidden_field "set.$setID,v$version.assignment" => 'delete' =%>
% }
% } else {
- <%= format_set_name_display($setID) %>
+
+ % if ($isGateway) {
+
+ <%= maketext('Test/Quiz') %>
+ % }
+ <%= format_set_name_display($setID) %>
+
% }
+ |
+
+
|
<%= include 'ContentGenerator/Instructor/UserDetail/set_date_table',
|