http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/partials/configure_stratos_wizard.hbs ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/configure_stratos_wizard.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/partials/configure_stratos_wizard.hbs deleted file mode 100755 index 5d120f5..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/configure_stratos_wizard.hbs +++ /dev/null @@ -1,485 +0,0 @@ -<!-- - - 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. - ---> - -{{#if config_status.first_use}} - {{#if config_on}} - <div class="container content-starter"> - <div class="row"> - <div class="col-lg-12"> - <h1>{{title}}</h1> - </div> - </div> - </div> - <div class="container"> - <div class="row"> - <div class="col-md-3"> - <a href="{{url "/configure_stratos_wizard.jag"}}" class="btn btn-important"><i class=""></i> Take the configuration Wizard</a> - </div> - <div class="col-md-1"> - <i class="icons-help"></i> - </div> - <div class="col-md-8"> - <p>Stratos is not configured yet. Each step needs to be done in the correct order.</p> - <i class="icons-arrow-down color-a-full-icons"></i> - <p>Partition deployment</p> - <i class="icons-arrow-down color-a-full-icons"></i> - - <p>Policy deployment</p> - <i class="icons-arrow-down color-a-full-icons"></i> - - <p>LB Creation</p> - <i class="icons-arrow-down color-a-full-icons"></i> - - <p>Cartridge Deployment</p> - <i class="icons-arrow-down color-a-full-icons"></i> - - <p>Multi-Tenant Service Deployments</p> - - </div> - </div> - </div> - {{/if}} -{{else}} - {{#ifCond step "==" 7}} - <div class="container content-starter"> - <div class="row"> - <div class="col-lg-12"> - <h1>You have finished wizard successfully.</h1> - </div> - </div> - </div> - <div class="container" id="addItemSection"> - <div class="row"> - <div class="col-md-12"> - <a href="{{url "/cartridges.jag"}}">Subscribe to cartridges.</a> - </div> - </div> - </div> - {{else}} - <div class="container content-starter"> - <div class="row"> - <div class="col-lg-12"> - <h1>Configure Stratos - {{title}}</h1> - </div> - </div> - </div> - <div class="container" id="addItemSection"> - <div class="row"> - <div class="col-md-12"> - <form method="post" id="jsonForm" action="{{url "/controllers/wizardSubmit.jag"}}"> - {{#ifCond step "==" 4}} - {{#if config_on}} - <i class="icons-help icons-small-size"></i> Add at least one {{title}}. - {{else}} - <i class="icons-help icons-small-size"></i> Add at least one {{title}} or skip the configuration. - {{/if}} - {{/ifCond}} - <div style="clear: both"></div> - {{#ifCond step "==" 1}} - <label for="policy" class="required" style="margin-top:10px;">Partition Configuration</label> - {{/ifCond}} - - {{#ifCond step "==" 2}} - <label for="policy" class="required" style="margin-top:10px;">Auto Scale Policy Configuration</label> - {{/ifCond}} - - {{#ifCond step "==" 3}} - <label for="policy" class="required" style="margin-top:10px;">Deployment Policy Configuration</label> - {{/ifCond}} - - {{#ifCond step "==" 4}} - <label for="policy" class="required" style="margin-top:10px;">LB cartridge Configuration</label> - {{/ifCond}} - - {{#ifCond step "==" 5}} - <label for="policy" class="required" style="margin-top:10px;">Cartridge Configuration</label> - {{/ifCond}} - - {{#ifCond step "==" 6}} - <label for="policy" class="required" style="margin-top:10px;">MT Service Configuration</label> - {{/ifCond}} - - <div class="container"> - <div class="row"> - <div class="col-md-6 padding-remover-left"> - <input type="hidden" name="nextStep" id="nextStep" value="{{step}}"/> - <input type="hidden" name="thisStep" id="thisStep" value="{{step}}"/> - <input type="hidden" name="items" id="items" value="{{step_data.length}}"/> - <input type="hidden" name="wizard_on" id="wizard_on" value="{{#if wizard_on}}true{{else}}false{{/if}}"/> - <input type="hidden" name="skip" id="skip" value="false"/> - <textarea rows="11" id="policy" name="policy" class="form-control" ></textarea> - <label class="error" id="policyError" style="display:none;">Required</label> - {{#if config_on}} - <button data-step="{{step}}" type="button" class="btn btn-primary" id="wizardNext">Deploy</button> - {{else}} - <button data-step="{{step}}" type="button" class="btn btn-default" {{#unless wizard_on_2}} disabled="disabled" {{/unless}} id="wizardBack"><< Back</button> - <button data-step="{{step}}" type="button" class="btn {{#ifCond step "==" 1 }}btn-primary{{/ifCond}}{{#ifCond step "==" 2 }}btn-primary{{/ifCond}}{{#ifCond step "==" 3 }}btn-primary{{/ifCond}}{{#ifCond step "==" 4 }}btn-default{{/ifCond}}{{#ifCond step "==" 5 }}btn-primary{{/ifCond}}{{#ifCond step "==" 6 }}btn-default{{/ifCond}}" id="wizardNext" {{#if wizard_on_6}} disabled="disabled" {{/if}}>Next >></button> - {{#ifCond step "==" 4}}<button data-step="{{step}}" type="button" class="btn btn-primary" id="wizardSkip">Skip >></button>{{/ifCond}} - <button data-step="{{step}}" type="button" class="btn {{#if wizard_on_6}}btn-primary{{else}}btn-default{{/if}}" id="wizardFinish" {{#unless wizard_on_6}} disabled="disabled" {{/unless}}>Finish</button> - {{/if}} - - <!-- End of form --> - <div class="panel-group" id="accordion" style="margin-top:10px;"> - - {{#ifCond step "==" 1}} - {{#each step_data}} - <div class="panel panel-default"> - <div class="panel-heading"> - <h4 class="panel-title"> - <a data-toggle="collapse" data-parent="#accordion" href="#collapse{{id}}"> - {{id}} - </a> - </h4> - </div> - <div id="collapse{{id}}" class="panel-collapse collapse"> - <div class="panel-body"> - <pre>{{json_string}}</pre> - </div> - </div> - </div> - {{/each}} - {{/ifCond}} - - - {{#ifCond step "==" 2}} - {{#each step_data}} - <div class="panel panel-default"> - <div class="panel-heading"> - <h4 class="panel-title"> - <a data-toggle="collapse" data-parent="#accordion" href="#collapse{{id}}"> - {{id}} - </a> - </h4> - </div> - <div id="collapse{{id}}" class="panel-collapse collapse"> - <div class="panel-body"> - <pre>{{json_string}}</pre> - </div> - </div> - </div> - {{/each}} - {{/ifCond}} - - - {{#ifCond step "==" 3}} - {{#each step_data}} - <div class="panel panel-default"> - <div class="panel-heading"> - <h4 class="panel-title"> - <a data-toggle="collapse" data-parent="#accordion" href="#collapse{{id}}"> - {{id}} - </a> - </h4> - </div> - <div id="collapse{{id}}" class="panel-collapse collapse"> - <div class="panel-body"> - <pre>{{json_string}}</pre> - </div> - </div> - </div> - {{/each}} - {{/ifCond}} - - - - {{#ifCond step "==" 4}} - {{#each step_data}} - <div class="panel panel-default"> - <div class="panel-heading"> - <h4 class="panel-title"> - <a data-toggle="collapse" data-parent="#accordion" href="#collapse{{cartridgeType}}"> - {{displayName}} - </a> - </h4> - </div> - <div id="collapse{{cartridgeType}}" class="panel-collapse collapse"> - <div class="panel-body"> - <div class="alert alert-danger alert-dismissable" style="display: none"></div> - <button class="btb btn-danger pull-right js_undeploy" type="button" data-type="{{cartridgeType}}">Undeploy</button> - <pre>{{json_string}}</pre> - </div> - </div> - </div> - {{/each}} - {{/ifCond}} - - - - {{#ifCond step "==" 5}} - {{#each step_data}} - <div class="panel panel-default"> - <div class="panel-heading"> - <h4 class="panel-title"> - <a data-toggle="collapse" data-parent="#accordion" href="#collapse{{cartridgeType}}"> - {{displayName}} - </a> - </h4> - </div> - <div id="collapse{{cartridgeType}}" class="panel-collapse collapse"> - <div class="panel-body"> - <div class="alert alert-danger alert-dismissable" style="display: none"></div> - <button class="btb btn-danger pull-right js_undeploy" type="button" data-type="{{cartridgeType}}">Undeploy</button> - <pre>{{json_string}}</pre> - </div> - </div> - </div> - {{/each}} - {{/ifCond}} - - {{#ifCond step "==" 6 }} - {{#each step_data}} - <div class="panel panel-default"> - <div class="panel-heading"> - <h4 class="panel-title"> - <a data-toggle="collapse" data-parent="#accordion" href="#collapse{{cartridgeType}}"> - {{cartridgeType}} - </a> - </h4> - </div> - <div id="collapse{{cartridgeType}}" class="panel-collapse collapse"> - <div class="panel-body"> - <pre>{{json_string}}</pre> - </div> - </div> - </div> - {{/each}} - {{/ifCond}} - - - {{#if step_data}} - {{#each error}} - <div class="alert alert-info alert-dismissable"> - <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> - {{errorMessage}} - </div> - {{/each}} - {{/if}} - </div> - </div> - {{#ifCond step "==" 1}} - <div class="col-md-6 config-responsive-fixer"> - <i class="icons-help"></i> - Example configuration: - <pre> - { - "id": "zone-1", - "provider": "ec2", - "property": [ - { - "name": "region", - "value": "ap-southeast-1" - }, - { - "name": "zone", - "value": "ap-southeast-1a" - } - ] - } - - </pre> - </div> - {{/ifCond}} - - {{#ifCond step "==" 2}} - <div class="col-md-6 config-responsive-fixer"> - <i class="icons-help"></i> - Example configuration: - <pre> - { - "id": "autoscale-policy-1", - "loadThresholds": { - "requestsInFlight": { - "average": 50 - }, - "memoryConsumption": { - "average": 70 - }, - "loadAverage": { - "average": 100 - } - } - } - - </pre> - </div> - {{/ifCond}} - - {{#ifCond step "==" 3}} - <div class="col-md-6 config-responsive-fixer"> - <i class="icons-help"></i> - Example configuration: - <pre> - { - "id": "economyDeployment", - "partitionGroup": [ - { - "id": "ec2-region1", - "partitionAlgo": "one-after-another", - "partition": [ - { - "id": "zone-1", - "partitionMax": "3", - "partitionMin": "1" - }, - { - "id": "zone-2", - "partitionMax": "5", - "partitionMin": "1" - } - ] - }, - { - "id": "ec2-region2", - "partitionAlgo": "round-robin", - "partition": [ - { - "id": "region-1", - "partitionMax": "6", - "partitionMin": "2" - } - ] - } - ] - } - - </pre> - </div> - {{/ifCond}} - - {{#ifCond step "==" 4}} - <div class="col-md-6 config-responsive-fixer"> - <i class="icons-help"></i> - Example configuration: - <pre> - { - "type": "lb", - "provider": "apache", - "displayName": "Lb", - "description": "Lb Cartridge", - "version": "1.0", - "host": "stratos.apache.org", - "defaultAutoscalingPolicy": "economyPolicy", - "defaultDeploymentPolicy": "depexp", - "multiTenant": "false", - "portMapping": [ - { - "protocol": "http", - "port": "22", - "proxyPort": "8280" - } - ], - "deployment": { - }, - "iaasProvider": [ - { - "type": "openstack", - "imageId": "RegionOne/9865ed3f-724b-44e1-874f-f759aeceb9ef", - "property": [ - { - "name": "instanceType", - "value": "RegionOne/2" - } - ] - } - ], - "property": [ - { - "name": "load.balancer", - "value": "true" - } - ] - } - - </pre> - </div> - {{/ifCond}} - - {{#ifCond step "==" 5}} - <div class="col-md-6 config-responsive-fixer"> - <i class="icons-help"></i> - Example configuration: - <pre> - { - "type": "php", - "provider": "apache", - "host": "stratos.com", - "displayName": "PHP", - "description": "PHP Cartridge", - "version": "7", - "multiTenant": "false", - "portMapping": [ - { - "protocol": "http", - "port": "80", - "proxyPort": "8280" - } - ], - "deployment": { - }, - "iaasProvider": - [ - { - "type": "openstack", - "imageId": "RegionOne/9865ed3f-724b-44e1-874f-f759aeceb9ef", - "property": [ - { - "name": "instanceType", - "value": "RegionOne/2" - } - ] - } - ] - } - - </pre> - </div> - {{/ifCond}} - - - {{#ifCond step "==" 6}} - <div class="col-md-6 config-responsive-fixer"> - <i class="icons-help"></i> - Example configuration: - <pre> - { - "serviceName": "appserver", - "cartridgeType": "as", - "deploymentPolicyName": "economyDeployment", - "autoscalingPolicyName": "economyPolicy", - "clusterDomain": "as.stratos.domain", - "clusterSubDomain": "subdomain", - "tenantRange": "*" - } - - </pre> - </div> - {{/ifCond}} - </div> <!-- row --> - </div> <!-- container --> - </form> - </div> - </div> - </div> - - {{/ifCond}} -{{/if}} -<script src="{{url "/themes/theme1/ui/js/utils.js"}}"></script> -<script src="{{url "/themes/theme1/ui/js/wizard.js"}}"></script>
http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/partials/dashboard.hbs ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/dashboard.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/partials/dashboard.hbs deleted file mode 100644 index 9dd7df6..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/dashboard.hbs +++ /dev/null @@ -1,44 +0,0 @@ -<!-- - - 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. - ---> - -<div class="dashboard-wrapper-a"> - <div class="container content-starter"> - <div class="row"> - <div class="col-lg-12"> - <h1>{{title}}</h1> - <p>Select a node to view details.</p> - </div> - </div> - </div> - <div class="container"> - <div class="row"> - <div class="col-lg-12"> - <div id="canvas_container"></div> - <div id="nodeDetails" class="dashboard-wrapper-b" style="display: none"><img style="padding:20px;" src="{{url "/themes/theme1/ui/img/tmp-details.png"}}" /> - <a class="close-btn"><i class="icons-circle-close"></i></a> - </div> - </div> - </div> - </div> -</div> <!-- End Dashboard wrapper --> - - -<script src="{{url "/themes/theme1/ui/js/dashboard.js"}}"></script> http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/partials/error_page.hbs ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/error_page.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/partials/error_page.hbs deleted file mode 100644 index ff07294..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/error_page.hbs +++ /dev/null @@ -1,40 +0,0 @@ -<!-- - - 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. - ---> - -<div class="container content-starter"> - <div class="row"> - <div class="col-lg-12"> - <h1>Error Occurred</h1> - </div> - </div> -</div> -<div class="container"> - <div class="row"> - {{#each error}} - <div class="col-md-12"> - <div class="alert alert-danger alert-dismissable"> - <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> - <strong>Error!</strong> {{errorMessage}} - </div> - </div> - {{/each}} - </div> -</div> http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/partials/header.hbs ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/header.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/partials/header.hbs deleted file mode 100755 index 91f1c3b..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/header.hbs +++ /dev/null @@ -1,340 +0,0 @@ -<!-- - - 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. - ---> - -{{#if login}} - <div class="top-blue-strip"></div> - <div class="login-logo-section"><a href="{{url "/"}}"><img src="{{url "/themes/theme1/ui/img/logo-login.png"}}"/></a></div> - <style> - body { - padding-top: 0; - padding-bottom: 0; - } - </style> -{{/if}} -{{#unless login}} -<div class="navbar navbar-inverse navbar-fixed-top main-menu"> -<div class="shadow-wrapper"> - <div class="top-blue-strip"></div> - <div class="container"> - <div class="row"> - <div class="col-lg-3"> - <a class="navbar-brand" href="{{url "/"}}"><img src="{{url "/themes/theme1/ui/img/logo-inside.png"}}"/></a> - </div> - <div class="col-lg-9 custom-nav"> - <ul class="pull-left"> - <!-- li {{#if dashboard}} class="active" {{/if}}><a href="{{url "/dashboard.jag"}}"><i class="fa fa-dashboard"></i> <span><br>Dashboard</span></a></li --> - <li {{#if my_cartridges}} class="active" {{/if}}><a href="{{url "/"}}"><i class="icons-default"></i> <span><br>My Cartridges</span></a></li> - {{#isAllowed "configure"}}<li {{#if configure_stratos}} class="active" {{/if}}><a href="{{url "/configure_stratos.jag"}}"><i class="icons-config"></i> <span><br>Configure Stratos</span></a></li>{{/isAllowed}} - {{#isAllowed "tenant-mgt"}}<li {{#if tenant_mgt}} class="active" {{/if}}><a href="{{url "/tenant_management.jag"}}"><i class="icons-users"></i> <span><br>Tenant Mgt</span></a></li>{{/isAllowed}} - <!-- <li><a target="_blank" href="https://{{bamInfo.bamip}}:{{bamInfo.bamport}}/bamdashboards/private_paas_metering/index.jsp?tenantId={{#tenantID}}{{/tenantID}}&domain={{#domain}}{{/domain}}"><i class="icons-art-gallery"></i><span><br>Dashboard</span></a></li> --> - </ul> - <ul class="pull-right"> - <li class="dropdown"> - <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icons-user"></i><br /> {{#user}}{{/user}} <b class="caret"></b></a> - <ul class="dropdown-menu"> - <!--li><a><i class="fa fa-file-text-o"></i> View Profile</a></li --> - <li> - <a href="{{url "/controllers/logout.jag"}}"><i class="icons-sign-out" style="font-size:11px;"></i> logout</a> - </li> - </ul> - </li> - </ul> - </div> - </div> - <!--/.navbar-collapse --> - </div><!-- End container --> - </div> - <div class="breadcrumb-strip"> - <div class="container"> - <div class="row"> - {{#unless wizard_on}} - {{#unless config_on}} - <div class="col-lg-3"> - <a class="btn {{button.class_name}}" href="{{url button.link }}"><i class="{{button.class_icon}}"></i> {{button.name}}</a> - </div> - {{#if has_action_buttons}} - <div class="col-lg-4 action-buttons"> - <button class="btn btn-default" onclick="manage_selected('activate')" type="button" id="activateTenantsBtn">Activate</button> - <button class="btn btn-default" onclick="manage_selected('deactivate')" type="button" id="deactivateTenantsBtn">Deactivate</button> - <!--<button class="btn btn-default" onclick="manage_selected('delete')">Delete</button>--> - </div> - <div class="col-lg-5 help-section"> - {{#if has_help}} - <i class="icons-help"></i> - <p>{{help}}</p> - {{/if}} - </div> - {{else}} - <div class="col-lg-9 help-section"> - {{#if has_help}} - <i class="icons-help"></i> - <p>{{help}}</p> - {{/if}} - </div> - {{/if}} - {{/unless}} <!-- configon --> - {{/unless}} <!-- wizardon --> - - - - - - {{#if config_on}} - <div class="col-lg-12"> - {{#if config_status.first_use}} - <ul class="sub-menu-inactive"> - <li>Partitions</li> - <li>Auto scale Policies</li> - <li>Deployments Policies</li> - <li>LBs</li> - <li>Cartridges</li> - <li>Multi-Tenant Services</li> - </ul> - {{else}} - <ul class="sub-menu-wizard non-wizard"> - <li {{#ifCond step "==" 1 }}class="active"{{/ifCond}}> - <a href="{{url "/configure_stratos.jag?step=1" }}"> - <div class="wizard-number">1</div> - <div>Partitions</div> - </a> - </li> - - <li {{#ifCond step "==" 2 }}class="active"{{/ifCond}}> - <a href="{{url "/configure_stratos.jag?step=2" }}"> - <div class="wizard-number">2</div> - <div>Auto scale Policies</div> - </a> - </li> - - <li {{#ifCond step "==" 3 }}class="active"{{/ifCond}}> - <a href="{{url "/configure_stratos.jag?step=3" }}"> - <div class="wizard-number">3</div> - <div>Deployments Policies</div> - </a> - </li> - - - - <li {{#ifCond step "==" 4 }}class="active"{{/ifCond}}> - <a href="{{url "/configure_stratos.jag?step=4" }}"> - <div class="wizard-number">4</div> - <div>LBs</div> - </a> - </li> - - - - <li {{#ifCond step "==" 5 }}class="active"{{/ifCond}}> - <a href="{{url "/configure_stratos.jag?step=5" }}"> - <div class="wizard-number">5</div> - <div>Cartridges</div> - </a> - </li> - - - <li {{#ifCond step "==" 6 }}class="active"{{/ifCond}}> - <a href="{{url "/configure_stratos.jag?step=6" }}"> - <div class="wizard-number">6</div> - <div>Multi-Tenant Services</div> - </a> - </li> - - </ul> - {{/if}} - {{#unless wizard_on}} - {{#unless config_status.first_use}} - <div class="pull-right"> - <a href="{{url "/configure_stratos_wizard.jag" }}" class="btn btn-important"> - <div>Configuration Wizard</div> - </a> - </div> - {{/unless}} - {{/unless}} - </div> - - {{/if}} - - - {{#if wizard_on}} - <div class="col-lg-12"> - - <ul class="sub-menu-wizard"> - <li class="active"> - <a href="{{url "/configure_stratos_wizard.jag?step=1" }}"> - <div class="wizard-number">1</div> - <div>Partitions</div> - </a> - </li> - <li class="sub-menu-wizard-pointer active-pointer {{#unless wizard_on_2}}active-no-background{{/unless}}"></li> - - - - {{#if wizard_on_2}} - <li class="active"> - <a href="{{url "/configure_stratos_wizard.jag?step=2" }}"> - <div class="wizard-number">2</div> - <div>Auto scale Policies</div> - </a> - </li> - <li class="sub-menu-wizard-pointer active-pointer {{#unless wizard_on_3}}active-no-background{{/unless}}"></li> - {{else}} - <li> - <div class="in-active-wizard-item"> - <div class="wizard-number">2</div> - <div>Auto scale Policies</div> - </div> - </li> - <li class="sub-menu-wizard-pointer"></li> - {{/if}} - - - {{#if wizard_on_3}} - <li class="active"> - <a href="{{url "/configure_stratos_wizard.jag?step=3" }}"> - <div class="wizard-number">3</div> - <div>Deployments Policies</div> - </a> - </li> - <li class="sub-menu-wizard-pointer active-pointer {{#unless wizard_on_4}}active-no-background{{/unless}}"></li> - {{else}} - <li> - <div class="in-active-wizard-item"> - <div class="wizard-number">3</div> - <div>Deployments Policies</div> - </div> - </li> - <li class="sub-menu-wizard-pointer"></li> - {{/if}} - - - {{#if wizard_on_4}} - <li class="active"> - <a href="{{url "/configure_stratos_wizard.jag?step=4" }}"> - <div class="wizard-number">4</div> - <div>LBs</div> - </a> - </li> - <li class="sub-menu-wizard-pointer active-pointer {{#unless wizard_on_5}}active-no-background{{/unless}}"></li> - {{else}} - <li> - <div class="in-active-wizard-item"> - <div class="wizard-number">4</div> - <div>LBs</div> - </div> - </li> - <li class="sub-menu-wizard-pointer"></li> - {{/if}} - - - {{#if wizard_on_5}} - <li class="active"> - <a href="{{url "/configure_stratos_wizard.jag?step=5" }}"> - <div class="wizard-number">5</div> - <div>Cartridges</div> - </a> - </li> - <li class="sub-menu-wizard-pointer active-pointer {{#unless wizard_on_6}}active-no-background{{/unless}}"></li> - {{else}} - <li> - <div class="in-active-wizard-item"> - <div class="wizard-number">5</div> - <div>Cartridges</div> - </div> - </li> - <li class="sub-menu-wizard-pointer"></li> - {{/if}} - - - {{#if wizard_on_6}} - <li class="active"> - <a href="{{url "/configure_stratos_wizard.jag?step=6" }}"> - <div class="wizard-number">6</div> - <div>Multi-Tenant Services</div> - </a> - </li> - <li class="sub-menu-wizard-pointer active-pointer no-background"></li> - {{else}} - <li> - <div class="in-active-wizard-item"> - <div class="wizard-number">6</div> - <div>Multi-Tenant Services</div> - </div> - </li> - <li class="sub-menu-wizard-pointer no-background"></li> - {{/if}} - - - </ul> - - </div> - {{/if}} - </div> - </div> - </div> - - {{#if error}} - <div class="info-bar error"> - <div class="container"> - <div class="row"> - <div class="col-lg-12"> - <i class="icon-exclamation"></i>{{error_msg}}</a> - </div> - </div> - </div> - </div> - {{else}} - {{#if deploy_status}} - <div class="info-bar success"> - <div class="container"> - <div class="row"> - <div class="col-lg-12"> - <i class="icon-exclamation"></i>{{type}} successful.</a> - </div> - </div> - </div> - </div> - {{else}} - {{#if config_status.not_complete}} - <div class="info-bar"> - <div class="container"> - <div class="row"> - <div class="col-lg-3"> - </div> - <div class="col-lg-6"> - <i class="icon-exclamation"></i> Configure Stratos is not completed. <a href="{{url "/configure_stratos_wizard.jag"}}">Take the Wizard</a> - </div> - </div> - </div> - </div> - {{/if}} - {{/if}} - - {{/if}} - -</div> - -<form action="{{url "/controllers/manageTenants.jag"}}" id="manageTenantsForm"> -<input type="hidden" value="" id="foo" name="foo" /> -<input type="hidden" value="" id="state" name="state" /> -</form> - -{{/unless}} - http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/partials/login.hbs ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/login.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/partials/login.hbs deleted file mode 100644 index 06c120d..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/login.hbs +++ /dev/null @@ -1,54 +0,0 @@ -<!-- - - 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. - ---> - -<h1 class="login-title">The most comprehensive enterprise grade PaaS Framework</h1> -<div class="container"> - <div class="row"> - <div class="col-lg-12 login-box-wrapper"> - <div class="login-box"> - <div class="login-box-top"> - <h2 class="login-sub-title">Login to Manage cartridges</h2> - <form method="post" action="{{url "/loginSubmit"}}" id="loginForm"> - <div class="username-wrapper"> - <input name="username" id="username" class="input-username" type="text" placeholder="Username" /> - </div> - <div class="password-wrapper"> - <input name="password" id="password" class="input-password" type="password" placeholder="Password" /> - </div> - - <div class="login-button-wrapper"> - <div class="loginError" id="loginError" {{#unless hasError}}style="display: none"{{/unless}} >{{#if hasError}}{{error}}{{/if}}</div> - <button class="btn btn-primary login-button" type="button" id="loginButton">Sign In</button> - </div> - </form> - </div> - <div class="login-box-bottom"> - <label class="pull-left"><input type="checkbox" /> Stay Signed In</label> - <!--<label class="pull-right"><a>Create an account</a></label>--> - <div style="clear: both"></div> - </div> - </div> - <br /> - <div class="login-box-footer"></div> - </div> - </div> -</div> -<script src="{{url "/themes/theme1/ui/js/login.js"}}"></script> http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/partials/mycartridges.hbs ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/mycartridges.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/partials/mycartridges.hbs deleted file mode 100755 index fb93c9c..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/mycartridges.hbs +++ /dev/null @@ -1,98 +0,0 @@ -<!-- - - 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. - ---> - -<div class="container content-starter"> - <div class="row"> - <div class="col-lg-12"> - <h1>{{title}}</h1> - </div> - </div> -</div> - -<div class="container"> - <div class="row"> - {{#each mycartridges}} - {{#if serviceGroup}} - <div class="col-md-6"> - <div class="box-container"> - <div class="row"> - - <div class="col-lg-3"> - - <div class="box-left"><i class="icons-default icons-{{cartridgeType}} big-pro-icons"></i></div> - - </div> - <div class="col-lg-9"> - {{#unless loadBalancer}} - - <div class="un-subscribe-container"><a class="un-subscribe un-subscribe-btn" service-group="{{serviceGroup}}" data-alias="{{cartridgeAlias}}">Un-subscribe <i class=" icons-circle-close"></i></a></div> - {{/unless}} - <a href="{{url "/cartridge_info_sg.jag?"}}serviceGroup={{serviceGroup}}"><h3>{{serviceGroup}}</h3></a> - - {{#each items}} - <div class="serviceGroup-child-wrapper"> - <h3>{{cartridgeAlias}}-<span>({{displayName}} - {{version}})</span></h3> - <div class="cartridge-description">{{description}}</div> - <div class="cartridge-description">{{repoURL}} <a class="js_syncRepo" data-value="{{cartridgeAlias}}"><i class="icons-reload"></i></a></div> - </div> - {{/each}} - </div> - </div> - </div> - </div> - - {{else}} <!-- End serviceGroup check if --> - - <div class="col-md-6"> - <div class="box-container"> - <div class="row"> - <div class="col-lg-3"> - <div class="box-left"><i class="icons-default icons-{{cartridgeType}} big-pro-icons"></i></div> - </div> - <div class="col-lg-9"> - {{#unless loadBalancer}} - <div class="un-subscribe-container"><a class="un-subscribe un-subscribe-btn" data-alias="{{cartridgeAlias}}">Un-subscribe <i class="icons-circle-close"></i></a></div> - {{/unless}} - <a href="{{url "/cartridge_info.jag?alias="}}{{cartridgeAlias}}"><h3>{{cartridgeAlias}}-<span>({{displayName}} - {{version}})</span></h3></a> - <div class="cartridge-description">{{description}}</div> - <div class="cartridge-description">{{repoURL}} {{#if repoURL}}<a class="js_syncRepo" data-value="{{cartridgeAlias}}"><i class="icons-reload"></i></a>{{/if}}</div> - </div> - </div> - </div> - </div> - {{/if}} - {{else}} - <div class="col-lg-12"> - <div class="alert alert-info alert-empty-page"> - <strong>You haven't subscribed to any Cartridges yet.</strong> Go to <a href="{{url "/cartridges.jag"}}">Subscribe to Cartridge</a> page to start. - </div> - </div> - {{/each}} - </div> -</div> - - -<form method="post" id="cForm" action="{{url "/controllers/cartridgeUnsubscribeSubmit.jag"}}"> - <input type="hidden" name="alias" id="alias" /> - <input type="hidden" name="serviceGroup" id="serviceGroup" /> -</form> -<script src="{{url "/themes/theme1/ui/js/popup.js"}}"></script> -<script src="{{url "/themes/theme1/ui/js/mycartridges.js"}}"></script> http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/partials/subscribe_cartridge.hbs ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/subscribe_cartridge.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/partials/subscribe_cartridge.hbs deleted file mode 100755 index dac2461..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/subscribe_cartridge.hbs +++ /dev/null @@ -1,294 +0,0 @@ -<!-- - - 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. - ---> - -<div class="container content-starter"> - <div class="row"> - <div class="col-lg-12"> - {{#if cartridge.serviceGroup}} - <h1>{{serviceGroup}} Service Group</h1> - {{else}} - <h1>{{cartridgeType}} {{cartridge.version}} Cartridge</h1> - {{/if}} - </div> - </div> -</div> - -<div class="container"> - <div class="row"> - <div class="col-lg-12"> - <form method="post" role="form" action="{{url "/controllers/cartridgeSubscribeSubmit.jag"}}" id="subscribeCartridgeForm"> - {{#if cartridge.serviceGroup}} - <input name="serviceGroup" type="hidden" value="{{serviceGroup}}" /> - {{/if}} - <div class="form-group"> - {{#if cartridge.multiTenant}} - <label class="required">Subscription Alias:</label> - {{else}} - <label class="required">Public URL:</label> - {{/if}} - <div class="form-inline"> - <input name="cartridgeType" type="hidden" value="{{cartridgeType}}"/> - <input name="alias" - type="text" - class="required form-control input-xlarge js-help" - data-help="Specify a unique alias which can be used to generate the hostname as alias.hostname from cartridge" - data-help-x-offset="50" - data-help-y-offset="10" - placeholder="myphp" /> - {{#unless cartridge.multiTenant}} - <label>.{{cartridge.hostName}}</label> - {{/unless}} - - </div> - </div> - - - {{#ifCond cartridge.provider "==" "data"}} - {{else}} - {{#ifCond cartridge.provider "==" "application"}} - {{#if cartridge.serviceGroup}} - <div class="form-group"> - <label class="required">Repo URL:</label> - <div class="form-inline"> - <input name="repoURL" - type="text" - class="form-control input-xlarge js-help" - data-help="Specify a repository URL of the artifacts." - data-help-x-offset="50" - data-help-y-offset="10" - placeholder="https://github.com/test/mytestphp.git" /> - </div> - {{#unless cartridge.multiTenant}} - <div class="checkbox"> - <label> - <input id="commitsEnabled" name="commitsEnabled" type="checkbox" /> Auto Commit - </label> - </div> - {{/unless}} - <div class="checkbox"> - <label> - <input name="isPublicRepo" type="checkbox" checked="checked" id="public_check" /> This is a public repository - </label> - </div> - </div> - <div id="credential_container" style="display: none;padding-left:20px;margin-left:20px; background: #efefef;padding-bottom:10px;margin-bottom:10px;"> - <h2>Provide Credentials</h2> - <div class="form-group"> - <label class="required">Username:</label> - <div class="form-inline"> - <input name="repoUsername" class="required form-control input-xlarge" placeholder="username"/> - </div> - </div> - <div class="form-group"> - <label class="required">Password:</label> - <div class="form-inline"> - <input name="repoPassword" type="password" class="required form-control input-xlarge" placeholder="******"/> - </div> - </div> - </div> - {{/if}} - {{else}} - <div class="form-group"> - <label class="required">Repo URL:</label> - <div class="form-inline"> - <input name="repoURL" - type="text" - class="form-control input-xlarge js-help" - data-help="Specify a repository URL of the artifacts." - data-help-x-offset="50" - data-help-y-offset="10" - placeholder="https://github.com/test/mytestphp.git" /> - </div> - {{#unless cartridge.multiTenant}} - <div class="checkbox"> - <label> - <input id="commitsEnabled" name="commitsEnabled" type="checkbox" /> Auto Commit - </label> - </div> - {{/unless}} - <div class="checkbox"> - <label> - <input name="isPublicRepo" type="checkbox" checked="checked" id="public_check" /> This is a public repository - </label> - </div> - </div> - <div id="credential_container" style="display: none;padding-left:20px;margin-left:20px; background: #efefef;padding-bottom:10px;margin-bottom:10px;"> - <h2>Provide Credentials</h2> - <div class="form-group"> - <label class="required">Username:</label> - <div class="form-inline"> - <input name="repoUsername" class="required form-control input-xlarge" placeholder="username"/> - </div> - </div> - <div class="form-group"> - <label class="required">Password:</label> - <div class="form-inline"> - <input name="repoPassword" type="password" class="required form-control input-xlarge" placeholder="******"/> - </div> - </div> - </div> - {{/ifCond}} - - {{/ifCond}} - - - {{#if cartridge.multiTenant}} - <input type="hidden" value="{{mtServiceInfo.autoscalingPolicyName}}" name="autoscalePolicy" /> - <input type="hidden" value="{{mtServiceInfo.deploymentPolicyName}}" name="deploymentPolicy" /> - {{else}} - <div class="form-group"> - <label class="required">Autoscale Policy:</label> - <div class="form-inline"> - <select - name="autoscalePolicy" - class="form-control input-xlarge js-help" - data-help="Please choose a applicable autoscaling policy for the subscription." - data-help-x-offset="50" - data-help-y-offset="10" - > - - {{#if cartridge.defaultAutoscalingPolicy}} - <option>{{cartridge.defaultAutoscalingPolicy}}</option> - {{else}} - {{#each autoScalePolicies}} - <option>{{id}}</option> - {{/each}} - {{/if}} - - - </select> - </div> - </div> - <div class="form-group"> - <label class="required">Deployment Policy:</label> - <div class="form-inline"> - <select - name="deploymentPolicy" - class="form-control input-xlarge js-help" - data-help="Please choose a applicable deployment policy for the subscription.." - data-help-x-offset="50" - data-help-y-offset="10" - > - - {{#if cartridge.defaultDeploymentPolicy}} - <option>{{cartridge.defaultDeploymentPolicy}}</option> - {{else}} - {{#each deploymentPolicies}} - <option>{{id}}</option> - {{/each}} - {{/if}} - - - </select> - </div> - </div> - - {{/if}} - - {{#if cartridge.persistence.persistanceRequired}} - {{#unless cartridge.multiTenant}} - - <div class="form-group"> - <label class="required">Persistent Storage:</label> - <label> - <input name="persistencerequired" type="checkbox" id="volume_check"/> Require Persistent Storage - </label> - </div> - <div id="persistence_container" style="display: none;padding-left:20px;margin-left:20px; background: #efefef;padding-bottom:10px;margin-bottom:10px;"> - <div class="form-group"> - <label class="required">Size(GB):</label> - </div> - <div class="form-group"> - <div class="form-inline"> - <input name="size" class="form-control input-xlarge" placeholder="10"/> - </div> - </div> - <div class="form-group"> - <label> - <input name="removeOnUnsubscription" type="checkbox" id="volume_check" />Remove On Unsubscription - </label> - </div> - </div> - {{/unless}} - {{/if}} - - - <button type="submit" class="btn btn-primary">Subscribe to Cartridge</button> - </form> - </div> - </div> -</div> -<script> - - $(function(){ - $('.js-help') - .focus( - function () { - var $input = $(this); - var bubbleLeft = $input.offset().left + $input.width(); - var bubbleTop = $input.offset().top - $input.height() / 2; - $('#speech_bubble_container p').html($input.attr('data-help')); - bubbleLeft += parseInt($input.attr('data-help-x-offset')); - bubbleTop += parseInt($input.attr('data-help-y-offset')); - var bubbleWidth = Math.floor($(document).width() - bubbleLeft - 105); - $('#speech_bubble_container').css({'width': bubbleWidth + "px"}).show('fast').css({"position": "absolute", "left": bubbleLeft + "px", "top": bubbleTop + "px"}); - console.info(Math.floor(bubbleWidth)); - } - ).blur( - function () { - $('#speech_bubble_container').hide(); - }); - - var $public_check = $('#public_check'); - var $commitsEnabled = $('#commitsEnabled'); - - var toggleCredentials = function(){ - if($public_check.is(':checked')){ - $('#credential_container').hide(); - }else{ - $('#credential_container').show(); - } - }; - - $public_check.prop("checked",true); - $commitsEnabled.prop("checked",false); - - $public_check.click(function(){ - toggleCredentials(); - }); - $commitsEnabled.click(function(){ - toggleCredentials(); - }); - - - - var $volume_check = $('#volume_check'); - - if($volume_check.is(':checked')){ - $('#volume_check').prop("checked",false); - } - $volume_check.click(function(){ - $('#persistence_container').toggle($volume_check.checked); - }); - $( "#subscribeCartridgeForm" ).validate(); - }); - -</script> http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/partials/tenant_management.hbs ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/tenant_management.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/partials/tenant_management.hbs deleted file mode 100644 index e34a404..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/tenant_management.hbs +++ /dev/null @@ -1,85 +0,0 @@ -<!-- - - 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. - ---> - -<div class="container content-starter responsive-gap-maker"> - <div class="row"> - <div class="col-lg-12"> - <h1>{{title}}</h1> - </div> - </div> -</div> -{{#if tenants}} -<div class="container"> - - <div class="row"> - <div class="col-md-12"> - <div class="table-responsive"> - <table class="table table-striped"> - <thead> - <tr> - <th> <input type="checkbox" id="checkAll"/></th> - <th>State:</th> - <th>Domain:</th> - <th>Email:</th> - <th> - Created: - <div>DD Mon YY - HH:MM</div> - </th> - </tr> - </thead> - <tbody> - {{#each tenants}} - <tr> - <td><input value="{{tenantDomain}}" type="checkbox" class="js_domainCheck" /></td> - <td><a title="Click to {{#if active}}}deactivate{{else}}activate{{/if}}" onclick="manage_one('{{#if active}}}deactivate{{else}}activate{{/if}}',this)" data-domain="{{tenantDomain}}"><i class="fa {{#if active}}}icons-reload green-check{{else}}icons-exclamation-circle orange-check{{/if}}"></i></a></td> - <td><a>{{tenantDomain}}</a></td> - <td>{{email}}</td> - <td>{{createdDate}}</td> - </tr> - {{/each}} - </tbody> - </table> - </div> - - - - - </div> - </div> -</div> -{{else}} -<div class="container"> - <div class="row"> - <div class="col-lg-12"> - <div class="alert alert-info alert-empty-page"> - <strong>There are no tenants created yet.</strong>{{#isAllowed "tenant-mgt"}} Go to <a href="{{url "/tenant_new.jag"}}">Add New Tenant</a> page to start. {{/isAllowed}} - </div> - </div> - </div> -</div> -{{/if}} - -<form action="{{url "/controllers/manageTenants.jag"}}" id="manageTenantsForm"> -<input type="hidden" value="" id="foo" name="foo" /> -<input type="hidden" value="" id="state" name="state" /> -</form> -<script src="{{url "/themes/theme1/ui/js/utils.js"}}"></script> -<script src="{{url "/themes/theme1/ui/js/tenant_management.js"}}"></script> http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/partials/tenant_new.hbs ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/tenant_new.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/partials/tenant_new.hbs deleted file mode 100644 index a8ef6c0..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/tenant_new.hbs +++ /dev/null @@ -1,99 +0,0 @@ -<!-- - - 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. - ---> - -<div class="container content-starter"> - <div class="row"> - <div class="col-lg-12"> - <h1>{{title}}</h1> - </div> - </div> -</div> -<div class="container"> - <div class="row"> - <div class="col-md-12"> - <form method="post" action="{{url "/controllers/newTenantSubmit.jag" }}" id="newTenantForm"> - <div class="h2-wrapper"><h2>Domain Information</h2></div> - <label class="required">Domain:</label> - <div class="form-inline"><input name="tenantDomain" id="tenantDomain" type="text" class="required" placeholder="example.com"/> <button class="btn btn-default" onclick="checkAvailability()" type="button">Check Availability</button></div> - <div id="domainMessage"></div> - <label><input type="checkbox"/> Validate the domain now (Optional)</label> - - <div class="h2-wrapper"><h2>Usage Plan Information</h2></div> - <label class="required">Select usage plan:</label> - <select> - <option>Enterprise</option> - <option>Demo</option> - </select> - <!--<a>More Info</a>--> - - <div class="h2-wrapper"><h2>Contact Details</h2></div> - - <div class="col-md-3 padding-remover-left"> - <label class="required">First Name:</label> - <input class="required" name="firstName" type="text"/> - </div> - <div class="col-md-3"> - <label>Last Name:</label> - <input name="lastName" type="text"/> - </div> - <div class="clearfix"></div> - <label class="required">Admin User Name:</label> - <input class="required" name="adminName" type="text"/> - <div class="clearfix"></div> - - <div class="col-md-3 padding-remover-left"> - <label class="required">Admin Password:</label> - <input class="required" name="adminPassword" id="adminPassword" type="password"/> - </div> - <div class="col-md-3"> - <label class="required">Admin Password (Repeat):</label> - <input class="required" name="adminPassword_again" id="adminPassword_again" type="password"/> - </div> - - <div class="clearfix"></div> - <label class="required">Email:</label> - <input class="required email" name="email" type="text"/> -<!-- - <label class="required">Are you human?</label> - <div style="padding-bottom:10px;"><i class="icons-help icons-small-size"></i> Type the characters you see in the picture below.</div> - <div class="clearfix"></div> - <input type="text"/>--> -<!-- - - <div class="h2-wrapper"><h2>Terms of Use</h2></div> - <div class="terms-of-use">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas condimentum eros nec risus pretium, at lobortis nulla vulputate. Duis et cursus justo, vel fermentum neque. Praesent bibendum turpis vel tincidunt sollicitudin. Integer nibh est, pretium nec nunc vitae, auctor pharetra elit. Fusce at ornare sapien.</div> - - <label for="terms_of_use" class="checkbox terms-of-use-check"> - <input type="checkbox" class="checkbox" id="terms_of_use" name="terms_of_use" required minlength="1"> - I agree - </label> ---> - - - <div class="clearfix"></div> - <button class="btn btn-primary" type="submit">Add new Tenant</button> - </form> - - </div> - </div> -</div> -<script src="{{url "/themes/theme1/ui/js/utils.js"}}"></script> -<script src="{{url "/themes/theme1/ui/js/tenant_management.js"}}"></script> http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/partials/title.hbs ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/title.hbs b/components/org.apache.stratos.manager.console/console/themes/theme1/partials/title.hbs deleted file mode 100644 index d6cb75e..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/partials/title.hbs +++ /dev/null @@ -1,22 +0,0 @@ -<!-- - - 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. - ---> - -<title>{{title}}</title> http://git-wip-us.apache.org/repos/asf/stratos/blob/6aabe7d9/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/account_recovery.js ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/account_recovery.js b/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/account_recovery.js deleted file mode 100644 index 5e2ba52..0000000 --- a/components/org.apache.stratos.manager.console/console/themes/theme1/renderers/account_recovery.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * - * 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. - * -*/ - -var render = function (theme, data, meta, require) { - theme('index', { - body: [ - { - partial: 'account_recovery', - context: data.profile - } - ], - header: [ - { - partial: 'header', - context:{ - title:'Account Recovery', - accountRecovery:true, - breadcrumb:[ - {link:'/', name:'Home',isLink:true}, - {link:'', name:'Account Recovery',isLink:false} - ] - } - } - ] - }); -};
