deploy.html 2.3 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
<div layout="column" layout-padding-gt-md layout-align="center center" flex="auto">
18
  <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
      <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>
31 32
        <kd-user-help>
          To learn more,
33
          <a href="http://kubernetes.io/docs/user-guide/ui/" target="_blank" tabindex="-1">
34 35 36
            take the Dashboard Tour <i class="material-icons">open_in_new</i>
          </a>
        </kd-user-help>
37 38
      </kd-help-section>

U
urcan 已提交
39
      <div ng-switch="ctrl.selection">
D
Denis Poisson 已提交
40
        <deploy-from-settings ng-switch-when="Settings" class="md-body-1" name="ctrl.name"
41
            namespaces="ctrl.namespaces" detail="ctrl.detail" form="ctrl.deployForm" protocols="ctrl.protocols">
U
urcan 已提交
42
        </deploy-from-settings>
D
Denis Poisson 已提交
43 44
        <deploy-from-file ng-switch-when="File" class="md-body-1" name="ctrl.name" detail="ctrl.detail"
            form="ctrl.deployForm">
U
urcan 已提交
45 46
        </deploy-from-file>
      </div>
47

B
bryk 已提交
48
      <md-button class="md-raised md-primary kd-deploy-submit-button" type="submit"
49
                 ng-disabled="ctrl.isDeployDisabled()">
50 51
        Deploy
      </md-button>
B
bryk 已提交
52
      <md-button class="md-raised kd-deploy-cancel-button" ng-click="ctrl.cancel()">Cancel</md-button>
53
    </form>
B
bryk 已提交
54 55
  </md-whiteframe>
</div>