$maybe cID <- mcid
  <section>
    $case sheetUploadMode
      $of Upload _
        <h2>
          <a href=@{urlArchive cID}>Archiv
          (<a href=@{urlOriginal cID}>Original</a>)

        $maybe fileTable <- mFileTable
          <h3>_{MsgSubmissionFiles}
          ^{fileTable}
      $of _
        <p>
          _{MsgSubmissionNoUploadExpected}

    $if maySubmit && not (null lastEdits)
      <h3>_{MsgLastEdits}
      <ul>
        $forall (mbName,time) <- lastEdits
          $maybe name <- mbName
            <li>_{MsgEditedBy name time}
          $nothing
            <li>#{display time}


$if maySubmit
  <section>
    ^{formWidget}
