$newline never $# SPDX-FileCopyrightText: 2022 Gregor Kleen ,Sarah Vaupel ,Sarah Vaupel ,Steffen Jost ,Winnie Ros $# $# SPDX-License-Identifier: AGPL-3.0-or-later $maybe warn <- submissionModeNoneWithoutNotGradedWarning ^{warn} $maybe descr <- sheetDescription sheet

_{MsgSheetDescription}

#{descr}

_{MsgSheetAccessibleSince}
$maybe invisible <- visibleFrom ^{invisible} $nothing #{isVisible False} _{MsgSheetInvisible}
$if hasSubmission _{MsgSheetActiveFromParticipant} $else _{MsgSheetActiveFromParticipantNoSubmit}
$maybe ts <- sheetFrom #{ts} $nothing _{MsgSheetActiveFromUnset} $if hasSubmission
_{MsgSheetActiveToParticipant} $maybe ts <- sheetTo
#{ts} $nothing
_{MsgSheetActiveToUnset} $maybe hints <- hintsFrom <* guard hasHints
_{MsgSheetHintFrom}
#{hints} $maybe solution <- solutionFrom <* guard hasSolution
_{MsgSheetSolutionFrom}
#{solution} $maybe (_, _, _, examn) <- mRequiredExam
_{MsgSheetShowRequiredExam}

_{MsgSheetSubmissionExamRegistrationRequired}

$maybe url <- mRequiredExamLink #{examn} $nothing #{examn}
_{MsgSheetSubmissionMode}
_{classifySubmissionMode (sheetSubmissionMode sheet)} $case sheetSubmissionMode sheet $of SubmissionMode True _ ^{messageTooltip submissionTip} $of _ $case sheetSubmissionMode sheet $of SubmissionMode True _
_{MsgSheetPseudonym}
$maybe pseudonym <- mPseudonym #{pseudonym} $nothing ^{generateForm} $of _
_{MsgTableSheetType}
^{sTypeDesc tr} $# $if mayEdit || maySubmit $#
$# _{MsgSheetAuthorshipStatementSection} $#
$# _{maybe MsgSheetAuthorshipStatementIsRequiredFalse (const MsgSheetAuthorshipStatementIsRequiredTrue) (sheetAuthorshipStatement sheet)} $if authorshipStatementRequired
_{MsgSheetShowAuthorshipStatementsRequired}
_{MsgSheetShowAuthorshipStatementsRequiredYes} $maybe marktxt <- markingText

_{MsgSheetMarking}

#{marktxt} $if fromMaybe False mMissingPersonalisedFiles

^{notificationWidget NotificationBroad Warning (i18n MsgSheetFilesMissingPersonalisedFiles)} $elseif fromMaybe False mMissingExamRegistration
^{notificationWidget NotificationBroad Warning (i18n MsgSheetFilesExamRegistrationRequired)} $if hasFiles

^{simpleLinkI (SomeMessage MsgSheetFiles) zipLink} ^{fileTable}