fradrive/backend/templates/widgets/form/form.hamlet
Sarah Vaupel 72f5a9fb37 build: move backend-related files into backend dir; implement and connect services via docker-compose
TODOs left: reimplement clean and help, sync static,well-known and assets between services
2025-03-23 04:52:49 +01:00

24 lines
759 B
Plaintext

$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}