gonito/templates/edit-submission.hamlet

35 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-02-25 19:13:55 +01:00
^{view}
2017-02-19 22:26:01 +01:00
<form method=post action=@{EditSubmissionR submissionId}#form enctype=#{formEnctype}>
^{formWidget}
<button .btn .btn-primary type="submit">
_{MsgSubmit} <span class="glyphicon glyphicon-upload"></span>
2017-04-03 12:22:52 +02:00
<hr>
<ul>
$forall (achievement, workingOnId) <- achievements
2019-11-30 08:36:21 +01:00
<li><a href=@{SubmissionForAchievementR submissionId workingOnId}>send to review for #{achievementName $ entityVal achievement} achievement</a>
2018-07-30 07:59:38 +02:00
$maybe variantId <- mVariantId
<h4>Variant parameters
$forall param <- variantParams
<p>#{parameterName $ entityVal param} = #{parameterValue $ entityVal param}
<h5>Add new parameter
<form method=post action=@{AddVariantParamR submissionId variantId}#form enctype=#{formEnctype2}>
^{addVariantParamWidget}
<button .btn .btn-primary type="submit">
_{MsgSubmit} <span class="glyphicon glyphicon-upload"></span>
<hr>
2018-11-17 09:49:25 +01:00
$if submissionIsHidden submission == True
<p>Submission is hidden!
<p>
<a href=@{RestoreSubmissionR submissionId}>_{MsgRestoreSubmission}
$else
<p>
<a href=@{HideSubmissionR submissionId}>_{MsgRemoveSubmission}