Changeset 144 for trunk/web/templates/list.tmpl
- Timestamp:
- Oct 8, 2007, 4:44:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/templates/list.tmpl
r139 r144 21 21 <td>Uptime</td> 22 22 <td>VNC</td> 23 <td> Restart?</td>23 <td></td> 24 24 #for $machine in $machines: 25 25 <tr> … … 38 38 #end if 39 39 <td>#slurp 40 #if $uptimes .get($machine.name)41 $uptimes[$machine .name]#slurp40 #if $uptimes[$machine] 41 $uptimes[$machine]#slurp 42 42 #else 43 43 Off#slurp … … 45 45 </td> 46 46 <td>#slurp 47 #if $has_vnc .get($machine.name)== True47 #if $has_vnc[$machine] == True 48 48 <a href="vnc?machine_id=$machine.machine_id">Console</a>#slurp 49 49 #else 50 $has_vnc .get($machine.name)50 $has_vnc[$machine] 51 51 #end if 52 52 </td> … … 55 55 <input type="hidden" name="machine_id" 56 56 value="$machine.machine_id"/> 57 <input type="submit" class="button" 58 value="Reboot"/> 57 #if $uptimes[$machine] 58 <input type="submit" class="button" name="action" value="Shutdown"/> 59 #else 60 <input type="submit" class="button" name="action" value="Power on"/> 61 #end if 59 62 </form> 60 63 </td> … … 63 66 </table> 64 67 #end if 65 68 #if $can_add_vm 66 69 <p>Create a new VM:</p> 67 70 <form action="create" method="POST"> … … 73 76 <tr> 74 77 <td>Memory</td> 75 <td><input type="text" name="memory" value="$ maxmem" size=3/> megabytes ($maxmem max)</td>78 <td><input type="text" name="memory" value="$default_mem" size=3/> megabytes ($max_mem max)</td> 76 79 </tr> 77 80 <tr> 78 81 <td>Disk</td> 79 <td><input type="text" name="disk" value="$ maxdisk" size=3/> gigabytes ($maxdiskmax)</td>82 <td><input type="text" name="disk" value="$default_disk" size=3/> gigabytes (${"%0.1f" % ($max_disk-0.05)} max)</td> 80 83 </tr> 81 84 <tr> … … 102 105 <input type="submit" class="button" value="Create it!"/> 103 106 </form> 104 107 #else 108 <p>You are at the maximum number of VMs.</p> 109 #end if 105 110 #end def
Note: See TracChangeset
for help on using the changeset viewer.