summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-07-24 11:10:23 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-07-24 11:10:23 -0400
commit6f1206729039e45e032c5ba7f04d072f41dc9961 (patch)
tree511fa615cf8b5d949a1625570f8b94eecb897bbe /lib
parenta8d4408b6a68c27dc88d8f7e37326c19296808db (diff)
radio and radioOption
Diffstat (limited to 'lib')
-rw-r--r--lib/basis.lig12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/basis.lig b/lib/basis.lig
index 445ebc85..8b41b8f6 100644
--- a/lib/basis.lig
+++ b/lib/basis.lig
@@ -61,12 +61,16 @@ val a : bodyTag [Link = page]
val lform : ctx ::: {Unit} -> [Body] ~ ctx -> bind ::: {Type}
-> xml lform [] bind
-> xml ([Body] ++ ctx) [] []
-con lformTag = fn ty :: Type => fn attrs :: {Type} =>
+con lformTag = fn ty :: Type => fn inner :: {Unit} => fn attrs :: {Type} =>
ctx ::: {Unit} -> [LForm] ~ ctx
-> nm :: Name -> unit
- -> tag attrs ([LForm] ++ ctx) [] [] [nm = ty]
-val textbox : lformTag string []
-val ltextarea : lformTag string []
+ -> tag attrs ([LForm] ++ ctx) inner [] [nm = ty]
+val textbox : lformTag string [] []
+val ltextarea : lformTag string [] []
+
+con radio = [Body, Radio]
+val radio : lformTag string radio []
+val radioOption : unit -> tag [Value = string] radio [] [] []
val submit : ctx ::: {Unit} -> [LForm] ~ ctx
-> use ::: {Type} -> unit