]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/calculator/calculator.xml
Merge branch 'master' of git://repo.or.cz/factor/jcg
[factor.git] / extra / webapps / calculator / calculator.xml
1 <?xml version='1.0' ?>
2
3 <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
4
5 <html>
6         <head> <title>Calculator</title> </head>
7
8         <body>
9                 <h1>Calculator</h1>
10
11                 <t:form t:action="$calculator">
12
13                         <table>
14                                 <tr><td>First value:</td><td> <t:field t:name="x" /> </td></tr>
15                                 <tr><td>Second value:</td><td> <t:field t:name="y" /> </td></tr>
16                         </table>
17
18                         <input type="SUBMIT" value="Compute" />
19
20                         <t:if t:value="z">
21                                 <br/>
22
23                                 Result: <t:label t:name="z" />
24                         </t:if>
25
26                 </t:form>
27         </body>
28 </html>
29
30 </t:chloe>