$newline never

$# SPDX-FileCopyrightText: 2022 Sarah Vaupel <vaupel.sarah@campus.lmu.de>,Steffen Jost <jost@tcs.ifi.lmu.de>
$#
$# SPDX-License-Identifier: AGPL-3.0-or-later

$# Wrapper for all kinds of forms
<form ##{formId} method=#{decodeUtf8 (renderStdMethod formMethod)} :hasAction:action=#{fromMaybe "" formActionUrl} enctype=#{formEncoding} *{formAttrs}>
  $# Distinguish different falvours of submit button layouts here:
  $case formSubmit
    $of FormNoSubmit
      ^{formWidget}
    $of FormSubmit
      ^{formWidget}
      ^{buttonView btn}
    $of FormDualSubmit
      ^{buttonView btn}
      ^{formWidget}
      ^{buttonView btn}
    $of FormAutoSubmit
      ^{formWidget}
      <button type=submit uw-auto-submit-button>
        ^{btnLabel btn}
