
<!--
* 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.
-->
<script type="text/ng-template" id="cubeMigrate.html">
  <div class="modal-header">
    <h4 tooltip="submit">MIGRATE CUBE</h4>
  </div>
  <div class="modal-body" style="background-color: white">
    <div class="row">
      <div class="col-md-8 col-md-offset-2">
        <div class="form-group">
          <b>Target Project Name:</b>
          <br/>
          <p style="color:red;font-size:12px;">You can change the below project name if it's different on Kylin Prod.</p>
          <input type="text" class="form-control" ng-readonly="migrate.lockProjectName" ng-model="migrate.targetProject" />
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-md-8 col-md-offset-2">
        <div class="form-group">
          <div ng-show="migrate.cubeValidate" >
            <b>Cube Validation:</b>
            <br/>
            <button style="height:40px;width:150px;" class="btn btn-info" ng-click="validate()">Validate</button>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="modal-footer">
    <button class="btn btn-success"  ng-disabled="migrate.cubeValidate" ng-click="migrateCube()">Submit</button>
    <button class="btn btn-primary" ng-click="cancel()">Close</button>
  </div>
</script>

<script type="text/ng-template" id="migrateApprove.html">
  <div class="modal-header">
    <h4 tooltip="submit">MIGRATE APPROVE</h4>
  </div>
  <div class="modal-body" style="background-color: white">
    <div class="row">
      <div class="col-md-8 col-md-offset-2">
        <div class="form-group">
          <b>Target Project Name:</b>
          <br/>
          <input type="text" class="form-control" ng-model="migrate.targetProject" value={{migrate.targetProject}}/>
        </div>
      </div>
    </div>
  <div class="modal-footer">
    <button class="btn btn-success" ng-click="migrateApprove()">Approve</button>
    <button class="btn btn-primary" ng-click="cancel()">Close</button>
  </div>
</script>

<script type="text/ng-template" id="migrateReject.html">
  <div class="modal-header">
    <h4 tooltip="submit">MIGRATE REJECT</h4>
  </div>
  <div class="modal-body" style="background-color: white">
    <div class="row">
      <div class="col-md-8 col-md-offset-2">
        <div class="form-group">
          <b>Please enter reject reason:</b>
          <br/>
          <textarea ng-model="migrate.reason" placeholder="Reject Reason..." rows="5" cols="30" class="form-control" style="overflow:scroll"></textarea>
        </div>
      </div>
    </div>
  </div>
  <div class="modal-footer">
    <button class="btn btn-success" ng-click="migrateReject()">Reject</button>
    <button class="btn btn-primary" ng-click="cancel()">Close</button>
  </div>
</script>
