diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-04-28 17:26:53 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-04-28 17:26:53 -0400 |
commit | 0264695e9a76f87e6164c489c34af63fa893889d (patch) | |
tree | cfce730aeca8d6832d9ec09d1e4d3450f85a444d /tests/subform.ur | |
parent | 243ec1bee9539195d85bfa8928c84ead412f2413 (diff) |
Subforms
Diffstat (limited to 'tests/subform.ur')
-rw-r--r-- | tests/subform.ur | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/subform.ur b/tests/subform.ur new file mode 100644 index 00000000..2ab1f1a3 --- /dev/null +++ b/tests/subform.ur @@ -0,0 +1,16 @@ +fun handler r = return <xml><body> + {[r.A]}, {[r.Sub.A]}, {[r.Sub.B]}, {[r.Sub.Sub]}, {[r.C]} +</body></xml> + +fun main () = return <xml><body> + <form> + <textbox{#A}/><br/> + <subform{#Sub}> + <textbox{#A}/><br/> + <textbox{#B}/><br/> + <textbox{#Sub}/><br/> + </subform> + <textbox{#C}/><br/> + <submit action={handler}/> + </form> +</body></xml> |