+ ^{scrolltable}
diff --git a/templates/widgets/form.hamlet b/templates/widgets/form.hamlet
index 79c2178a6..50d90cbb3 100644
--- a/templates/widgets/form.hamlet
+++ b/templates/widgets/form.hamlet
@@ -1,7 +1,7 @@
$newline never
#{fragment}
$case formLayout
- $of FormStandard
+ $of _
$forall view <- views
$# TODO: add class 'form-group--submit' if this is the submit-button view
diff --git a/test/Database.hs b/test/Database.hs
index 0308a3dfa..1e42ecaf6 100755
--- a/test/Database.hs
+++ b/test/Database.hs
@@ -24,6 +24,9 @@ import qualified Data.ByteString as BS
import Data.Time
+import Utils.Lens (review)
+import Control.Monad.Random.Class (MonadRandom(..))
+
data DBAction = DBClear
| DBTruncate
@@ -151,7 +154,7 @@ fillDb = do
, userMailLanguages = MailLanguages ["de"]
, userNotificationSettings = def
}
- void . insert $ User
+ tinaTester <- insert $ User
{ userIdent = "tester@campus.lmu.de"
, userAuthentication = AuthLDAP
, userMatrikelnummer = Just "999"
@@ -312,6 +315,7 @@ fillDb = do
insert_ $ CourseEdit jost now pmo
void . insert $ DegreeCourse pmo sdBsc sdInf
void . insert $ Lecturer jost pmo
+ void . insertMany $ map (\u -> CourseParticipant pmo u now) [fhamann, maxMuster, tinaTester]
sh1 <- insert Sheet
{ sheetCourse = pmo
, sheetName = "Blatt 1"
@@ -328,6 +332,10 @@ fillDb = do
, sheetSolutionFrom = Nothing
}
void . insert $ SheetEdit jost now sh1
+ forM_ [fhamann, maxMuster, tinaTester] $ \u -> do
+ p <- liftIO getRandom
+ $logDebug (review _PseudonymText p)
+ void . insert $ SheetPseudonym sh1 p u
void . insert $ SheetCorrector jost sh1 (Load (Just True) 0) CorrectorNormal
void . insert $ SheetCorrector gkleen sh1 (Load (Just True) 1) CorrectorNormal
h102 <- insertFile "H10-2.hs"