summaryrefslogtreecommitdiffstats
path: root/utils/test/testapi/3rd_party/static/testapi-ui/components/results/results.html
blob: 3056e1dbe49686497c68741bc53edbe30156b470 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<h3>{{ctrl.pageHeader}}</h3>
<p>{{ctrl.pageParagraph}}</p>

<div class="result-filters">
    <h4>Filters</h4>
    <div class="row">
        <div class="col-md-3">
            <label for="cpid">Start Date</label>
            <p class="input-group">
                <input type="text" class="form-control"
                    uib-datepicker-popup="{{ctrl.format}}"
                    ng-model="ctrl.startDate" is-open="ctrl.startOpen"
                    close-text="Close" />
                <span class="input-group-btn">
                    <button type="button" class="btn btn-default" ng-click="ctrl.open($event, 'startOpen')">
                        <i class="glyphicon glyphicon-calendar"></i>
                    </button>
                </span>
            </p>
        </div>
        <div class="col-md-3">
            <label for="cpid">End Date</label>
            <p class="input-group">
                <input type="text" class="form-control"
                    uib-datepicker-popup="{{ctrl.format}}"
                    ng-model="ctrl.endDate" is-open="ctrl.endOpen"
                    close-text="Close" />
                <span class="input-group-btn">
                    <button type="button" class="btn btn-default" ng-click="ctrl.open($event, 'endOpen')">
                        <i class="glyphicon glyphicon-calendar"></i>
                    </button>
                </span>
            </p>
        </div>
        <div class="col-md-3" style="margin-top:24px;">
            <button type="submit" class="btn btn-primary" ng-click="ctrl.update()">Filter</button>
            <button type="submit" class="btn btn-primary btn-danger" ng-click="ctrl.clearFilters()">Clear</button>
        </div>
    </div>
</div>

<div cg-busy="{promise:ctrl.authRequest,message:'Loading'}"></div>
<div cg-busy="{promise:ctrl.resultsRequest,message:'Loading'}"></div>

<div ng-show="ctrl.data" class="results-table">
    <table ng-data="ctrl.data.result" ng-show="ctrl.data" class="table table-striped table-hover">
        <thead>
            <tr>
                <th>ID</th>
                <th>Pod</th>
                <th>Project</th>
                <th>Test Case</th>
                <th>Installer</th>
                <th>Version</th>
                <th>Scenario</th>
                <th>Criteria</th>
                <th>Start Date</th>
                <th>Stop Date</th>
            </tr>
        </thead>

        <tbody>
            <tr ng-repeat-start="(index, result) in ctrl.data.results">
                <td>{{ result._id }}</td>
                <td>{{ result.pod_name }}</td>
                <td>{{ result.project_name }}</td>
                <td>{{ result.case_name }}</td>
                <td>{{ result.installer }}</td>
                <td>{{ result.version }}</td>
                <td>{{ result.scenario }}</td>
                <td>{{ result.criteria }}</td>
                <td>{{ result.start_date }}</td>
                <td>{{ result.stop_date }}</td>
            </tr>
            <tr ng-repeat-end=>
            </tr>
        </tbody>
    </table>

    <div class="pages">
        <uib-pagination
            total-items="ctrl.totalItems"
            ng-model="ctrl.currentPage"
            items-per-page="ctrl.itemsPerPage"
            max-size="ctrl.maxSize"
            class="pagination-sm"
            boundary-links="true"
            rotate="false"
            num-pages="ctrl.numPages"
            ng-change="ctrl.update()">
        </uib-pagination>
    </div>
</div>

<div ng-show="ctrl.showError" class="alert alert-danger" role="alert">
    <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
    <span class="sr-only">Error:</span>
    {{ctrl.error}}
</div>