tweak
This works around a bug in the EvilSplicer
This commit is contained in:
parent
31c7ddd648
commit
440d6e331f
1 changed files with 3 additions and 4 deletions
|
@ -49,15 +49,14 @@ withNote field note = field { fieldView = newview }
|
|||
|
||||
{- Note that the toggle string must be unique on the form. -}
|
||||
withExpandableNote :: Field sub master v -> (String, GWidget sub master ()) -> Field sub master v
|
||||
withExpandableNote field (toggle, note) = withNote field expandablenote
|
||||
where
|
||||
ident = "toggle_" ++ toggle
|
||||
expandablenote = [whamlet|
|
||||
withExpandableNote field (toggle, note) = withNote field $ [whamlet|
|
||||
<a .btn data-toggle="collapse" data-target="##{ident}">
|
||||
#{toggle}
|
||||
<div ##{ident} .collapse>
|
||||
^{note}
|
||||
|]
|
||||
where
|
||||
ident = "toggle_" ++ toggle
|
||||
|
||||
data EnableEncryption = SharedEncryption | NoEncryption
|
||||
deriving (Eq)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue