1 #from skeleton import skeleton
11 #for $key, $value in $fields
12 <tr><td>$key:</td><td>$value</td></tr>
18 <form action="command" method="POST">
19 <input type="hidden" name="back" value="info"/>
20 <input type="hidden" name="machine_id" value="$machine.machine_id"/>
26 <strong><a href="vnc?machine_id=$machine.machine_id">Get Console</a></strong>
28 VNC console not enabled; still booting?
36 <td><button type="submit" class="button" name="action" value="Power off">Power off (hard)</button></td>
37 <td><button type="submit" class="button" name="action" value="Shutdown">Shut down</button></td>
38 <td><input type="submit" class="button" name="action" value="Reboot"/></td>
40 <td><input type="submit" class="button" name="action" value="Power on"/></td>
50 <td><input type="submit" class="button" name="action" value="Delete VM" onclick="return confirm('Are you sure that you want to delete this VM?');"/></td>
58 <p class="error">We had a problem with your request:</p>
59 #else if $varExists('new_machine')
60 <p>Successfully modified.</p>
63 (To edit ram, disk size, or machine name, turn off the machine first.)
65 <form action="modify" method="POST">
66 <input type="hidden" name="machine_id" value="$defaults.machine_id"/>
68 <tr><td>Description:</td><td colspan="2"><textarea name="description" rows="4" cols="60">$defaults.description</textarea></td></tr>
71 $helppopup("Owner")#slurp
73 :</td><td><input type="text" name="owner", value="$defaults.owner"/></td></tr>
75 $errorRow('owner', $err)
77 <tr><td>Administrator#slurp
79 $helppopup("Administrator")#slurp
81 :</td><td><input type="text" name="admin", value="$defaults.administrator"/></td></tr>
83 $errorRow('administrator', $err)
85 <tr><td>Contact email:</td><td><input type="text" name="contact" value="$defaults.contact"/></td></tr>
87 $errorRow('contact', $err)
90 <tr><td>Machine Name:</td><td><input type="text" name="name" value="$defaults.name"/>.${config.dns.domains[0]}</td></tr>
92 $errorRow('name', $err)
97 $helppopup('HVM/ParaVM')#slurp
102 $vmTypeList($defaults.type)#slurp
106 <tr><td>Ram:</td><td><input type="text" size=3 name="memory" value="$defaults.memory"/>MiB (max $max_mem)</td></tr>
108 $errorRow('memory', $err)
110 <tr><td>Disk:</td><td><input type="text" size=3 name="disksize" value="$defaults.disk"/>GiB (max $max_disk)</td><td>WARNING: Modifying disk size may corrupt your data.</td></tr>
112 $errorRow('disk', $err)
116 $errorRow('name', $err)
117 $errorRow('memory', $err)
118 $errorRow('disk', $err)
121 <tr><td><input type="submit" class="button" name="action" value="Change"/></td></tr>