feat(corrections assignment): add convenience to table header
links look ugly in table headers so as a workaround we use an icon instead for a much needed link in the corrections assignment table
This commit is contained in:
parent
d838d36239
commit
56c2fccb84
@ -45,6 +45,7 @@ data Icon
|
||||
| IconExamRegisterFalse
|
||||
| IconCommentTrue
|
||||
| IconCommentFalse
|
||||
| IconLink
|
||||
| IconFileDownload
|
||||
| IconFileZip
|
||||
| IconFileCSV
|
||||
@ -71,6 +72,7 @@ iconText = \case
|
||||
IconExamRegisterFalse -> "calendar-times"
|
||||
IconCommentTrue -> "comment-alt"
|
||||
IconCommentFalse -> "comment-slash" -- comment-alt-slash is not available for free
|
||||
IconLink -> "link"
|
||||
IconFileDownload -> "file-download"
|
||||
IconFileZip -> "file-archive"
|
||||
IconFileCSV -> "file-csv"
|
||||
|
||||
@ -56,8 +56,10 @@
|
||||
|
||||
$# Always iterate over orderedSheetNames for consistent sorting! Newest first, except in this table
|
||||
$forall shn <- orderedSheetNames
|
||||
<th .table__th colspan=5>#{shn}
|
||||
$# ^{simpleLinkI (SomeMessage MsgMenuCorrectors) (CSheetR tid ssh csh shn SCorrR)}
|
||||
<th .table__th colspan=5>
|
||||
$# Links currently look ugly in table headers; used an icon as a workaround:
|
||||
^{simpleLink (toWidget iconLink) (CSheetR tid ssh csh shn SShowR)}
|
||||
#{shn}
|
||||
<tr .table__row .table__row--head>
|
||||
<th .table__th>_{MsgNrSubmissionsTotal}
|
||||
<th .table__th>_{MsgNrSubmissionsNotCorrected}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user