Changeset 2405 for package_branches/invirt-web
- Timestamp:
- Aug 9, 2009, 6:45:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
package_branches/invirt-web/cherrypy/code/templates/list.mako
r2403 r2405 1 <%page expression_filter="h"/> 1 2 <%inherit file="skeleton.mako" /> 2 3 <%! … … 22 23 <input type="hidden" name="back" value="list"/> 23 24 <table> 24 ${ errorRow('create', err)}25 ${self.fn.errorRow('create', err)} 25 26 <tr> 26 27 <td>Name</td> 27 28 <td><input type="text" name="name" value="${defaults.name}"/>.${config.dns.domains[0]}</td> 28 29 </tr> 29 ${ errorRow('name', err)}30 ${self.fn.errorRow('name', err)} 30 31 <tr> 31 32 <td>Description</td> 32 33 <td><textarea name="description" rows="4" cols="60">${defaults.description}</textarea></td> 33 34 </tr> 34 ${ errorRow('description', err)}35 ${self.fn.errorRow('description', err)} 35 36 <tr> 36 37 <td>Memory</td> 37 38 <td><input type="text" name="memory" value="${defaults.memory}" size=3/> MiB (${max_memory} max)</td> 38 39 </tr> 39 ${ errorRow('memory', err)}40 ${self.fn.errorRow('memory', err)} 40 41 <tr> 41 42 <td>Disk</td> 42 43 <td><input type="text" name="disksize" value="${defaults.disk}" size=3/> GiB (${"%0.1f" % (max_disk-0.05)} max)</td> 43 44 </tr> 44 ${ errorRow('disk', err)}45 ${self.fn.errorRow('disk', err)} 45 46 <tr> 46 <td>HVM/ParaVM${ fn.helppopup('HVM/ParaVM')}</td>47 <td>HVM/ParaVM${self.fn.helppopup('HVM/ParaVM')}</td> 47 48 <td> 48 ${ vmTypeList(defaults.type)}49 ${self.fn.vmTypeList(defaults.type)} 49 50 </td> 50 51 </tr> 51 ${ errorRow('vmtype', err)}52 ${ errorRow('autoinstall', err)}52 ${self.fn.errorRow('vmtype', err)} 53 ${self.fn.errorRow('autoinstall', err)} 53 54 <tr> 54 <td>Autoinstall${ fn.helppopup('Autoinstalls')}</td>55 <td>Autoinstall${self.fn.helppopup('Autoinstalls')}</td> 55 56 <td><input type="radio" name="cd_or_auto" id="cd_or_auto_auto" 56 57 onchange="\$('cdromlist').value = ''; \$('vmtype-linux').checked = true"> 57 ${ autoList(defaults.cdrom, "$('cd_or_auto_auto').checked = true;$('cdromlist').value = '';$('vmtype-linux').checked = true")}58 ${self.fn.autoList(defaults.cdrom, "$('cd_or_auto_auto').checked = true;$('cdromlist').value = '';$('vmtype-linux').checked = true")} 58 59 (experimental; 2-3 minutes, and you have a machine with empty root password.) 59 60 </input> … … 63 64 <td><input type="radio" name="cd_or_auto" id="cd_or_auto_cd" checked="checked" 64 65 onchange="\$('autoinstalllist').value = ''; \$('vmtype-linux-hvm').checked = true"> 65 ${ cdromList(defaults.cdrom, "$('cd_or_auto_cd').checked = true;$('autoinstalllist').value = '';$('vmtype-linux-hvm').checked = true")}66 ${self.fn.cdromList(defaults.cdrom, "$('cd_or_auto_cd').checked = true;$('autoinstalllist').value = '';$('vmtype-linux-hvm').checked = true")} 66 67 </td> 67 68 </input> 68 69 </tr> 69 ${ errorRow('cdrom', err)}70 ${ errorRow('cdrom', err)}70 ${self.fn.errorRow('cdrom', err)} 71 ${self.fn.errorRow('cdrom', err)} 71 72 <tr> 72 73 <td>Owner</td> 73 74 <td><input type="text" name="owner" value="${defaults.owner}"/></td> 74 75 </tr> 75 ${ errorRow('owner', err)}76 ${self.fn.errorRow('owner', err)} 76 77 </table> 77 78 <input type="submit" class="button" value="Create it!"/><br /> 78 Windows notes: ${ fn.helppopup('Windows')}79 Windows notes: ${self.fn.helppopup('Windows')} 79 80 </form> 80 81 % endif … … 128 129 <th>Name</th> 129 130 <th>Memory</th> 130 <th>Owner${ fn.helppopup('Owner')}</th>131 <th>Administrator${ fn.helppopup('Administrator')}</th>131 <th>Owner${self.fn.helppopup('Owner')}</th> 132 <th>Administrator${self.fn.helppopup('Administrator')}</th> 132 133 <th>IP</th> 133 134 <th>Uptime</th>
Note: See TracChangeset
for help on using the changeset viewer.