1.1 --- a/examples/Common/PEP241/Resources/pep241_template.xhtml Fri Oct 14 16:05:05 2005 +0000
1.2 +++ b/examples/Common/PEP241/Resources/pep241_template.xhtml Fri Oct 14 16:05:16 2005 +0000
1.3 @@ -122,11 +122,11 @@
1.4 '/package')
1.5 "/></td>
1.6 </tr>
1.7 + </tbody>
1.8 + <tbody template:id="keywords-node" id="keywords-target">
1.9 <tr>
1.10 <th colspan="2" class="heading">Keywords</th>
1.11 </tr>
1.12 - </tbody>
1.13 - <tbody template:id="keywords-node" id="keywords-target">
1.14 <tr template:element="keywords,keyword">
1.15 <th>Keyword</th>
1.16 <td><input template:attribute-field="name" name="..." value="..." type="text" size="20" />
1.17 @@ -151,11 +151,11 @@
1.18 '/package')
1.19 "/></td>
1.20 </tr>
1.21 + </tbody>
1.22 + <tbody cellspacing="0" cellpadding="5" template:id="authors-node" id="authors-target">
1.23 <tr>
1.24 <th colspan="2" class="heading">Authors</th>
1.25 </tr>
1.26 - </tbody>
1.27 - <tbody cellspacing="0" cellpadding="5" template:id="authors-node" id="authors-target">
1.28 <div template:effect="replace" template:element="authors,author">
1.29 <tr>
1.30 <th>Author name</th>
1.31 @@ -190,29 +190,43 @@
1.32 '/package')
1.33 "/></td>
1.34 </tr>
1.35 + </tbody>
1.36 + <tbody cellspacing="0" cellpadding="5" template:id="dependencies-node" id="dependencies-target">
1.37 <tr>
1.38 <th colspan="2" class="heading">Dependencies</th>
1.39 </tr>
1.40 - </tbody>
1.41 - <tbody cellspacing="0" cellpadding="5" template:id="dependencies-node" id="dependencies-target">
1.42 <div template:effect="replace" template:element="dependencies,dependency">
1.43 <tr>
1.44 <th>Package name</th>
1.45 <td><input template:attribute-field="name" name="..." value="..." type="text" size="20" />
1.46 - <input type="submit" value="Remove!" name="..." template:selector-field="remove_dependency" /></td>
1.47 + <input type="submit" value="Remove!" name="..." template:selector-field="remove_dependency" onclick="
1.48 + return requestUpdate(
1.49 + 'dependencies',
1.50 + '{template:other-attributes('name', ../dependency)},{template:other-attributes('version', ../dependency)},{template:selector-name('remove_dependency', .)}',
1.51 + 'dependencies-target',
1.52 + '{template:other-attributes('name', ../dependency)},{template:other-attributes('version', ../dependency)}',
1.53 + '/package')
1.54 +"/></td>
1.55 </tr>
1.56 <tr>
1.57 <th>Package version</th>
1.58 <td><input template:attribute-field="version" name="..." value="..." type="text" size="10" /></td>
1.59 </tr>
1.60 </div>
1.61 - </tbody>
1.62 - <tbody>
1.63 <tr>
1.64 <th></th>
1.65 <td>
1.66 - <input type="submit" value="Add dependency!" name="..." template:selector-field="add_dependency,dependency" /></td>
1.67 + <input type="submit" value="Add dependency!" name="..." template:selector-field="add_dependency,dependency" onclick="
1.68 +return requestUpdate(
1.69 + 'dependencies',
1.70 + '{template:other-attributes('name', .)},{template:other-attributes('name', dependencies/dependency)},{template:other-attributes('version', dependencies/dependency)},{template:selector-name('add_dependency', .)}',
1.71 + 'dependencies-target',
1.72 + '{template:other-attributes('name', dependencies/dependency)},{template:other-attributes('version', dependencies/dependency)}',
1.73 + '/package')
1.74 +"/></td>
1.75 </tr>
1.76 + </tbody>
1.77 + <tbody>
1.78 <tr>
1.79 <th colspan="2" class="heading">Actions</th>
1.80 </tr>