paulb@1 | 1 | <?xml version="1.0" encoding="iso-8859-1"?> |
paulb@1 | 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" |
paulb@1 | 3 | "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
paulb@1 | 4 | <html xmlns="http://www.w3.org/1999/xhtml" |
paulb@1 | 5 | xmlns:template="http://www.boddie.org.uk/ns/xmltools/template"> |
paulb@1 | 6 | <head> |
paulb@1 | 7 | <title>PEP 241 Package Registry</title> |
paulb@1 | 8 | <meta name="generator" content="amaya 8.1a, see http://www.w3.org/Amaya/" /> |
paulb@89 | 9 | <link xmlns:xlink="http://www.w3.org/1999/xlink" href="styles/styles.css" |
paulb@1 | 10 | rel="stylesheet" type="text/css" /> |
paulb@308 | 11 | <script type="text/javascript" src="scripts/sarissa.js"> </script> |
paulb@308 | 12 | <script type="text/javascript" src="scripts/XSLForms.js"> </script> |
paulb@1 | 13 | </head> |
paulb@1 | 14 | |
paulb@1 | 15 | <body> |
paulb@1 | 16 | <h1>PEP 241 Package Registry</h1> |
paulb@1 | 17 | |
paulb@13 | 18 | <form method="POST"> |
paulb@1 | 19 | |
paulb@1 | 20 | <table cellspacing="0" cellpadding="5" template:element="package"> |
paulb@1 | 21 | <tbody> |
paulb@1 | 22 | <tr> |
paulb@1 | 23 | <th class="heading" colspan="2">Summary</th> |
paulb@1 | 24 | </tr> |
paulb@1 | 25 | <tr> |
paulb@1 | 26 | <th>Package name</th> |
paulb@268 | 27 | <td><input type="text" size="20" template:attribute-field="name" name="..." value="..." /></td> |
paulb@1 | 28 | </tr> |
paulb@1 | 29 | <tr> |
paulb@1 | 30 | <th>Package version</th> |
paulb@268 | 31 | <td><input type="text" size="10" template:attribute-field="version" name="..." value="..." /></td> |
paulb@1 | 32 | </tr> |
paulb@1 | 33 | <tr> |
paulb@1 | 34 | <th>Summary</th> |
paulb@268 | 35 | <td><input type="text" size="20" template:attribute-field="summary" name="..." value="..." /></td> |
paulb@1 | 36 | </tr> |
paulb@1 | 37 | <tr> |
paulb@1 | 38 | <th>Description</th> |
paulb@268 | 39 | <td><textarea cols="80" rows="5" template:attribute-area="description" name="..."> |
paulb@27 | 40 | <span template:value="$this-value" template:effect="replace">Insert |
paulb@27 | 41 | longer description here!</span></textarea></td> |
paulb@1 | 42 | </tr> |
paulb@304 | 43 | <tr template:element="error" template:init="no"> |
paulb@1 | 44 | <th></th> |
paulb@20 | 45 | <td template:attribute="description-size" class="error">Only 100 characters |
paulb@7 | 46 | can be used in a description.</td> |
paulb@1 | 47 | </tr> |
paulb@1 | 48 | <tr> |
paulb@1 | 49 | <th>Home page</th> |
paulb@268 | 50 | <td><input type="text" size="80" template:attribute-field="home-page" name="..." value="..." /></td> |
paulb@1 | 51 | </tr> |
paulb@1 | 52 | <tr> |
paulb@1 | 53 | <th>Licence</th> |
paulb@268 | 54 | <td><input type="text" size="20" template:attribute-field="licence" name="..." value="..." /></td> |
paulb@1 | 55 | </tr> |
paulb@1 | 56 | <tr> |
paulb@25 | 57 | <th colspan="2" class="heading">Categories</th> |
paulb@1 | 58 | </tr> |
paulb@22 | 59 | <tr template:element="categories"> |
paulb@22 | 60 | <th>Categories</th> |
paulb@19 | 61 | <td> |
paulb@268 | 62 | <select template:multiple-choice-list-field="category,category-enum,value" multiple="multiple"> |
paulb@268 | 63 | <option template:multiple-choice-list-value="category-enum,value,selected" value="..."></option> |
paulb@1 | 64 | </select> |
paulb@22 | 65 | </td> |
paulb@1 | 66 | </tr> |
paulb@1 | 67 | <tr> |
paulb@1 | 68 | <th colspan="2" class="heading">Platforms</th> |
paulb@1 | 69 | </tr> |
paulb@308 | 70 | </tbody> |
paulb@308 | 71 | <tbody template:id="platforms-node" id="{template:this-element()}"> |
paulb@15 | 72 | <tr template:element="platforms,platform"> |
paulb@1 | 73 | <th>Platform name</th> |
paulb@268 | 74 | <td><input template:attribute-field="name" name="..." value="..." type="text" size="20" /> |
paulb@308 | 75 | <input type="submit" value="Remove!" name="..." template:selector-field="remove_platform" onclick=" |
paulb@308 | 76 | return requestUpdate( |
paulb@308 | 77 | 'platforms', |
paulb@308 | 78 | '{template:other-attributes('name', ../platform)},{template:selector-name('remove_platform', .)}', |
paulb@308 | 79 | '{template:other-elements(../..)}', '{template:other-attributes('name', ../platform)}', |
paulb@308 | 80 | '/package') |
paulb@308 | 81 | "/></td> |
paulb@1 | 82 | </tr> |
paulb@1 | 83 | <tr> |
paulb@1 | 84 | <th></th> |
paulb@1 | 85 | <td> |
paulb@308 | 86 | <input type="submit" value="Add platform!" name="..." template:selector-field="add_platform,platform" onclick=" |
paulb@308 | 87 | return requestUpdate( |
paulb@308 | 88 | 'platforms', |
paulb@308 | 89 | '{template:other-attributes('name', .)},{template:other-attributes('name', platforms/platform)},{template:selector-name('add_platform', .)}', |
paulb@308 | 90 | '{template:other-elements(.)}', '{template:other-attributes('name', platforms/platform)}', |
paulb@308 | 91 | '/package') |
paulb@308 | 92 | "/></td> |
paulb@1 | 93 | </tr> |
paulb@308 | 94 | </tbody> |
paulb@308 | 95 | <tbody> |
paulb@1 | 96 | <tr> |
paulb@1 | 97 | <th colspan="2" class="heading">Supported platforms</th> |
paulb@1 | 98 | </tr> |
paulb@15 | 99 | <tr template:element="supported-platforms,supported-platform"> |
paulb@1 | 100 | <th>Platform name</th> |
paulb@268 | 101 | <td><input template:attribute-field="name" name="..." value="..." type="text" size="20" /> |
paulb@268 | 102 | <input type="submit" value="Remove!" name="..." template:selector-field="remove_supported_platform" |
paulb@7 | 103 | /></td> |
paulb@1 | 104 | </tr> |
paulb@1 | 105 | <tr> |
paulb@1 | 106 | <th></th> |
paulb@1 | 107 | <td> |
paulb@268 | 108 | <input type="submit" value="Add platform!" name="..." template:selector-field="add_supported_platform,supported-platform" |
paulb@7 | 109 | /></td> |
paulb@1 | 110 | </tr> |
paulb@1 | 111 | <tr> |
paulb@1 | 112 | <th colspan="2" class="heading">Keywords</th> |
paulb@1 | 113 | </tr> |
paulb@15 | 114 | <tr template:element="keywords,keyword"> |
paulb@1 | 115 | <th>Keyword</th> |
paulb@268 | 116 | <td><input template:attribute-field="name" name="..." value="..." type="text" size="20" /> |
paulb@268 | 117 | <input type="submit" value="Remove!" template:selector-field="remove_keyword" name="..." /></td> |
paulb@1 | 118 | </tr> |
paulb@1 | 119 | <tr> |
paulb@1 | 120 | <th></th> |
paulb@7 | 121 | <td> |
paulb@304 | 122 | <input type="submit" value="Add keyword!" name="..." template:selector-field="add_keyword,keyword" /></td> |
paulb@1 | 123 | </tr> |
paulb@1 | 124 | <tr> |
paulb@1 | 125 | <th colspan="2" class="heading">Authors</th> |
paulb@1 | 126 | </tr> |
paulb@1 | 127 | </tbody> |
paulb@1 | 128 | <tbody template:element="authors,author"> |
paulb@1 | 129 | <tr> |
paulb@1 | 130 | <th>Author name</th> |
paulb@268 | 131 | <td><input template:attribute-field="name" name="..." value="..." type="text" size="20" /> |
paulb@268 | 132 | <input type="submit" value="Remove!" name="..." template:selector-field="remove_author" /></td> |
paulb@1 | 133 | </tr> |
paulb@1 | 134 | <tr> |
paulb@1 | 135 | <th>Author contact</th> |
paulb@268 | 136 | <td><input template:attribute-field="contact" name="..." value="..." type="text" size="20" /></td> |
paulb@1 | 137 | </tr> |
paulb@1 | 138 | <tr> |
paulb@1 | 139 | <th>Author e-mail</th> |
paulb@268 | 140 | <td><input template:attribute-field="e-mail" name="..." value="..." type="text" size="20" /></td> |
paulb@1 | 141 | </tr> |
paulb@1 | 142 | </tbody> |
paulb@1 | 143 | <tbody> |
paulb@1 | 144 | <tr> |
paulb@1 | 145 | <th></th> |
paulb@7 | 146 | <td> |
paulb@268 | 147 | <input type="submit" value="Add author!" name="..." template:selector-field="add_author,author" /></td> |
paulb@1 | 148 | </tr> |
paulb@1 | 149 | <tr> |
paulb@1 | 150 | <th colspan="2" class="heading">Dependencies</th> |
paulb@1 | 151 | </tr> |
paulb@1 | 152 | </tbody> |
paulb@1 | 153 | <tbody template:element="dependencies,dependency"> |
paulb@1 | 154 | <tr> |
paulb@1 | 155 | <th>Package name</th> |
paulb@268 | 156 | <td><input template:attribute-field="name" name="..." value="..." type="text" size="20" /> |
paulb@268 | 157 | <input type="submit" value="Remove!" name="..." template:selector-field="remove_dependency" /></td> |
paulb@1 | 158 | </tr> |
paulb@1 | 159 | <tr> |
paulb@1 | 160 | <th>Package version</th> |
paulb@268 | 161 | <td><input template:attribute-field="version" name="..." value="..." type="text" size="10" /></td> |
paulb@1 | 162 | </tr> |
paulb@1 | 163 | </tbody> |
paulb@1 | 164 | <tbody> |
paulb@1 | 165 | <tr> |
paulb@1 | 166 | <th></th> |
paulb@1 | 167 | <td> |
paulb@268 | 168 | <input type="submit" value="Add dependency!" name="..." template:selector-field="add_dependency,dependency" /></td> |
paulb@1 | 169 | </tr> |
paulb@1 | 170 | <tr> |
paulb@1 | 171 | <th colspan="2" class="heading">Actions</th> |
paulb@1 | 172 | </tr> |
paulb@1 | 173 | <tr> |
paulb@1 | 174 | <th></th> |
paulb@1 | 175 | <td> |
paulb@13 | 176 | <input type="submit" value="Update!" name="update" /> |
paulb@26 | 177 | <input type="submit" value="Export!" name="export" /> |
paulb@13 | 178 | <input type="submit" value="Finish!" name="finish" /></td> |
paulb@1 | 179 | </tr> |
paulb@1 | 180 | </tbody> |
paulb@1 | 181 | </table> |
paulb@1 | 182 | </form> |
paulb@1 | 183 | </body> |
paulb@1 | 184 | </html> |