+//- Copyright (c) 2019 AT&T Intellectual Property. #\r
+//- #\r
+//- Licensed under the Apache License, Version 2.0 (the "License"); #\r
+//- you may not use this file except in compliance with the License. #\r
+//- You may obtain a copy of the License at #\r
+//- #\r
+//- http://www.apache.org/licenses/LICENSE-2.0 #\r
+//- #\r
+//- Unless required by applicable law or agreed to in writing, software #\r
+//- distributed under the License is distributed on an "AS IS" BASIS, #\r
+//- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #\r
+//- See the License for the specific language governing permissions and #\r
+//- limitations under the License. #\r
+//- #############################################################################\r
+\r
+\r
+div([@routerTransition]).mb-3\r
+ \r
+ .row\r
+ .col\r
+ app-page-header.pull-left([heading]="'Test Instances'", [icon]="'fa-edit'")\r
+ button.mr-2.pull-right(mat-raised-button, color="primary", (click)="createTestInstance()") New\r
+\r
+\r
+\r
+ .row\r
+ .col.mt-2\r
+ //- Delete\r
+ button.mr-2.pull-right(color="primary", matTooltip="Delete Test Instance", mat-icon-button, (click)="deleteMultipleTestInstance()", [disabled]="(!hasSelectedRows)") \r
+ mat-icon delete_forever\r
+ //- Clone\r
+ button.mr-2.pull-right(color="primary", matTooltip="Clone Test Instance", mat-icon-button, (click)="cloneTestInstance()", [disabled]="(!selectedSingleRow)") \r
+ mat-icon insert_drive_file\r
+ //- Edit\r
+ button.mr-2.pull-right(color="primary", matTooltip="Edit Test Instance", mat-icon-button, (click)="editTestInstance()", [disabled]="(!selectedSingleRow)")\r
+ mat-icon edit\r
+ //- Execute\r
+ button.mr-2.pull-right(color="primary", matTooltip="Execute Test Instance", mat-icon-button, (click)="executeMultipleTestInstance()", *ngIf="(selectedUnlockedRows)")\r
+ mat-icon play_circle_outline\r
+ //- Schedule\r
+ button.mr-2.pull-right(color="primary", matTooltip="Schedule Test Instance", mat-icon-button, (click)="schedule()", *ngIf="(selectedUnlockedRows && selectedSingleRow)")\r
+ mat-icon date_range\r
+\r
+\r
+ .row\r
+ .col-md\r
+ ag-grid-angular.ag-theme-material(\r
+ style="width:100%; height: 600px",\r
+ [rowData]="rowData",\r
+ [columnDefs]="columnDefs",\r
+ rowSelection="multiple",\r
+ [rowMultiSelectWithClick]="true",\r
+ (rowSelected)="onRowSelected($event)",\r
+ (gridReady)="onGridReady($event)", \r
+ [singleClickEdit]="true",\r
+ [gridOptions]="gridOptions",\r
+ (rowDataChanged)="selectActiveInstance($event)"\r
+ )\r
+\r
+ .col-md-3(*ngIf="selectedSingleRow")\r
+ h1 Executions\r
+ div(*ngFor = "let ti of rowData")\r
+ app-test-instance-expanded-details(*ngIf="ti._id == selectedRows[0]._id", [testInstanceId]="selectedRows[0]._id")\r
+\r
+\r
+ \r
+\r
+ \r
+\r
+\r
+\r
+\r