Skip to content

ncaq/yesod-form-bootstrap4

Repository files navigation

Hackage yesod-form-bootstrap4 on Stackage LTS test

yesod-form-bootstrap4

This program replace yesod-form to Bootstrap v4.

Problem

This program is not work for boolField and checkBoxField.

Because Bootstrap v4.1 checkbox layout different other. Forms · Bootstrap

Workaround

use Monadic form. and

fooFieldSettings :: FieldSettings master
fooFieldSettings = (bfs ("public" :: Text))
  { fsAttrs = [("class", "form-check-input")]
  }