added images to make this an all-in-one package.
[www-register-wizard.git] / application / views / stage8_rebootpcu.php
index 1ef354e..dd0cf71 100644 (file)
@@ -2,22 +2,16 @@
 <div class="plroundedwhite">
 <h3>Confirm Reboot Node With PCU</h3>
 <dl>
-       <?php if ( $node['boot_state'] == "disable" ): ?>
+       <?php if ( $node['boot_state'] == "disabled" ): ?>
        <dt>Step 1</dt>
                <dd>
                        <span class='error'>
-                       Use the 'Test Reboot' button.  This will set the boot state to 'rins' and 
+                       Use the 'Test Reboot' button.  This will set the boot state to 'reinstall' and 
                        attempt to reboot your machine using the registered PCU.
                        </span>
                </dd>
-       <?php elseif ( $node['boot_state'] == "rins" || $node['boot_state'] == "reinstall" ): ?>
-       <dt>If Reboot succeeds,</dt><dd>
-                       your machine will reboot, install the bootstrap image, and 
-                       contacted PLC.  Finally, the boot state will be updated to 'boot'.
-                       <br>
-                       Continue using the 'Reload' button to check whether the node has
-                       completed its installation.
-       </dd>
+       <?php elseif ( $node['boot_state'] == "reinstall" ): ?>
+<?php if ( isset($error) && ! empty($error) ): ?>
        <dt>If Reboot fails,</dt><dd>
                        there will be an error displayed that will assist you in
                        diagnosing the error.  Otherwise, please double check the
                        PCU manually (using it's web or ssh interface).
                        <br>
                        To try the test again, use 'Test Reboot'.<br>
+                       If you need help diagnosing the problem, please contact 
+                       <a href="mailto:support@planet-lab.org?subject=Reboot Failed: <?= $error ?>">PlanetLab Support</a>.
+       </dd>
+               <dt> <span class='error'> Reboot Failure: </span> </dt>
+               <dd> <span class='error'> <?= $error ?> </span> </dd>
+       <?php else: ?>
+       <dt>If Reboot succeeds,</dt><dd>
+                       your machine will reboot, install the bootstrap image, and 
+                       contacted PLC.  Finally, the boot state will be updated to 'boot'.
+                       <br>
+                       Continue using the 'Reload' button to check whether the node has
+                       completed its installation.
        </dd>
+               <dt> Reboot without error: </dt>
+               <dd> No errors were reported for your reboot.  Please double check by
+               confirming at the console.  If the reboot failed, please report this
+               to <a href="mailto:support@planet-lab.org?subject=No error for failed PCU reboot">PlanetLab Feedback</a>.
+               </dd>
+<?php endif; ?>
        <?php else: ?>
        <dt><b>Success!!</b></dt><dd>
                        The installation is complete; your machine has reached the final
                        'boot' state.  You can continue to the final stage.</dd>
        <?php endif; ?>
-<?php if ( isset($error) && ! empty($error) ): ?>
-               <dt> <span class='error'> Reboot Failure: </span> </dt>
-               <dd> <span class='error'> <?= $error ?> </span> </dd>
-<?php endif; ?>
 </dl>
 
 <table><tbody>
@@ -44,7 +52,7 @@
                <td>
                <?php if ( $node['boot_state'] == "disable" ): ?>
                        <span class='error'> Start with the 'Test Reboot' button.</span>
-               <?php elseif ( $node['boot_state'] == "rins" ): ?>
+               <?php elseif ( $node['boot_state'] == "reinstall" ): ?>
                        <br>'Test Reboot' to start again.<br>
                        'Reload' to Reload this page.
                <?php else: ?>
@@ -74,7 +82,7 @@
                <?php else: ?>
                                <input type='submit' disabled value='Continue'>
                <?php endif; ?>
-                               <input type='submit' value='Debug Continue'>
+                               <!--input type='submit' value='Debug Continue'-->
                </form>
 </tbody></table><br />
 </div>