PageAction: newSubmission working
This commit is contained in:
parent
56476ccb3e
commit
0e8ed257f8
@ -48,6 +48,9 @@ decCryptoIDs [ ''SubmissionId
|
|||||||
newtype SubmissionMode = SubmissionMode (Maybe CryptoUUIDSubmission)
|
newtype SubmissionMode = SubmissionMode (Maybe CryptoUUIDSubmission)
|
||||||
deriving (Show, Read, Eq)
|
deriving (Show, Read, Eq)
|
||||||
|
|
||||||
|
newSubmission :: SubmissionMode
|
||||||
|
newSubmission = SubmissionMode Nothing
|
||||||
|
|
||||||
instance PathPiece SubmissionMode where
|
instance PathPiece SubmissionMode where
|
||||||
fromPathPiece "new" = Just $ SubmissionMode Nothing
|
fromPathPiece "new" = Just $ SubmissionMode Nothing
|
||||||
fromPathPiece s = SubmissionMode . Just <$> fromPathPiece s
|
fromPathPiece s = SubmissionMode . Just <$> fromPathPiece s
|
||||||
|
|||||||
@ -200,7 +200,7 @@ getSheetShowR tid csh shn = do
|
|||||||
[ PageActionPrime $ MenuItem
|
[ PageActionPrime $ MenuItem
|
||||||
{ menuItemLabel = "Abgabe"
|
{ menuItemLabel = "Abgabe"
|
||||||
, menuItemIcon = Nothing
|
, menuItemIcon = Nothing
|
||||||
, menuItemRoute = CSheetR tid csh SheetNewR
|
, menuItemRoute = CSheetR tid csh (SubmissionR shn newSubmission)
|
||||||
, menuItemAccessCallback' = return True
|
, menuItemAccessCallback' = return True
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -213,13 +213,13 @@ postSubmissionR tid csh shn (SubmissionMode mcid) = do
|
|||||||
<hr>
|
<hr>
|
||||||
<h2>
|
<h2>
|
||||||
<a href=@{SubmissionDownloadArchiveR arCid}>Archiv
|
<a href=@{SubmissionDownloadArchiveR arCid}>Archiv
|
||||||
|
$forall (name,time) <- lastEdits
|
||||||
|
<div>last edited by #{name} at #{formatTimeGerWDT time}
|
||||||
$maybe cid <- mcid
|
$maybe cid <- mcid
|
||||||
<h3>Enthaltene Dateien:
|
<h3>Enthaltene Dateien:
|
||||||
$forall (Entity _ File{..}) <- oldfiles
|
$forall (Entity _ File{..}) <- oldfiles
|
||||||
<a href=@{SubmissionDownloadSingleR cid fileTitle}>
|
<a href=@{SubmissionDownloadSingleR cid fileTitle}>
|
||||||
#{fileTitle}
|
#{fileTitle}
|
||||||
$forall (name,time) <- lastEdits
|
|
||||||
<div>last edited by #{name} at #{formatTimeGerWDT time}
|
|
||||||
|]
|
|]
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user