Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ncaq/yesod-form-bootstrap4
yesod-form for bootstrap version 4
https://github.com/ncaq/yesod-form-bootstrap4
haskell yesod
Last synced: 23 days ago
JSON representation
yesod-form for bootstrap version 4
- Host: GitHub
- URL: https://github.com/ncaq/yesod-form-bootstrap4
- Owner: ncaq
- Created: 2017-07-17T07:13:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-12T03:57:22.000Z (11 months ago)
- Last Synced: 2024-11-17T17:54:53.332Z (about 2 months ago)
- Topics: haskell, yesod
- Language: Haskell
- Homepage:
- Size: 51.8 KB
- Stars: 5
- Watchers: 4
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Hackage](https://img.shields.io/hackage/v/yesod-form-bootstrap4.svg)](https://hackage.haskell.org/package/yesod-form-bootstrap4)
[![yesod-form-bootstrap4 on Stackage LTS](http://stackage.org/package/yesod-form-bootstrap4/badge/lts)](http://stackage.org/lts/package/yesod-form-bootstrap4)
[![test](https://github.com/ncaq/yesod-form-bootstrap4/actions/workflows/test.yml/badge.svg)](https://github.com/ncaq/yesod-form-bootstrap4/actions/workflows/test.yml)# yesod-form-bootstrap4
This program replace [yesod-form](https://www.stackage.org/package/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](https://getbootstrap.com/docs/4.1/components/forms/#checkboxes-and-radios)# Workaround
use Monadic form.
and~~~hs
fooFieldSettings :: FieldSettings master
fooFieldSettings = (bfs ("public" :: Text))
{ fsAttrs = [("class", "form-check-input")]
}
~~~