aboutsummaryrefslogtreecommitdiffstats
path: root/3rd_party/static/testapi-ui/components/results-report/partials/editTestModal.html
blob: 2212dac04a125c6562345682abd11a64eeea5b4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!--
 Copyright (c) 2019 opnfv.

 All rights reserved. This program and the accompanying materials
 are made available under the terms of the Apache License, Version 2.0
 which accompanies this distribution, and is available at
 http://www.apache.org/licenses/LICENSE-2.0
-->

<div class="modal-content">
  <div class="modal-header">
    <button type="button" class="close" aria-hidden="true" ng-click="modal.close()">&times;</button>
    <h4>Edit Test Run Metadata</h4>
    <p>Make changes to your test metadata.</p>
  </div>
  <div class="modal-body">
    <div class="form-group">
      <strong>Publicly Shared:</strong>
      <select ng-model="modal.metaCopy.shared"
              class="form-control">
        <option value="true">Yes</option>
        <option value="">No</option>
      </select>
      <br>
      <strong>Associated Guideline:</strong>
      <select ng-model="modal.metaCopy.guideline"
              ng-options="o as o.slice(0, -5) for o in modal.versionList"
              class="form-control">
        <option value="">None</option>
      </select>
      <br>
      <strong>Associated Target Program:</strong>
      <select ng-model="modal.metaCopy.target"
              class="form-control">
        <option value="">None</option>
        <option value="platform">OpenStack Powered Platform</option>
        <option value="compute">OpenStack Powered Compute</option>
        <option value="object">OpenStack Powered Object Storage</option>
      </select>
      <hr>
      <strong>Associated Product:</strong>
      <select ng-options="product as product.name for product in modal.products | arrayConverter | orderBy: 'name' track by product.id"
              ng-model="modal.selectedProduct"
              ng-change="modal.getProductVersions()"
              class="form-control">
        <option value="">-- No Product --</option>
      </select>

      <span ng-if="modal.productVersions.length">
        <strong>Product Version:</strong>
        <select ng-options="version as version.version for version in modal.productVersions | orderBy: 'version' track by version.id"
                ng-model="modal.selectedVersion"
                class="form-control">
        </select>
      </span>
    </div>
    <div ng-show="modal.showError" class="alert alert-danger" role="alert">
      <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
      <span class="sr-only">Error:</span>
      {{modal.error}}
    </div>
    <div ng-show="modal.showSuccess" class="alert alert-success" role="success">
      <span class="glyphicon glyphicon-ok" aria-hidden="true"></span>
      <span class="sr-only">Success:</span>
      Changes saved successfully.
    </div>
  </div>
  <div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="modal.saveChanges()">Save Changes</button>
    <button class="btn btn-primary" type="button" ng-click="modal.close()">Close</button>
  </div>
</div>