chore(avs): show avs config on test page

This commit is contained in:
Steffen Jost 2023-01-17 18:13:46 +01:00
parent 19012abd38
commit eb4e50b19c
2 changed files with 11 additions and 2 deletions

View File

@ -114,6 +114,13 @@ avsLicenceOptions = mkOptionList
getAdminAvsR, postAdminAvsR :: Handler Html
getAdminAvsR = postAdminAvsR
postAdminAvsR = do
mbAvsConf <- getsYesod $ view _appAvsConf
let avsWgt = [whamlet|
$maybe avsConf <- mbAvsConf
AVS Konfiguration ist #{decodeUtf8 (avsUser avsConf)}@#{avsHost avsConf}:#{avsPort avsConf}
$nothing
AVS nicht konfiguriert!
|]
mAvsQuery <- getsYesod $ view _appAvsQuery
case mAvsQuery of
Nothing -> return mempty
@ -405,7 +412,6 @@ getProblemAvsSynchR = do
setTitleI MsgAvsTitleLicenceSynch
$(i18nWidgetFile "avs-synchronisation")
type LicenceTableExpr = ( E.SqlExpr (Entity UserAvs)
`E.InnerJoin` E.SqlExpr (Entity User)
`E.LeftOuterJoin` E.SqlExpr (Maybe (Entity QualificationUser))

View File

@ -52,4 +52,7 @@ $# SPDX-License-Identifier: AGPL-3.0-or-later
$maybe answer <- mbStatus
<p>
Unverarbeitete Antwort: #
^{answer}
^{answer}
<section>
^{modal "AVS Konfiguration" (Right avsWgt)}