added svcapi ui and camunda code
[it/otf.git] / otf-frontend / client / src / app / layout / test-instances-catalog / test-instances-catalog.component.pug
1 //-  Copyright (c) 2019 AT&T Intellectual Property.                             #\r
2 //-                                                                             #\r
3 //-  Licensed under the Apache License, Version 2.0 (the "License");            #\r
4 //-  you may not use this file except in compliance with the License.           #\r
5 //-  You may obtain a copy of the License at                                    #\r
6 //-                                                                             #\r
7 //-      http://www.apache.org/licenses/LICENSE-2.0                             #\r
8 //-                                                                             #\r
9 //-  Unless required by applicable law or agreed to in writing, software        #\r
10 //-  distributed under the License is distributed on an "AS IS" BASIS,          #\r
11 //-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #\r
12 //-  See the License for the specific language governing permissions and        #\r
13 //-  limitations under the License.                                             #\r
14 //- #############################################################################\r
15 \r
16 \r
17 div([@routerTransition]).mb-3\r
18   \r
19   .row\r
20     .col\r
21       app-page-header.pull-left([heading]="'Test Instances'", [icon]="'fa-edit'")\r
22       button.mr-2.pull-right(mat-raised-button, color="primary", (click)="createTestInstance()") New\r
23 \r
24 \r
25 \r
26   .row\r
27     .col.mt-2\r
28       //- Delete\r
29       button.mr-2.pull-right(color="primary", matTooltip="Delete Test Instance", mat-icon-button, (click)="deleteMultipleTestInstance()", [disabled]="(!hasSelectedRows)") \r
30         mat-icon delete_forever\r
31       //- Clone\r
32       button.mr-2.pull-right(color="primary", matTooltip="Clone Test Instance", mat-icon-button, (click)="cloneTestInstance()", [disabled]="(!selectedSingleRow)") \r
33         mat-icon insert_drive_file\r
34       //- Edit\r
35       button.mr-2.pull-right(color="primary", matTooltip="Edit Test Instance", mat-icon-button, (click)="editTestInstance()", [disabled]="(!selectedSingleRow)")\r
36         mat-icon edit\r
37       //- Execute\r
38       button.mr-2.pull-right(color="primary", matTooltip="Execute Test Instance", mat-icon-button, (click)="executeMultipleTestInstance()", *ngIf="(selectedUnlockedRows)")\r
39         mat-icon play_circle_outline\r
40       //- Schedule\r
41       button.mr-2.pull-right(color="primary", matTooltip="Schedule Test Instance", mat-icon-button, (click)="schedule()", *ngIf="(selectedUnlockedRows && selectedSingleRow)")\r
42         mat-icon date_range\r
43 \r
44 \r
45   .row\r
46     .col-md\r
47       ag-grid-angular.ag-theme-material(\r
48         style="width:100%; height: 600px",\r
49         [rowData]="rowData",\r
50         [columnDefs]="columnDefs",\r
51         rowSelection="multiple",\r
52         [rowMultiSelectWithClick]="true",\r
53         (rowSelected)="onRowSelected($event)",\r
54         (gridReady)="onGridReady($event)", \r
55         [singleClickEdit]="true",\r
56         [gridOptions]="gridOptions",\r
57         (rowDataChanged)="selectActiveInstance($event)"\r
58         )\r
59 \r
60     .col-md-3(*ngIf="selectedSingleRow")\r
61       h1 Executions\r
62       div(*ngFor = "let ti of rowData")\r
63         app-test-instance-expanded-details(*ngIf="ti._id == selectedRows[0]._id", [testInstanceId]="selectedRows[0]._id")\r
64 \r
65 \r
66         \r
67 \r
68    \r
69 \r
70 \r
71 \r
72 \r