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 | 0f298a5396cf95f4e58988583f862a4b97444bec (patch) | |
tree | cfce730aeca8d6832d9ec09d1e4d3450f85a444d /tests/subform.ur | |
parent | 43bdca1c4bef142cde7080f317a4686b01721359 (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> |