mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-12-03 11:41:06 +03:00
FormDemo: whitespace
This commit is contained in:
parent
6d8cbe1e6c
commit
4d027c7a43
@ -32,12 +32,16 @@ makeLenses ''FormState
|
||||
|
||||
mkForm :: FormState -> Form FormState e Name
|
||||
mkForm =
|
||||
newForm [ ((hCenter $ str "Edit 1:") <=>) @@= editShowableField field1 Edit1
|
||||
, (str "Edit 2: " <+>) @@= editShowableField field2 Edit2
|
||||
, (str "Password: " <+>) @@= editPasswordField fieldPassword Password
|
||||
, (str "Okay? " <+>) @@= radioField radio [ (True, YesRadio, "Yes")
|
||||
, (False, NoRadio, "No")
|
||||
]
|
||||
newForm [ ((hCenter $ str "Edit 1:") <=>) @@=
|
||||
editShowableField field1 Edit1
|
||||
, (str "Edit 2: " <+>) @@=
|
||||
editShowableField field2 Edit2
|
||||
, (str "Password: " <+>) @@=
|
||||
editPasswordField fieldPassword Password
|
||||
, (str "Okay? " <+>) @@=
|
||||
radioField radio [ (True, YesRadio, "Yes")
|
||||
, (False, NoRadio, "No")
|
||||
]
|
||||
]
|
||||
|
||||
theMap :: AttrMap
|
||||
|
Loading…
Reference in New Issue
Block a user