Convenience for AuthPreds

This commit is contained in:
SJost 2019-02-06 16:30:51 +01:00
parent fbfa4bdff2
commit 26cc12127b
3 changed files with 11 additions and 1 deletions

View File

@ -592,6 +592,7 @@ MenuSheetClone: Als neues Übungsblatt klonen
MenuCorrectionsUpload: Korrekturen hochladen
MenuCorrectionsCreate: Abgaben registrieren
MenuCorrectionsGrade: Abgaben bewerten
MenuAuthPreds: Authorisierungseinstellungen
AuthPredsActive: Aktive Authorisierungsprädikate
AuthPredsActiveChanged: Authorisierungseinstellungen für aktuelle Sitzung gespeichert

View File

@ -1206,6 +1206,14 @@ pageActions (ProfileR) =
, menuItemModal = False
, menuItemAccessCallback' = return True
}
-- , MenuItem
-- { menuItemType = PageActionSecondary
-- , menuItemLabel = MsgMenuAuthPreds
-- , menuItemIcon = Nothing
-- , menuItemRoute = SomeRoute AuthPredsR
-- , menuItemModal = True
-- , menuItemAccessCallback' = return True
-- }
]
pageActions TermShowR =
[ MenuItem

View File

@ -268,7 +268,8 @@ postAuthPredsR = do
((authActiveRes, authActiveWidget), authActiveEnctype) <- runFormPost . renderAForm FormStandard
$ AuthTagActive
<$> funcForm taForm (fslI MsgActiveAuthTags) True
<$> (submitButton -- for convenience, avoids frequent scrolling
*> funcForm taForm (fslI MsgActiveAuthTags) True)
<* submitButton
mReferer <- runMaybeT $ do