Merge "CI: add new test cases into CI so they can have result"
[yardstick.git] / gui / app / views / taskmodify.html
1 <div class="content">
2     <i class="fa fa-arrow-left fa-1x" aria-hidden="true" style="color: #999;cursor:pointer" ng-click="goBack()">Back</i>
3     <h4>Modify </h4>
4
5     <hr/>
6
7     <div>
8         <div style="display:inline">Name <input type="text" ng-model="taskDetailData.name" style="width:200px" /></div>
9
10         <button class="btn btn-default" ng-click="runAtask()" style="float:right;margin-right:10px;">Run</button>
11     </div>
12     <hr/>
13
14     <div bs-tabs>
15         <div data-title="Environment" bs-pane>
16             <div style="margin-top:10px">
17                 <div style="display:inline">Choose Environment : {{envName}}</div>
18                 <button class="btn btn-default" style="display:inline;float:right;margin-right:10px;margin-top: -4px;" ng-click="addEnvToTask()">Confirm</button>
19             </div>
20             <hr />
21             <div dir-paginate="env in environmentList | orderBy:'-id' | itemsPerPage: 10 ">
22                 <div style="display:flex;flex-direction:row;justify-content:space-between;padding:8px;border-top: 1px solid #e9ecec;" ng-class="{deepColor: $index%2==0}">
23                     <div> {{env.name}}</div>
24                     <!--<button class="btn btn-default btn-sm" ng-click="gotoDetail('false',env.uuid)">detail</button>-->
25                     <span class="glyphicon glyphicon-check" aria-hidden="true" ng-click="constructTestSuit(env.uuid,env.name)" ng-show="selectEnv==env.uuid"></span>
26                     <span class="glyphicon glyphicon-unchecked" aria-hidden="true" ng-click="constructTestSuit(env.uuid,env.name)" ng-show="selectEnv!=env.uuid"></span>
27
28                 </div>
29                 <!--<hr style="margin-top:5px;margin-bottom:5px;" />-->
30             </div>
31             <center>
32                 <dir-pagination-controls></dir-pagination-controls>
33             </center>
34
35         </div>
36         <div data-title="Content" bs-pane>
37             <div style="margin-top:10px;">
38                 <button class="btn btn-default" ng-click="changeStatussourceFalse()">Modify Content</button>
39                 <button class="btn btn-default" ng-click="changeStatussourceTrue()">Modify Source</button>
40                 <div class="label-type" ng-show="taskDetailData.suite==false"> Test Case</div>
41                 <div class="label-type" ng-show="taskDetailData.suite==true"> Test Suite</div>
42                 <button class="btn btn-default" style="float:right" ng-disabled="sourceShow==null" ng-click="confirmToServer(contentInfo,taskDetailData.content)">Confirm</button>
43             </div>
44
45
46             <textarea ng-model="taskDetailData.content" ng-show="sourceShow==false" style="margin-top:5px;" spellcheck="false">
47
48
49             </textarea>
50
51             <div ng-show="sourceShow==true">
52                 <div style="display:flex;flex-direction:row">
53                     <div style="margin-top:20px;">Source of Content</div>
54
55
56                     <select ng-model="selectType" ng-change="triggerContent(selectType)" data-ng-options="blisterPackTemplate as blisterPackTemplate.name for blisterPackTemplate in blisterPackTemplates">
57                   <option value="">Choose...</option>
58             </select>
59
60                 </div>
61
62                 <div style="margin-top:10px" ng-show="selectCase!=null ">
63                     <div style="display:inline">Choose Source : {{selectCase}}</div>
64                     <!--<button class="btn btn-default" style="display:inline;float:right;margin-right:10px;margin-top: -4px;" ng-click="confirmAddCaseOrSuite(contentInfo)">Confirm</button>-->
65                     <button class="btn btn-default" style="display:inline;float:right;margin-right:10px;margin-top: -4px;" ng-click="getTestDeatil()">Edit</button>
66                 </div>
67                 <hr/>
68
69                 <div ng-show="displayTable==true">
70                     <div ng-show="testcaselist.testcases.length!=0 && selectType.name=='Test Case'">
71                         <div dir-paginate="test in testcaselist.testcases | itemsPerPage: 10" pagination-id="testcase">
72                             <div style="display:flex;flex-direction:row;justify-content:space-between;padding:8px;border-top: 1px solid #e9ecec;" ng-class="{deepColor: $index%2==0}">
73                                 <div> {{test.Name}}</div>
74                                 <div style="font-size:10px;">{{test.Description}}</div>
75                                 <span class="glyphicon glyphicon-check" aria-hidden="true" ng-click="constructTestCase(test.Name)" ng-show="selectCase==test.Name"></span>
76                                 <span class="glyphicon glyphicon-unchecked" aria-hidden="true" ng-click="constructTestCase(test.Name)" ng-show="selectCase!=test.Name"></span>
77
78                             </div>
79                             <!--<hr style="margin-top:5px;margin-bottom:5px;" />-->
80                         </div>
81                         <center>
82                             <dir-pagination-controls pagination-id="testcase"></dir-pagination-controls>
83                         </center>
84                     </div>
85
86                     <div ng-show="testsuitlist.length!=0 && selectType.name=='Test Suite'">
87                         <div dir-paginate="suite in testsuitlist | itemsPerPage: 10" pagination-id="testsuite">
88                             <div style="display:flex;flex-direction:row;justify-content:space-between;padding:8px;border-top: 1px solid #e9ecec;" ng-class="{deepColor: $index%2==0}">
89                                 <div> {{suite}}</div>
90
91                                 <span class="glyphicon glyphicon-check" aria-hidden="true" ng-click="constructTestCase(suite)" ng-show="selectCase==suite"></span>
92                                 <span class="glyphicon glyphicon-unchecked" aria-hidden="true" ng-click="constructTestCase(suite)" ng-show="selectCase!=suite"></span>
93
94                             </div>
95                             <!--<hr style="margin-top:5px;margin-bottom:5px;" />-->
96                         </div>
97                         <center>
98                             <dir-pagination-controls pagination-id="testsuite"></dir-pagination-controls>
99                         </center>
100                     </div>
101                 </div>
102
103                 <div ng-show="displayTable==false">
104                     <textarea ng-model="contentInfo" spellcheck="false">
105             </textarea>
106
107
108                 </div>
109             </div>
110
111
112
113
114         </div>
115     </div>
116
117
118 </div>
119 <toaster-container></toaster-container>
120
121
122 <style>
123     input {
124         border-radius: 10px;
125         border: 1px solid #eeeeee;
126         width: 100%;
127         padding: 5px;
128     }
129
130     .deepColor {
131         background-color: #f9f9f9;
132     }
133
134     select {
135         height: 30px;
136         border-radius: 5px;
137         border: 1px solid #e8e8e8;
138         width: 135px;
139         margin-top: 20px;
140         margin-left: 20px;
141     }
142
143     textarea {
144         width: 100%;
145         height: 350px;
146         border-radius: 5px;
147         border: 1px solid #e8e8e8;
148     }
149
150     .label-type {
151         display: inline;
152         background-color: #2ecc71;
153         color: #fff;
154         border-radius: 5px;
155         padding: 3px;
156         font-size: 10px;
157     }
158
159     .content {
160         height: auto;
161     }
162 </style>