Changeset 440 for trunk/packages/sipb-xen-www/code/templates
- Timestamp:
- Apr 21, 2008, 9:13:53 PM (17 years ago)
- Location:
- trunk/packages/sipb-xen-www/code/templates
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/templates/functions.tmpl
r406 r440 12 12 #end for 13 13 </select> 14 #end def 15 16 #def vmTypeList($default=None) 17 #for $vmtype in $sipb_xen_database.Type.select() 18 <label> 19 <input #slurp 20 #if $default == $vmtype then 'checked' else '' 21 type="radio" name="vmtype" value="${vmtype.type_id}">${vmtype.description}</input> 22 </label> 23 #end for 14 24 #end def 15 25 -
trunk/packages/sipb-xen-www/code/templates/info.tmpl
r436 r440 59 59 (To edit ram, disk size, or machine name, turn off the machine first.) 60 60 #end if 61 </p>62 61 <form action="modify" method="POST"> 63 62 <input type="hidden" name="machine_id" value="$defaults.machine_id"/> … … 72 71 <tr><td>Machine Name:</td><td><input type="text" name="name" value="$defaults.name"/></td></tr> 73 72 $errorRow('name', $err) 73 <tr> 74 <td>HVM/ParaVM$helppopup('hvm_paravm')</td> 75 <td>$vmTypeList($defaults.type)</td> 76 </tr> 74 77 <tr><td>Ram:</td><td><input type="text" size=3 name="memory" value="$defaults.memory"/>MiB (max $max_mem)</td></tr> 75 78 $errorRow('memory', $err) -
trunk/packages/sipb-xen-www/code/templates/list.tmpl
r426 r440 36 36 </tr> 37 37 $errorRow('disk', $err) 38 <tr> 39 <td>HVM/ParaVM$helppopup('hvm_paravm')</td> 40 <td> 41 #for $value, $name in (('hvm', 'HVM'), ('paravm', 'ParaVM')) 42 <input #slurp 43 #if $defaults.vmtype == $value then 'checked' else '' 44 type="radio" name="vmtype" value="$value">$name</input> 45 #end for 46 </td> 47 </tr> 38 <tr> 39 <td>HVM/ParaVM$helppopup('hvm_paravm')</td> 40 <td>$vmTypeList($defaults.type)</td> 41 </tr> 48 42 $errorRow('vmtype', $err) 49 43 <tr>
Note: See TracChangeset
for help on using the changeset viewer.