blob: ee87e0ab2702672b9f73091bab6c8742d9af80df (
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
|
<div ng-controller="TestCasesController as testCasesCtrl" class="col-md-12">
<div class="row podsTable" style="vertical-align:middle">
<div class="col-sm-1 pull-right" ng-class="{ 'hidden': ! ((auth.projectNames.length>0) &&
auth.isAuthenticated) }" >
<button type="button" class="btn btn-danger" ng-click="testCasesCtrl.openBatchDeleteModal()">
<i class="fa fa-minus"></i> Delete</button>
</div>
<div class="col-sm-1 pull-right" ng-class="{ 'hidden': ! ((auth.projectNames.length>0) &&
auth.isAuthenticated) }">
<button type="button" class="btn btn-success" ng-click="testCasesCtrl.openCreateModal()">
<i class="fa fa-plus"></i> Create</button>
</div>
</div>
<div class='clo-md-12'>
<div ng-show="testCasesCtrl.showError" class="alert alert-danger" role="alert">
<span class="pull-right"> {{testCasesCtrl.error}}</span>
<span class="glyphicon glyphicon-exclamation-sign pull-right" aria-hidden="true" >Error:</span>
</div>
<div ng-show="testCasesCtrl.showSuccess" class="alert alert-success" role="alert">
<span class="pull-right"> {{testCasesCtrl.successMessage}}</span>
<span class="glyphicon glyphicon-ok pull-right" aria-hidden="true"></span>
</div>
</div>
<div class='clo-md-12' style="padding-right:0px">
<div class="table-responsive">
<table class="table table-bordered table-hover" ng-data="testCasesCtrl.data.testcases">
<thead>
<tr style="
text-align: center;">
<th style="width: 1%;">Bulk Select</th>
<th style="width: 19%;">Name</th>
<th style="width: 20%;">Tier</th>
<th style="width: 20%;">Blocking</th>
<th style="width: 20%;">CI Loop</th>
<th style="width: 20%;" ng-class="{'hidden': ! ((auth.projectNames.length>0) && auth.isAuthenticated)}">Operations</th>
</tr>
</thead>
<tbody>
<tr ng-repeat-start="(index, testcase) in testCasesCtrl.data.testcases" style="padding:9px">
<td>
<div class="text-center">
<input type="checkbox" value="{{project.name}}" ng-model="testCasesCtrl.checkBox[index]" >
</div>
</td>
<td>
<a class="text-info" ng-click="testCasesCtrl.viewTestCase(testcase.name, testcase.project_name)">
{{testcase.name}}
</a>
</td>
<td>{{testcase.tier}}</td>
<td>{{testcase.blocking}}</td>
<td>{{testcase.ci_loop}}</td>
<td ng-class="{'hidden': ! ((auth.projectNames.length>0) && auth.isAuthenticated)}">
<span class="podsTable-col">
<a class="text-warning" ng-click="testCasesCtrl.openUpdateTestModal(testcase.name)" title="Edit">
<i class="fa fa-pencil-square-o"></i></a>
<a class="text-danger" ng-click="testCasesCtrl.openDeleteTestModal(testcase.name)" title="Delete">
<i class="fa fa-trash-o"></i></a>
</span>
</td>
</tr>
<tr ng-repeat-end=>
</tr>
</tbody>
</table>
</div>
</div>
</div>
|