addNodesWizard.php 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. <?php
  2. /*
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing,
  12. software distributed under the License is distributed on an
  13. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. KIND, either express or implied. See the License for the
  15. specific language governing permissions and limitations
  16. under the License.
  17. */
  18. ?>
  19. <?php require_once "./head.inc" ?>
  20. <html>
  21. <head>
  22. <?php require "./head.htmli" ?>
  23. </head>
  24. <body class="yui3-skin-sam">
  25. <?php require "./topnav.htmli"; ?>
  26. <div id="ContentDivId">
  27. <?php require "./subnav.htmli"; ?>
  28. <!-- Installation Wizard -->
  29. <div name="installationWizardDiv" id="installationWizardDivId" style="display:block">
  30. <div name="installationWizardProgressBarDiv" id="installationWizardProgressBarDivId">
  31. <ol id="installationWizardProgressBarListId">
  32. <li id="addNodesStageId" class="installationWizardCurrentStage">
  33. <div>
  34. <span class="installationWizardStageNumber">
  35. 1
  36. </span>
  37. Add nodes
  38. </div>
  39. </li>
  40. <li id="selectServicesStageId" class="installationWizardUnvisitedStage">
  41. <div>
  42. <span class="installationWizardStageNumber">
  43. 2
  44. </span>
  45. Install Services
  46. </div>
  47. </li>
  48. </ol>
  49. </div>
  50. <?php require "./utils.htmli"; ?>
  51. <div name="installationMainFormsDiv" id="installationMainFormsDivId">
  52. <div id="addNodesCoreDivId" style="display:block">
  53. <div class="pageSummary">
  54. <h2><?php echo $RES['addNodesWizard.addNodes.pageSummary.header'] ?></h2>
  55. <p><?php echo $RES['addNodesWizard.addNodes.pageSummary.body'] ?></p>
  56. </div>
  57. <div id="formStatusDivId" class="formStatusBar" style="display:none">
  58. </div>
  59. <div class="pageContent">
  60. <fieldset>
  61. <form id="addNodesFilesFormId" enctype="multipart/form-data" method="post">
  62. <input type="hidden" name="ClusterDeployUser" id="clusterDeployUserId" value="root" placeholder="">
  63. <p>
  64. <label for="clusterDeployUserIdentityFileId"><?php echo $RES['common.sshPrivateKeyFile.label'] ?></label>
  65. <input type="file" name="clusterDeployUserIdentityFile" id="clusterDeployUserIdentityFileId" value="" placeholder="">
  66. </p>
  67. <br/>
  68. <p>
  69. <label for="clusterHostsFileId"><?php echo $RES['common.hostsFile.label'] ?></label>
  70. <input type="file" name="clusterHostsFile" id="clusterHostsFileId" value="" placeholder="">
  71. </p>
  72. <div id="fileUploadWrapperDivId">
  73. <iframe name="fileUploadTarget" id="fileUploadTargetId" src="about:blank" style="display:none"></iframe>
  74. </div>
  75. </form>
  76. </fieldset>
  77. <button class="btn btn-large" id="addNodesSubmitButtonId"><?php echo $RES['addNodesWizard.addNodes.submit.label'] ?></button>
  78. </div>
  79. </div>
  80. <div name="selectServicesCoreDiv" id="selectServicesCoreDivId" style="display:none">
  81. <div class="pageSummary">
  82. <h2><?php echo $RES['addNodesWizard.selectServices.pageSummary.header'] ?></h2>
  83. <p><?php echo $RES['addNodesWizard.selectServices.pageSummary.body'] ?></p>
  84. </div>
  85. <div id="formStatusDivId" class="formStatusBar" style="display:none">
  86. </div>
  87. <fieldset>
  88. <!--<legend>Select Services</legend>-->
  89. <form id="addNodesDataFormId">
  90. <div name="selectComponentsDynamicRenderDiv" id="selectComponentsDynamicRenderDivId"></div>
  91. </form>
  92. </fieldset>
  93. <button class="btn btn-large" id="deployAddedNodesSubmitButtonId"><?php echo $RES['addNodesWizard.selectServices.submit.label'] ?></button>
  94. </div>
  95. <?php require "./txnUtils.htmli"; ?>
  96. </div>
  97. </div>
  98. <!-- End of installation Wizard -->
  99. </div>
  100. <?php require "./footer.htmli"; ?>
  101. <!-- Javascript Scaffolding -->
  102. <script type="text/javascript">
  103. var freshInstall = false;
  104. var clusterName = "<?php echo $_GET['clusterName']; ?>";
  105. var nodesAction = "addNodes";
  106. var InstallationWizard = {
  107. AddNodes:
  108. {},
  109. AddNodesProgress:
  110. {},
  111. SelectComponents:
  112. {},
  113. DeployProgress:
  114. {}
  115. };
  116. var jsFilesToLoad = [
  117. 'js/utils.js',
  118. 'js/txnUtils.js',
  119. 'js/addNodes.js',
  120. 'js/addNodesProgress.js',
  121. 'js/selectComponents.js',
  122. 'js/deployAddedNodesProgress.js',
  123. 'js/addNodesWizardInit.js'
  124. ];
  125. </script>
  126. <?php require "./bootstrapJs.htmli"; ?>
  127. <!-- End of Javascript Scaffolding -->
  128. </body>
  129. </html>