1.1 --- a/examples/Common/PEP241/Resources/pep241_template.xhtml Tue Dec 21 00:11:31 2004 +0000
1.2 +++ b/examples/Common/PEP241/Resources/pep241_template.xhtml Tue Dec 21 00:13:41 2004 +0000
1.3 @@ -13,7 +13,7 @@
1.4 <body>
1.5 <h1>PEP 241 Package Registry</h1>
1.6
1.7 -<form method="get">
1.8 +<form method="POST">
1.9
1.10 <table cellspacing="0" cellpadding="5" template:element="package">
1.11 <tbody>
1.12 @@ -47,11 +47,11 @@
1.13 </tr>
1.14 <tr>
1.15 <th>Home page</th>
1.16 - <td template:attribute="home-page" template:value="$this-value">http://www.boddie.org.uk/python/XMLForms2/index.html</td>
1.17 + <td template:attribute="home-page" template:value="$this-value">Home page</td>
1.18 </tr>
1.19 <tr>
1.20 <th>Licence</th>
1.21 - <td template:attribute="licence" template:value="$this-value">LGPL</td>
1.22 + <td template:attribute="licence" template:value="$this-value">Licence</td>
1.23 </tr>
1.24 </tbody>
1.25 <tbody template:element="discriminators">
1.26 @@ -67,14 +67,14 @@
1.27 </select>
1.28
1.29 <input type="submit" value="Remove!"
1.30 - name="_action_remove_discriminator={template:this-position()}"
1.31 + name="remove_discriminator={template:this-position()}"
1.32 /></td>
1.33 </tr>
1.34 <tr>
1.35 <th></th>
1.36 <td>
1.37 <input type="submit" value="Add discriminator!"
1.38 - name="_action_add_discriminator={template:this-position()}" /></td>
1.39 + name="add_discriminator={template:this-position()}" /></td>
1.40 </tr>
1.41 </tbody>
1.42 <tbody template:element="platforms">
1.43 @@ -86,13 +86,13 @@
1.44 <td><span template:attribute="name" template:value=".">Linux (with
1.45 more listed below)</span>
1.46 <input type="submit" value="Remove!"
1.47 - name="_action_remove_platform={template:this-position()}" /></td>
1.48 + name="remove_platform={template:this-position()}" /></td>
1.49 </tr>
1.50 <tr>
1.51 <th></th>
1.52 <td>
1.53 <input type="submit" value="Add platform!"
1.54 - name="_action_add_platform={template:this-position()}" /></td>
1.55 + name="add_platform={template:this-position()}" /></td>
1.56 </tr>
1.57 </tbody>
1.58 <tbody template:element="supported-platforms">
1.59 @@ -104,14 +104,14 @@
1.60 <td><span template:attribute="name" template:value="$this-value">Linux
1.61 (with more listed below)</span>
1.62 <input type="submit" value="Remove!"
1.63 - name="_action_remove_supported_platform={template:this-position()}"
1.64 + name="remove_supported_platform={template:this-position()}"
1.65 /></td>
1.66 </tr>
1.67 <tr>
1.68 <th></th>
1.69 <td>
1.70 <input type="submit" value="Add platform!"
1.71 - name="_action_add_supported_platform={template:this-position()}"
1.72 + name="add_supported_platform={template:this-position()}"
1.73 /></td>
1.74 </tr>
1.75 </tbody>
1.76 @@ -124,13 +124,13 @@
1.77 <td><span template:attribute="name" template:value="$this-value">Web
1.78 programming</span>
1.79 <input type="submit" value="Remove!"
1.80 - name="_action_remove_keyword={template:this-position()}" /></td>
1.81 + name="remove_keyword={template:this-position()}" /></td>
1.82 </tr>
1.83 <tr>
1.84 <th></th>
1.85 <td>
1.86 <input type="submit" value="Add keyword!"
1.87 - name="_action_add_keyword={template:this-position()}" /></td>
1.88 + name="add_keyword={template:this-position()}" /></td>
1.89 </tr>
1.90 </tbody>
1.91 <tbody>
1.92 @@ -141,19 +141,17 @@
1.93 <tbody template:element="authors,author">
1.94 <tr>
1.95 <th>Author name</th>
1.96 - <td><span template:attribute="name" template:value="$this-value">Paul
1.97 - Boddie</span>
1.98 + <td><span template:attribute="name"><input name="{template:this-position()}" value="{$this-value}" type="text" size="20" /></span>
1.99 <input type="submit" value="Remove!"
1.100 - name="_action_remove_author={template:this-position()}" /></td>
1.101 + name="remove_author={template:this-position()}" /></td>
1.102 </tr>
1.103 <tr>
1.104 <th>Author contact</th>
1.105 - <td template:attribute="contact" template:value="$this-value">Oslo,
1.106 - Norway</td>
1.107 + <td template:attribute="contact"><input name="{template:this-position()}" value="{$this-value}" type="text" size="20" /></td>
1.108 </tr>
1.109 <tr>
1.110 <th>Author e-mail</th>
1.111 - <td template:attribute="e-mail" template:value="$this-value">paul@boddie.org.uk</td>
1.112 + <td template:attribute="e-mail"><input name="{template:this-position()}" value="{$this-value}" type="text" size="20" /></td>
1.113 </tr>
1.114 </tbody>
1.115 <tbody>
1.116 @@ -161,7 +159,7 @@
1.117 <th></th>
1.118 <td>
1.119 <input type="submit" value="Add author!"
1.120 - name="_action_add_author={template:this-position()}" /></td>
1.121 + name="add_author={template:this-position()}" /></td>
1.122 </tr>
1.123 </tbody>
1.124 <tbody>
1.125 @@ -174,7 +172,7 @@
1.126 <th>Package name</th>
1.127 <td><span template:attribute="name" template:value="$this-value">XMLTools2</span>
1.128 <input type="submit" value="Remove!"
1.129 - name="_action_remove_dependency={template:this-position()}" /></td>
1.130 + name="remove_dependency={template:this-position()}" /></td>
1.131 </tr>
1.132 <tr>
1.133 <th>Package version</th>
1.134 @@ -186,7 +184,7 @@
1.135 <th></th>
1.136 <td>
1.137 <input type="submit" value="Add dependency!"
1.138 - name="_action_add_dependency={template:this-position()}" /></td>
1.139 + name="add_dependency={template:this-position()}" /></td>
1.140 </tr>
1.141 </tbody>
1.142 <tbody>
1.143 @@ -196,8 +194,8 @@
1.144 <tr>
1.145 <th></th>
1.146 <td>
1.147 - <input type="submit" value="Update!" name="_action_update" />
1.148 - <input type="submit" value="Finish!" name="_action_finish" /></td>
1.149 + <input type="submit" value="Update!" name="update" />
1.150 + <input type="submit" value="Finish!" name="finish" /></td>
1.151 </tr>
1.152 </tbody>
1.153 </table>