Merge "Add yardstick logo in GUI"
[yardstick.git] / gui / app / views / modal / taskCreate.html
1
2 <h4>Create Task</h4>
3 <hr/>
4 <div>
5     <div style="display:inline">Name <input type="text" ng-model="name" style="width:200px" /></div>
6     <button style="display:inline" class="btn btn-default" ng-disabled="name==null || name==''" ng-click="createTask(name)" ng-show="newUUID==null">Create</button>
7 </div>
8 <hr/>
9
10 <div bs-tabs ng-show="newUUID!=null">
11     <div data-title="Environment" bs-pane>
12         <div style="margin-top:10px" ng-show="displayEnvName!=null">
13             <div style="display:inline">Choose Environment : {{displayEnvName}}</div>
14             <button class="btn btn-default" style="display:inline;float:right;margin-right:10px;margin-top: -4px;" ng-click="addEnvToTask()">confirm</button>
15         </div>
16         <hr />
17         <div dir-paginate="env in environmentList | orderBy:'-id' | itemsPerPage: 10 ">
18             <div style="display:flex;flex-direction:row;justify-content:space-between;padding:8px;border-top: 1px solid #e9ecec;" ng-class="{deepColor: $index%2==0}">
19                 <div> {{env.name}}</div>
20                 <!--<button class="btn btn-default btn-sm" ng-click="gotoDetail('false',env.uuid)">detail</button>-->
21                 <img src="images/checkyes.png" style="height:18px;cursor:pointer" ng-click="constructTestSuit(env.uuid,env.name)" ng-show="selectEnv==env.uuid" />
22                 <img src="images/checkno.png" style="height:18px;cursor:pointer" ng-click="constructTestSuit(env.uuid,env.name)" ng-show="selectEnv!=env.uuid" />
23
24             </div>
25             <!--<hr style="margin-top:5px;margin-bottom:5px;" />-->
26         </div>
27         <center>
28             <dir-pagination-controls></dir-pagination-controls>
29         </center>
30
31     </div>
32     <div data-title="Content" bs-pane>
33         <div style="display:flex;flex-direction:row">
34             <div style="margin-top:20px;">Source of Content</div>
35
36
37             <select ng-model="selectType" ng-change="triggerContent(selectType)" data-ng-options="blisterPackTemplate as blisterPackTemplate.name for blisterPackTemplate in blisterPackTemplates">
38     <option value="">Choose...</option>
39             </select>
40
41         </div>
42         <div style="margin-top:10px" ng-show="selectCase!=null">
43             <div style="display:inline">Choose Source: {{selectCase}}</div>
44             <button class="btn btn-default" style="display:inline;float:right;margin-right:10px;margin-top: -4px;" ng-click="confirmAddCaseOrSuite(contentInfo)">Confirm</button>
45             <button class="btn btn-default" style="display:inline;float:right;margin-right:10px;margin-top: -4px;" ng-click="getTestDeatil()">Edit</button>
46         </div>
47         <hr/>
48
49         <div ng-show="displayTable==true">
50             <div ng-show="testcaselist.testcases.length!=0 && selectType.name=='Test Case'">
51                 <div dir-paginate="test in testcaselist.testcases | itemsPerPage: 10" pagination-id="testcase">
52                     <div style="display:flex;flex-direction:row;justify-content:space-between;padding:8px;border-top: 1px solid #e9ecec;" ng-class="{deepColor: $index%2==0}">
53                         <div> {{test.Name}}</div>
54                         <div style="font-size:10px;">{{test.Description}}</div>
55                         <img src="images/checkyes.png" style="height:18px;cursor:pointer" ng-click="constructTestCase(test.Name)" ng-show="selectCase==test.Name" />
56                         <img src="images/checkno.png" style="height:18px;cursor:pointer" ng-click="constructTestCase(test.Name)" ng-show="selectCase!=test.Name" />
57
58                     </div>
59                     <!--<hr style="margin-top:5px;margin-bottom:5px;" />-->
60                 </div>
61                 <center>
62                     <dir-pagination-controls pagination-id="testcase"></dir-pagination-controls>
63                 </center>
64             </div>
65
66             <div ng-show="testsuitlist.length!=0 && selectType.name=='Test Suite'">
67                 <div dir-paginate="suite in testsuitlist | itemsPerPage: 10" pagination-id="testsuite">
68                     <div style="display:flex;flex-direction:row;justify-content:space-between;padding:8px;border-top: 1px solid #e9ecec;" ng-class="{deepColor: $index%2==0}">
69                         <div> {{suite}}</div>
70
71                         <img src="images/checkyes.png" style="height:18px;cursor:pointer" ng-click="constructTestCase(suite)" ng-show="selectCase==suite" />
72                         <img src="images/checkno.png" style="height:18px;cursor:pointer" ng-click="constructTestCase(suite)" ng-show="selectCase!=suite" />
73
74                     </div>
75                     <!--<hr style="margin-top:5px;margin-bottom:5px;" />-->
76                 </div>
77                 <center>
78                     <dir-pagination-controls pagination-id="testsuite"></dir-pagination-controls>
79                 </center>
80             </div>
81         </div>
82
83         <div ng-show="displayTable==false">
84             <textarea ng-model="contentInfo" spellcheck="false">
85
86
87             </textarea>
88
89
90         </div>
91
92
93
94
95     </div>
96 </div>
97
98 <div style="text-align:center;margin-top:20px;">
99     <button class="btn btn-default" ng-click="closeThisDialog()" ng-disabled="newUUID===null || ifHasEnv!=true || (ifHasCase!=true && ifHasSuite!=true)">Close</button>
100     <button class="btn btn-default" ng-disabled="newUUID===null || ifHasEnv!=true || (ifHasCase!=true && ifHasSuite!=true)" ng-click="runAtask(newUUID)">Run</button>
101 </div>
102
103
104 <style>
105     input {
106         border-radius: 10px;
107         border: 1px solid #eeeeee;
108         width: 100%;
109     }
110
111     .deepColor {
112         background-color: #f9f9f9;
113     }
114
115     select {
116         height: 30px;
117         border-radius: 5px;
118         border: 1px solid #e8e8e8;
119         width: 135px;
120         margin-top: 20px;
121         margin-left: 20px;
122     }
123
124     textarea {
125         width: 100%;
126         height: 400px;
127         border-radius: 5px;
128         border: 1px solid #e8e8e8;
129     }
130
131     .deepColor {
132         background-color: #f9f9f9;
133     }
134 </style>