fradrive/templates/widgets/form.hamlet
2018-06-10 20:52:29 +02:00

11 lines
453 B
Plaintext

$newline never
#{fragment}
$case formLayout
$of FormStandard
$forall view <- views
<div .form-group :fvRequired view:.form-group--required :not $ fvRequired view:.form-group--optional :isJust $ fvErrors view:.form-group--has-error>
$if not (Blaze.null $ fvLabel view)
<label .form-group__label .reactive-label for=#{fvId view}>#{fvLabel view}
$# TODO: inputs should have proper placeholders
^{fvInput view}