Add a description field.
[invirt/packages/invirt-web.git] / code / templates / list.tmpl
index 2242c2f..8d8b8f6 100644 (file)
@@ -31,6 +31,13 @@ VM List
 $errorRow('name', $err)
 #end filter
        <tr>
+         <td>Description</td>
+         <td><textarea name="description" rows="4" cols="60">$defaults.description</textarea></td>
+       </tr>
+#filter None
+$errorRow('description', $err)
+#end filter
+       <tr>
          <td>Memory</td>
          <td><input type="text" name="memory" value="$defaults.memory" size=3/> MiB ($max_memory max)</td>
        </tr>
@@ -135,7 +142,7 @@ $has_vnc[$machine]
 #end filter
 #end if
 </td>
-       <td>
+       <td rowspan="2">
          <form action="command" method="post">
            <input type="hidden" name="back" value="list"/>
            <input type="hidden" name="machine_id"
@@ -146,6 +153,9 @@ $has_vnc[$machine]
          </form>
        </td>
       </tr>
+      <tr>
+        <td colspan="7" style="padding-left: 1em; color: #666">$machine.description</td>
+      </tr>
 #end def
 
 #def machineList($machines)