Mercurial > urweb
view demo/crud3.ur @ 943:e2194a6793ae
Fix JavaScript char literals; don't generate demo links to nonexistent files
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 15 Sep 2009 13:07:57 -0400 |
parents | 669ac5e9a69e |
children | c7b9a33c26c8 |
line wrap: on
line source
table t : {Id : int, Text : string} PRIMARY KEY Id open Crud.Make(struct val tab = t val title = "Crud3" val cols = {Text = {Nam = "Text", Show = txt, Widget = (fn [nm :: Name] => <xml> <subform{nm}> <textbox{#A}/> <textbox{#B}/> </subform> </xml>), WidgetPopulated = (fn [nm :: Name] s => <xml> <subform{nm}> <textbox{#A} value={s}/> <textbox{#B}/> </subform> </xml>), Parse = (fn p => p.A ^ p.B), Inject = _ } } end)