deploy.html 2.0 KB
Newer Older
B
bryk 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<!--
Copyright 2015 Google Inc. All Rights Reserved.

Licensed 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.
-->

17 18
<div layout="column" layout-padding layout-align="center center" flex="auto" >
  <md-whiteframe class="kd-deploy-whiteframe md-whiteframe-5dp" flex="auto">
B
bryk 已提交
19
    <h3 class="md-headline kd-deploy-form-title">Deploy a Containerized App</h3>
20

21
    <form name="ctrl.deployForm" ng-submit="ctrl.deployBySelection()" novalidate>
22 23 24 25 26 27 28 29 30 31 32
      <kd-help-section>
        <md-radio-group ng-model="ctrl.selection">
          <md-radio-button value="Settings" class="md-primary">
            Specify app details below
          </md-radio-button>
          <md-radio-button value="File" class="md-primary">
            Upload a YAML or JSON file
          </md-radio-button>
        </md-radio-group>
      </kd-help-section>

U
urcan 已提交
33
      <div ng-switch="ctrl.selection">
D
Denis Poisson 已提交
34
        <deploy-from-settings ng-switch-when="Settings" class="md-body-1" name="ctrl.name"
35
            namespaces="ctrl.namespaces" detail="ctrl.detail" form="ctrl.deployForm" protocols="ctrl.protocols">
U
urcan 已提交
36
        </deploy-from-settings>
D
Denis Poisson 已提交
37 38
        <deploy-from-file ng-switch-when="File" class="md-body-1" name="ctrl.name" detail="ctrl.detail"
            form="ctrl.deployForm">
U
urcan 已提交
39 40
        </deploy-from-file>
      </div>
41

42 43 44 45
      <md-button class="md-raised md-primary" type="submit" ng-disabled="ctrl.isDeployDisabled()">
        Deploy
      </md-button>
      <md-button class="md-raised" ng-click="ctrl.cancel()">Cancel</md-button>
46

47
    </form>
B
bryk 已提交
48 49
  </md-whiteframe>
</div>