fradrive/templates/widgets/fields/bool.hamlet
2019-10-22 11:04:34 +02:00

16 lines
530 B
Plaintext

$newline never
<div .radio-group>
$if not isReq
$maybe noneMsg <- mkNone
<div .radio>
<input id=#{theId}-none *{attrs} type=radio name=#{name} value=none checked>
<label for=#{theId}-none>_{noneMsg}
<div .radio>
<input id=#{theId}-yes *{attrs} type=radio name=#{name} value=yes :showVal id val:checked>
<label for=#{theId}-yes>_{MsgBoolYes}
<div .radio>
<input id=#{theId}-no *{attrs} type=radio name=#{name} value=no :showVal not val:checked>
<label for=#{theId}-no>_{MsgBoolNo}