fradrive/templates/widgets/fields/examOfficeFieldMode.hamlet
2022-10-12 09:35:16 +02:00

13 lines
413 B
Plaintext

$newline never
$# SPDX-FileCopyrightText: 2022 Gregor Kleen <gregor.kleen@ifi.lmu.de>
$#
$# SPDX-License-Identifier: AGPL-3.0-or-later
<div .radio-group>
$forall opt <- universeF
<div .radio>
$with inputId <- mconcat [theId, "-", toPathPiece opt]
<input id=#{inputId} *{attrs} type=radio name=#{name} value=#{toPathPiece opt} :isChecked opt val:checked>
<label for=#{inputId}>_{opt}