X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=it%2Fotf.git;a=blobdiff_plain;f=otf-frontend%2Fclient%2Fsrc%2Fapp%2Flayout%2Ftest-instances-catalog%2Ftest-instances-catalog.component.pug;fp=otf-frontend%2Fclient%2Fsrc%2Fapp%2Flayout%2Ftest-instances-catalog%2Ftest-instances-catalog.component.pug;h=446c892a81fcc25c2a248b694612b47437a1464a;hp=0000000000000000000000000000000000000000;hb=14f6f95c84a4a1fa8774190db4a03fd0214ec55f;hpb=f49bd1efeaaddd4891c1f329b18d8cfb28b3e75b diff --git a/otf-frontend/client/src/app/layout/test-instances-catalog/test-instances-catalog.component.pug b/otf-frontend/client/src/app/layout/test-instances-catalog/test-instances-catalog.component.pug new file mode 100644 index 0000000..446c892 --- /dev/null +++ b/otf-frontend/client/src/app/layout/test-instances-catalog/test-instances-catalog.component.pug @@ -0,0 +1,72 @@ +//- Copyright (c) 2019 AT&T Intellectual Property. # +//- # +//- Licensed under the Apache License, Version 2.0 (the "License"); # +//- you may not use this file except in compliance with the License. # +//- You may obtain a copy of the License at # +//- # +//- http://www.apache.org/licenses/LICENSE-2.0 # +//- # +//- Unless required by applicable law or agreed to in writing, software # +//- distributed under the License is distributed on an "AS IS" BASIS, # +//- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +//- See the License for the specific language governing permissions and # +//- limitations under the License. # +//- ############################################################################# + + +div([@routerTransition]).mb-3 + + .row + .col + app-page-header.pull-left([heading]="'Test Instances'", [icon]="'fa-edit'") + button.mr-2.pull-right(mat-raised-button, color="primary", (click)="createTestInstance()") New + + + + .row + .col.mt-2 + //- Delete + button.mr-2.pull-right(color="primary", matTooltip="Delete Test Instance", mat-icon-button, (click)="deleteMultipleTestInstance()", [disabled]="(!hasSelectedRows)") + mat-icon delete_forever + //- Clone + button.mr-2.pull-right(color="primary", matTooltip="Clone Test Instance", mat-icon-button, (click)="cloneTestInstance()", [disabled]="(!selectedSingleRow)") + mat-icon insert_drive_file + //- Edit + button.mr-2.pull-right(color="primary", matTooltip="Edit Test Instance", mat-icon-button, (click)="editTestInstance()", [disabled]="(!selectedSingleRow)") + mat-icon edit + //- Execute + button.mr-2.pull-right(color="primary", matTooltip="Execute Test Instance", mat-icon-button, (click)="executeMultipleTestInstance()", *ngIf="(selectedUnlockedRows)") + mat-icon play_circle_outline + //- Schedule + button.mr-2.pull-right(color="primary", matTooltip="Schedule Test Instance", mat-icon-button, (click)="schedule()", *ngIf="(selectedUnlockedRows && selectedSingleRow)") + mat-icon date_range + + + .row + .col-md + ag-grid-angular.ag-theme-material( + style="width:100%; height: 600px", + [rowData]="rowData", + [columnDefs]="columnDefs", + rowSelection="multiple", + [rowMultiSelectWithClick]="true", + (rowSelected)="onRowSelected($event)", + (gridReady)="onGridReady($event)", + [singleClickEdit]="true", + [gridOptions]="gridOptions", + (rowDataChanged)="selectActiveInstance($event)" + ) + + .col-md-3(*ngIf="selectedSingleRow") + h1 Executions + div(*ngFor = "let ti of rowData") + app-test-instance-expanded-details(*ngIf="ti._id == selectedRows[0]._id", [testInstanceId]="selectedRows[0]._id") + + + + + + + + +