blob: c236c3f93f904f7fc6c238f983bd780f6fe5d5b1 [file] [log] [blame]
<?php
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
*/
?>
<?php require_once "./head.inc" ?>
<html>
<head>
<?php require "./head.htmli" ?>
</head>
<body class="yui3-skin-sam">
<?php require "./topnav.htmli"; ?>
<div id="ContentDivId">
<?php require "./subnav.htmli"; ?>
<!-- Installation Wizard -->
<div name="installationWizardDiv" id="installationWizardDivId" style="display:block">
<div name="installationWizardProgressBarDiv" id="installationWizardProgressBarDivId">
<ol id="installationWizardProgressBarListId">
<li id="addNodesStageId" class="installationWizardCurrentStage">
<div>
<span class="installationWizardStageNumber">
1
</span>
Add nodes
</div>
</li>
<li id="selectServicesStageId" class="installationWizardUnvisitedStage">
<div>
<span class="installationWizardStageNumber">
2
</span>
Install Services
</div>
</li>
</ol>
</div>
<?php require "./utils.htmli"; ?>
<div name="installationMainFormsDiv" id="installationMainFormsDivId">
<div id="addNodesCoreDivId" style="display:block">
<div class="pageSummary">
<h2><?php echo $RES['addNodesWizard.addNodes.pageSummary.header'] ?></h2>
<p><?php echo $RES['addNodesWizard.addNodes.pageSummary.body'] ?></p>
</div>
<div id="formStatusDivId" class="formStatusBar" style="display:none">
</div>
<div class="pageContent">
<fieldset>
<form id="addNodesFilesFormId" enctype="multipart/form-data" method="post">
<input type="hidden" name="ClusterDeployUser" id="clusterDeployUserId" value="root" placeholder="">
<p>
<label for="clusterDeployUserIdentityFileId"><?php echo $RES['common.sshPrivateKeyFile.label'] ?></label>
<input type="file" name="clusterDeployUserIdentityFile" id="clusterDeployUserIdentityFileId" value="" placeholder="">
</p>
<br/>
<p>
<label for="clusterHostsFileId"><?php echo $RES['common.hostsFile.label'] ?></label>
<input type="file" name="clusterHostsFile" id="clusterHostsFileId" value="" placeholder="">
</p>
<div id="fileUploadWrapperDivId">
<iframe name="fileUploadTarget" id="fileUploadTargetId" src="about:blank" style="display:none"></iframe>
</div>
</form>
</fieldset>
<button class="btn btn-large" id="addNodesSubmitButtonId"><?php echo $RES['addNodesWizard.addNodes.submit.label'] ?></button>
</div>
</div>
<div name="selectServicesCoreDiv" id="selectServicesCoreDivId" style="display:none">
<div class="pageSummary">
<h2><?php echo $RES['addNodesWizard.selectServices.pageSummary.header'] ?></h2>
<p><?php echo $RES['addNodesWizard.selectServices.pageSummary.body'] ?></p>
</div>
<div id="formStatusDivId" class="formStatusBar" style="display:none">
</div>
<fieldset>
<!--<legend>Select Services</legend>-->
<form id="addNodesDataFormId">
<div name="selectComponentsDynamicRenderDiv" id="selectComponentsDynamicRenderDivId"></div>
</form>
</fieldset>
<button class="btn btn-large" id="deployAddedNodesSubmitButtonId"><?php echo $RES['addNodesWizard.selectServices.submit.label'] ?></button>
</div>
<?php require "./txnUtils.htmli"; ?>
</div>
</div>
<!-- End of installation Wizard -->
</div>
<?php require "./footer.htmli"; ?>
<!-- Javascript Scaffolding -->
<script type="text/javascript">
var freshInstall = false;
var clusterName = "<?php echo $_GET['clusterName']; ?>";
var nodesAction = "addNodes";
var InstallationWizard = {
AddNodes:
{},
AddNodesProgress:
{},
SelectComponents:
{},
DeployProgress:
{}
};
var jsFilesToLoad = [
'js/utils.js',
'js/txnUtils.js',
'js/addNodes.js',
'js/addNodesProgress.js',
'js/selectComponents.js',
'js/deployAddedNodesProgress.js',
'js/addNodesWizardInit.js'
];
</script>
<?php require "./bootstrapJs.htmli"; ?>
<!-- End of Javascript Scaffolding -->
</body>
</html>