forked from openwebwork/webwork2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
202 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 84 additions & 33 deletions
117
templates/ContentGenerator/Instructor/JobManager/sort_form.html.ep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,92 @@ | ||
<div> | ||
<div class="row mb-2"> | ||
<%= label_for sort_select_1 => maketext('Sort by') . ':', class => 'col-form-label col-form-label-sm', | ||
style => 'width:4.5rem' =%> | ||
<div class="col-auto"> | ||
<%= select_field 'action.sort.primary' => [ | ||
map { [ | ||
maketext($_->[1]) => $_->[0], | ||
$_->[0] eq 'created' ? (selected => undef) : () | ||
] } @$fields | ||
], | ||
id => 'sort_select_1', class => 'form-select form-select-sm' =%> | ||
<div class="row"> | ||
<div class="col-md-auto col-sm-12"> | ||
<div class="row mb-2"> | ||
<%= label_for sort_select_1 => maketext('Sort by') . ':', | ||
class => 'col-form-label col-form-label-sm', style => 'width:4.5rem' =%> | ||
<div class="col-auto"> | ||
<%= select_field 'action.sort.primary' => [ | ||
map { [ | ||
maketext($_->[1]) => $_->[0], | ||
$_->[0] eq 'created' ? (selected => undef) : () | ||
] } @$fields | ||
], | ||
id => 'sort_select_1', class => 'form-select form-select-sm' =%> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-auto col-sm-12"> | ||
<div class="row mb-2"> | ||
<%= label_for sort_order_select_1 => maketext('Ordered') . ':', | ||
class => 'col-form-label col-form-label-sm', style => 'width:4.5rem' =%> | ||
<div class="col-auto"> | ||
<%= select_field 'action.sort.primary.order' => [ | ||
[ maketext('Ascending') => 'ASC' ], | ||
[ maketext('Descending') => 'DESC' ], | ||
], | ||
id => 'sort_order_select_1', class => 'form-select form-select-sm' =%> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row mb-2"> | ||
<%= label_for sort_select_2 => maketext('Then by') . ':', class => 'col-form-label col-form-label-sm', | ||
style => 'width:4.5rem' =%> | ||
<div class="col-auto"> | ||
<%= select_field 'action.sort.secondary' => [ | ||
map { [ | ||
maketext($_->[1]) => $_->[0], | ||
$_->[0] eq 'task' ? (selected => undef) : () | ||
] } @$fields | ||
], | ||
id => 'sort_select_2', class => 'form-select form-select-sm' =%> | ||
<div class="row"> | ||
<div class="col-md-auto col-sm-12"> | ||
<div class="row mb-2"> | ||
<%= label_for sort_select_2 => maketext('Then by') . ':', | ||
class => 'col-form-label col-form-label-sm', style => 'width:4.5rem' =%> | ||
<div class="col-auto"> | ||
<%= select_field 'action.sort.secondary' => [ | ||
map { [ | ||
maketext($_->[1]) => $_->[0], | ||
$_->[0] eq 'task' ? (selected => undef) : () | ||
] } @$fields | ||
], | ||
id => 'sort_select_2', class => 'form-select form-select-sm' =%> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-auto col-sm-12"> | ||
<div class="row mb-2"> | ||
<%= label_for sort_order_select_2 => maketext('Ordered') . ':', | ||
class => 'col-form-label col-form-label-sm', style => 'width:4.5rem' =%> | ||
<div class="col-auto"> | ||
<%= select_field 'action.sort.secondary.order' => [ | ||
[ maketext('Ascending') => 'ASC' ], | ||
[ maketext('Descending') => 'DESC' ], | ||
], | ||
id => 'sort_order_select_2', class => 'form-select form-select-sm' =%> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row mb-2"> | ||
<%= label_for sort_select_3 => maketext('Then by') . ':', class => 'col-form-label col-form-label-sm', | ||
style => 'width:4.5rem' =%> | ||
<div class="col-auto"> | ||
<%= select_field 'action.sort.ternary' => [ | ||
map { [ | ||
maketext($_->[1]) => $_->[0], | ||
$_->[0] eq 'state' ? (selected => undef) : () | ||
] } @$fields | ||
], | ||
id => 'sort_select_3', class => 'form-select form-select-sm' =%> | ||
<div class="row"> | ||
<div class="col-md-auto col-sm-12"> | ||
<div class="row mb-2"> | ||
<%= label_for sort_select_3 => maketext('Then by') . ':', | ||
class => 'col-form-label col-form-label-sm', style => 'width:4.5rem' =%> | ||
<div class="col-auto"> | ||
<%= select_field 'action.sort.ternary' => [ | ||
map { [ | ||
maketext($_->[1]) => $_->[0], | ||
$_->[0] eq 'state' ? (selected => undef) : () | ||
] } @$fields | ||
], | ||
id => 'sort_select_3', class => 'form-select form-select-sm' =%> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-md-auto col-sm-12"> | ||
<div class="row mb-2"> | ||
<%= label_for sort_order_select_3 => maketext('Ordered') . ':', | ||
class => 'col-form-label col-form-label-sm', style => 'width:4.5rem' =%> | ||
<div class="col-auto"> | ||
<%= select_field 'action.sort.ternary.order' => [ | ||
[ maketext('Ascending') => 'ASC' ], | ||
[ maketext('Descending') => 'DESC' ], | ||
], | ||
id => 'sort_order_select_3', class => 'form-select form-select-sm' =%> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |