-
-
Notifications
You must be signed in to change notification settings - Fork 165
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
5 changed files
with
239 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
37 changes: 37 additions & 0 deletions
37
templates/ContentGenerator/Instructor/JobManager/sort_button.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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
% if ($primarySortField eq $field) { | ||
<button type="button" data-sort-priority="primary" | ||
class="sort-order btn btn-secondary rounded-pill btn-sm py-0 fw-bold text-nowrap font-xs"> | ||
1 | ||
% if ($primarySortOrder eq 'ASC') { | ||
<i class="fa-solid fa-chevron-down"></i> | ||
<span class="visually-hidden"><%= maketext('ascending') %></span> | ||
% } else { | ||
<i class="fa-solid fa-chevron-up"></i> | ||
<span class="visually-hidden"><%= maketext('descending') %></span> | ||
% } | ||
</button> | ||
% } elsif ($secondarySortField eq $field) { | ||
<button type="button" data-sort-priority="secondary" | ||
class="sort-order btn btn-secondary rounded-pill btn-sm py-0 fw-bold text-nowrap font-xs"> | ||
2 | ||
% if ($secondarySortOrder eq 'ASC') { | ||
<i class="fa-solid fa-chevron-down"></i> | ||
<span class="visually-hidden"><%= maketext('ascending') %></span> | ||
% } else { | ||
<i class="fa-solid fa-chevron-up"></i> | ||
<span class="visually-hidden"><%= maketext('descending') %></span> | ||
% } | ||
</button> | ||
% } elsif ($ternarySortField eq $field) { | ||
<button type="button" data-sort-priority="ternary" | ||
class="sort-order btn btn-secondary rounded-pill btn-sm py-0 fw-bold text-nowrap font-xs"> | ||
3 | ||
% if ($ternarySortOrder eq 'ASC') { | ||
<i class="fa-solid fa-chevron-down"></i> | ||
<span class="visually-hidden"><%= maketext('ascending') %></span> | ||
% } else { | ||
<i class="fa-solid fa-chevron-up"></i> | ||
<span class="visually-hidden"><%= maketext('descending') %></span> | ||
% } | ||
</button> | ||
% } |
Oops, something went wrong.