gonito/templates/edit-submission.hamlet

23 lines
663 B
Plaintext

^{view}
<form method=post action=@{EditSubmissionR submissionId}#form enctype=#{formEnctype}>
^{formWidget}
<button .btn .btn-primary type="submit">
_{MsgSubmit} <span class="glyphicon glyphicon-upload"></span>
<hr>
<ul>
$forall (achievement, workingOnId) <- achievements
<li><a href=@{SubmissionForAchievementR submissionId workingOnId}>send to review for #{achievementName $ entityVal achievement} achievement
<h4>
$if submissionIsHidden submission == Just True
<p>Submission is hidden!
<p>
<a href=@{RestoreSubmissionR submissionId}>_{MsgRestoreSubmission}
$else
<p>
<a href=@{HideSubmissionR submissionId}>_{MsgRemoveSubmission}