Changeset 512 for trunk/packages/sipb-xen-www/code/templates/functions.tmpl
- Timestamp:
- May 9, 2008, 2:27:43 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/sipb-xen-www/code/templates/functions.tmpl
r447 r512 34 34 35 35 #def vmTypeList($default=None) 36 #for $vmtype in sorted($sipb_xen_database.Type.select(), key=lambda x: x.description)36 #for $vmtype in (('linux-hvm', 'HVM'), ('linux', 'ParaVM'), ) 37 37 <label> 38 38 <input #slurp 39 39 #if $default == $vmtype then 'checked' else '' 40 type="radio" name="vmtype" value="${vmtype .type_id}">${vmtype.description}</input>40 type="radio" name="vmtype" value="${vmtype[0]}">${vmtype[1]}</input> 41 41 </label> 42 42 #end for
Note: See TracChangeset
for help on using the changeset viewer.