1 #def cdromList($cdroms, $default="")
2 <select name="cdrom" id="cdromlist">
4 #if $default then '' else 'selected'
8 #if $default == $cdrom.cdrom_id then 'selected' else ''
9 value="$cdrom.cdrom_id">
16 #def vmTypeList($default=None)
17 #for $vmtype in sorted($sipb_xen_database.Type.select(), key=lambda x: x.description)
20 #if $default == $vmtype then 'checked' else ''
21 type="radio" name="vmtype" value="${vmtype.type_id}">${vmtype.description}</input>
28 #set global $error_text = $error_text + '----\n' + $txt
30 #set global $error_text = $txt
34 #def errorRow($value, $err)
35 #if $err and $err.err_field == $value
37 <td class="error" colspan="2">${str($err)}</td>