projects
/
invirt/packages/invirt-web.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make it easy to kill fcgi processes.
[invirt/packages/invirt-web.git]
/
code
/
templates
/
functions.tmpl
diff --git
a/code/templates/functions.tmpl
b/code/templates/functions.tmpl
index
2ae2266
..
635f5db
100644
(file)
--- a/
code/templates/functions.tmpl
+++ b/
code/templates/functions.tmpl
@@
-33,11
+33,11
@@
$databaseList(sorted($sipb_xen_database.Autoinstall.select(), key=lambda x: x.de
#end def
#def vmTypeList($default=None)
#end def
#def vmTypeList($default=None)
-#for $vmtype in sorted($sipb_xen_database.Type.select(), key=lambda x: x.description)
+#for $vmtype in (('linux-hvm', 'HVM'), ('linux', 'ParaVM'), )
<label>
<input #slurp
<label>
<input #slurp
-#if $default == $vmtype then 'checked' else ''
- type="radio" name="vmtype" value="${vmtype.type_id}">${vmtype.description}</input>
+#if $default == $vmtype[0] then 'checked' else ''
+ type="radio" name="vmtype" value="${vmtype[0]}">${vmtype[1]}</input>
</label>
#end for
#end def
</label>
#end for
#end def