view demo/form.ur @ 2086:3d22f761a4b7

In checking signature subsumption, be sure to try constraints last.
author Adam Chlipala <adam@chlipala.net>
date Thu, 04 Dec 2014 20:22:39 -0500
parents a71600cac815
children
line wrap: on
line source
fun handler r = return <xml><body>
  <table>
    <tr> <th>A:</th> <td>{[r.A]}</td> </tr>
    <tr> <th>B:</th> <td>{[r.B]}</td> </tr>
    <tr> <th>C:</th> <td>{[r.C]}</td> </tr>
  </table>
</body></xml>

fun main () = return <xml><body>
  <form>
    <table>
      <tr> <th>A:</th> <td><textbox{#A}/></td> </tr>
      <tr> <th>B:</th> <td><textbox{#B}/></td> </tr>
      <tr> <th>C:</th> <td><checkbox{#C}/></td> </tr>
      <tr> <th/> <td><submit action={handler}/></td> </tr>
    </table>
  </form>
</body></xml>