Add button to trigger renumbering
[invirt/packages/invirt-web.git] / code / templates / info.mako
index 8ceb715..8b51cdf 100644 (file)
@@ -47,6 +47,16 @@ Info on ${machine.name}
 % endif
 </form>
 </%def>
+  % if renumber:
+  <div>
+  <p>This machine's IP address is slated for removal. Your machine's new IP address, netmask, and gateway are shown above. Please configure your machine for DHCP or update the machine's configuration and then press this button:</p>
+    % if on:
+    ${command_button("Power cycle and renumber", "renumber")
+    % else:
+    ${command_button("Renumber", "renumber")
+    % endif
+  </div>
+  % endif
   <div>
        % if on:
        ${command_button("Power off", "destroy")}