Take two:
[www-register-wizard.git] / application / views / stage6_download.php
1 <script language="javascript">
2 function updateContinueEnabled()
3 {
4         document.fm.button_continue.disabled = false;
5 }
6 </script>
7
8 <div class="plroundedupdate">
9 <div class="plroundedwhite">
10
11 <h3>Download BootImage and Follow Steps Below</h3>
12
13 <?php
14 /*
15         if( $can_gen_config ):
16                 if (method_exists($api,"GetBootMedium")):
17                         $preview=$api->GetBootMedium($node_id,"node-preview",""); ?>
18                         <h4>Current node configuration contents</h4>
19                         <pre><?= $preview ?></pre>
20                         <hr />
21         endif; 
22 */
23 ?>
24
25 <dl>
26         <dt>Step 1</dt>
27          <?php  if ( $action == "download-node-floppy-with-iso" ): ?>                             
28                 <dd>Download the <a href="/download/<?= $generic_iso_name 
29                         ?>.iso">Generic ISO image</a>.  Then,
30                         use the 'Download' button below to get the configuration file for your
31                         floppy disk. </dd>
32          <?php  elseif ( $action == "download-node-floppy-with-usb" ): ?>
33                 <dd>Download the <a
34                         href="/download/<?= $generic_iso_name ?>.usb">Generic USB image</a>.  Then,
35                         use the 'Download' button below to get the configuration file for your
36                         floppy disk.  </dd>
37          <?php  else: ?>
38                 <dd>Download your BootImage using 'Download' button below.</dd>
39          <?php  endif; ?>
40
41         <dt>Step 2</dt><dd>Burn or copy the BootImage to the <a target="_blank" href="http://www.planet-lab.org/doc/guides/bootcdsetup">appropriate read-only media</a></dd>
42         <dt>Step 3</dt><dd>Install the BootImage in your machine. Turn the machine on and allow it to boot.</dd>
43         <dt>Step 4</dt><dd>Continue to the next Stage.</dd>
44 </dl>
45
46
47 <p class='error'>WARNING: By using the download button below, we will generate
48 a new node key for your machine. Therefore, all previous configuration files or All-in-one BootImages that you have downloaded will be expired.  Only continue if you will complete the installation process.</p>
49
50         <p>
51         <?= form_open("download/stage6_download/$pcu_id/$site_id/$node_id", array('style' => 'display: inline; margin: 0px')) ?>
52                 <input type='hidden' name='action' value='<?= $action ?>'>
53                 <input type='hidden' name='download' value='1'>
54                 <input name='button_download' type='submit' value='Download <?= $format ?>' onclick='updateContinueEnabled();'>
55         </form>
56         <?= form_open("confirm/stage7_firstcontact/$pcu_id/$site_id/$node_id", array('name' => 'fm', 'style' => 'display: inline; margin: 0px')) ?>
57                 <input name='button_continue' disabled type='submit' value='Continue ->'>
58         </form>
59 </div>
60 </div>
61 <?php /*        else: 
62                 <p><font color=red>Configuration file cannot be created.</font>
63 <?php   endif; */ ?>