feat(hide-columns): add more hider labels
This commit is contained in:
parent
03e4ac1cca
commit
eba58d83a0
@ -1435,8 +1435,6 @@ TutorialRoomPlaceholder: Raum
|
|||||||
TutorialTutors: Tutoren
|
TutorialTutors: Tutoren
|
||||||
TutorialTutorAlreadyAdded: Ein Tutor mit dieser E-Mail ist bereits für dieses Tutorium eingetragen
|
TutorialTutorAlreadyAdded: Ein Tutor mit dieser E-Mail ist bereits für dieses Tutorium eingetragen
|
||||||
|
|
||||||
TutorialActionsHead: Aktionen
|
|
||||||
|
|
||||||
OccurrenceNoneScheduled: (Noch) keine planmäßigen Termine
|
OccurrenceNoneScheduled: (Noch) keine planmäßigen Termine
|
||||||
OccurrenceNoneExceptions: (Noch) keine Termin-Ausnahmen
|
OccurrenceNoneExceptions: (Noch) keine Termin-Ausnahmen
|
||||||
|
|
||||||
@ -1663,6 +1661,8 @@ ExamUserMarkedSynchronised n@Int: #{n} #{pluralDE n "Prüfungsleistung" "Prüfun
|
|||||||
|
|
||||||
ExamOfficeExamUsersHeading: Prüfungsleistungen
|
ExamOfficeExamUsersHeading: Prüfungsleistungen
|
||||||
|
|
||||||
|
ActionsHead: Aktionen
|
||||||
|
|
||||||
CsvFile: CSV-Datei
|
CsvFile: CSV-Datei
|
||||||
CsvImport: CSV-Import
|
CsvImport: CSV-Import
|
||||||
CsvExport: CSV-Export
|
CsvExport: CSV-Export
|
||||||
|
|||||||
@ -1433,8 +1433,6 @@ TutorialRoomPlaceholder: Room
|
|||||||
TutorialTutors: Tutors
|
TutorialTutors: Tutors
|
||||||
TutorialTutorAlreadyAdded: An user with this email address is already registered as tutor
|
TutorialTutorAlreadyAdded: An user with this email address is already registered as tutor
|
||||||
|
|
||||||
TutorialActionsHead: Actions
|
|
||||||
|
|
||||||
OccurrenceNoneScheduled: No regular occurrences (yet)
|
OccurrenceNoneScheduled: No regular occurrences (yet)
|
||||||
OccurrenceNoneExceptions: No exceptions (yet)
|
OccurrenceNoneExceptions: No exceptions (yet)
|
||||||
|
|
||||||
@ -1661,6 +1659,8 @@ ExamUserMarkedSynchronised n: Successfully marked #{n} #{pluralEN n "exam achiev
|
|||||||
|
|
||||||
ExamOfficeExamUsersHeading: Exam achievements
|
ExamOfficeExamUsersHeading: Exam achievements
|
||||||
|
|
||||||
|
ActionsHead: Actions
|
||||||
|
|
||||||
CsvFile: CSV file
|
CsvFile: CSV file
|
||||||
CsvImport: CSV import
|
CsvImport: CSV import
|
||||||
CsvExport: CSV export
|
CsvExport: CSV export
|
||||||
|
|||||||
@ -153,7 +153,7 @@ getCShowR tid ssh csh = do
|
|||||||
E.where_ $ participant E.^. TutorialParticipantTutorial E.==. E.val tutid
|
E.where_ $ participant E.^. TutorialParticipantTutorial E.==. E.val tutid
|
||||||
in return $ E.val tutorialCapacity' E.-. numParticipants
|
in return $ E.val tutorialCapacity' E.-. numParticipants
|
||||||
return . toWidget $ tshow freeCapacity
|
return . toWidget $ tshow freeCapacity
|
||||||
, sortable Nothing (mempty & cellAttrs <>~ pure ("uw-hide-columns--hider-label", mr MsgTutorialActionsHead)) $ \DBRow{ dbrOutput = Entity tutId Tutorial{..} } -> sqlCell $ do
|
, sortable Nothing (mempty & cellAttrs <>~ pure ("uw-hide-columns--hider-label", mr MsgActionsHead)) $ \DBRow{ dbrOutput = Entity tutId Tutorial{..} } -> sqlCell $ do
|
||||||
mayRegister <- (== Authorized) <$> evalAccessDB (CTutorialR tid ssh csh tutorialName TRegisterR) True
|
mayRegister <- (== Authorized) <$> evalAccessDB (CTutorialR tid ssh csh tutorialName TRegisterR) True
|
||||||
isRegistered <- case mbAid of
|
isRegistered <- case mbAid of
|
||||||
Nothing -> return False
|
Nothing -> return False
|
||||||
|
|||||||
@ -52,7 +52,7 @@ getCTutorialListR tid ssh csh = do
|
|||||||
, sortable (Just "register-from") (i18nCell MsgTutorialRegisterFrom) $ \DBRow{ dbrOutput = (Entity _ Tutorial{..}, _) } -> maybeDateTimeCell tutorialRegisterFrom
|
, sortable (Just "register-from") (i18nCell MsgTutorialRegisterFrom) $ \DBRow{ dbrOutput = (Entity _ Tutorial{..}, _) } -> maybeDateTimeCell tutorialRegisterFrom
|
||||||
, sortable (Just "register-to") (i18nCell MsgTutorialRegisterTo) $ \DBRow{ dbrOutput = (Entity _ Tutorial{..}, _) } -> maybeDateTimeCell tutorialRegisterTo
|
, sortable (Just "register-to") (i18nCell MsgTutorialRegisterTo) $ \DBRow{ dbrOutput = (Entity _ Tutorial{..}, _) } -> maybeDateTimeCell tutorialRegisterTo
|
||||||
, sortable (Just "deregister-until") (i18nCell MsgTutorialDeregisterUntil) $ \DBRow{ dbrOutput = (Entity _ Tutorial{..}, _) } -> maybeDateTimeCell tutorialDeregisterUntil
|
, sortable (Just "deregister-until") (i18nCell MsgTutorialDeregisterUntil) $ \DBRow{ dbrOutput = (Entity _ Tutorial{..}, _) } -> maybeDateTimeCell tutorialDeregisterUntil
|
||||||
, sortable Nothing (mempty & cellAttrs <>~ pure ("uw-hide-columns--hider-label", mr MsgTutorialActionsHead)) $ \DBRow{ dbrOutput = (Entity _ Tutorial{..}, _) } -> cell $ do
|
, sortable Nothing (mempty & cellAttrs <>~ pure ("uw-hide-columns--hider-label", mr MsgActionsHead)) $ \DBRow{ dbrOutput = (Entity _ Tutorial{..}, _) } -> cell $ do
|
||||||
linkButton mempty [whamlet|_{MsgTutorialEdit}|] [BCIsButton] . SomeRoute $ CTutorialR tid ssh csh tutorialName TEditR
|
linkButton mempty [whamlet|_{MsgTutorialEdit}|] [BCIsButton] . SomeRoute $ CTutorialR tid ssh csh tutorialName TEditR
|
||||||
linkButton mempty [whamlet|_{MsgTutorialDelete}|] [BCIsButton, BCDanger] . SomeRoute $ CTutorialR tid ssh csh tutorialName TDeleteR
|
linkButton mempty [whamlet|_{MsgTutorialDelete}|] [BCIsButton, BCDanger] . SomeRoute $ CTutorialR tid ssh csh tutorialName TDeleteR
|
||||||
]
|
]
|
||||||
|
|||||||
@ -71,6 +71,7 @@ instance Button UniWorX AllUsersAction where
|
|||||||
getUsersR, postUsersR :: Handler Html
|
getUsersR, postUsersR :: Handler Html
|
||||||
getUsersR = postUsersR
|
getUsersR = postUsersR
|
||||||
postUsersR = do
|
postUsersR = do
|
||||||
|
MsgRenderer mr <- getMsgRenderer
|
||||||
let
|
let
|
||||||
dbtColonnade = mconcat $
|
dbtColonnade = mconcat $
|
||||||
[ dbRow
|
[ dbRow
|
||||||
@ -100,7 +101,7 @@ postUsersR = do
|
|||||||
$forall (E.Value sh) <- schools
|
$forall (E.Value sh) <- schools
|
||||||
<li>#{sh}
|
<li>#{sh}
|
||||||
|]
|
|]
|
||||||
, sortable Nothing mempty $ \inp@DBRow{ dbrOutput = Entity uid _ } -> FormCell
|
, sortable Nothing (mempty & cellAttrs <>~ pure ("hide-columns--hider-label", mr MsgActionsHead)) $ \inp@DBRow{ dbrOutput = Entity uid _ } -> FormCell
|
||||||
{ formCellAttrs = []
|
{ formCellAttrs = []
|
||||||
, formCellLens = id
|
, formCellLens = id
|
||||||
, formCellContents = do
|
, formCellContents = do
|
||||||
|
|||||||
Reference in New Issue
Block a user