added svcapi ui and camunda code
[it/otf.git] / otf-frontend / client / src / app / layout / virtual-test-heads / virtual-test-heads.component.pug
diff --git a/otf-frontend/client/src/app/layout/virtual-test-heads/virtual-test-heads.component.pug b/otf-frontend/client/src/app/layout/virtual-test-heads/virtual-test-heads.component.pug
new file mode 100644 (file)
index 0000000..2c46590
--- /dev/null
@@ -0,0 +1,80 @@
+//-  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])\r
+  app-page-header([heading]="'Virtual Test Heads'", [icon]="'fa-edit'")\r
+  \r
+  .card-mb-12 \r
+    .pull-left\r
+      mat-form-field\r
+        input(matInput, name="filter", (keyup)="applyFilter($event.target.value)", placeholder="Filter")\r
+    .pull-right\r
+      button(mat-raised-button, color="primary", (click)="createTestHead()") New\r
+\r
+    div(style="width: 100%", [hidden]="!loading")\r
+      mat-spinner(style="margin: auto", color="primary")\r
+    \r
+    table.mat-elevation-z8(mat-table, [dataSource]="dataSource", style="width: 100%", [hidden]="loading")\r
+\r
+      ng-container(matColumnDef="name")\r
+        th(mat-header-cell, *matHeaderCellDef) Name\r
+        td(mat-cell, *matCellDef="let element", [routerLink]="['/test-heads', element._id]") {{ element.testHeadName}}\r
+\r
+      ng-container(matColumnDef="description")\r
+        th(mat-header-cell, *matHeaderCellDef) Description\r
+        td(mat-cell, *matCellDef="let element", [routerLink]="['/test-heads', element._id]") {{ element.testHeadDescription}}\r
+\r
+      ng-container(matColumnDef="options")\r
+        th(mat-header-cell, *matHeaderCellDef) Options\r
+        td(mat-cell, *matCellDef="let element")\r
+          button.mr-3(mat-mini-fab, aria-label='Edit', color="primary", (click)='editTestHead(element)')\r
+            i.fa.fa-pencil\r
+          button.text-white(mat-mini-fab, aria-label='Remove', color='warn', (click)='deleteTestHead(element)')\r
+            i.fa.fa-remove\r
+\r
+      tr(mat-header-row, *matHeaderRowDef="displayedColumns")\r
+      tr(mat-row, *matRowDef="let row; columns: displayedColumns")\r
+\r
+    mat-paginator([length]="resultsLength", [pageSizeOptions]="[10, 25, 100]", [hidden]="loading")\r
+\r
+    //.card-body\r
+      .row\r
+        div.col-6\r
+          input.form-control.bg-light.mb-1([(ngModel)]="search.test_head_id", type="text", placeholder="Search...")\r
+        div.col-6\r
+          button.bg-primary.mbtn.pull-right.text-white.mb-1(mat-raised-button, (click)='createTestHead()') Create VTH\r
+      table.table.table-striped([mfData]='data', #mf='mfDataTable', [mfRowsOnPage]='5')\r
+        thead\r
+          tr\r
+            th(style='width: 20%')\r
+              mfDefaultSorter(by='name') Name\r
+            th(style='width: 50%')\r
+              mfDefaultSorter(by='creator') Creator\r
+            th(style='width: 10%')\r
+              mfDefaultSorter(by='date') Date \r
+            th(style='width: 20%') Options   \r
+        tbody\r
+          tr\r
+            td Ping Test Head\r
+            td Tiffany, Patrick \r
+            td 7/21/18\r
+            td \r
+              button.bg-primary.mbtn.text-white.mr-1(mat-mini-fab, aria-label='View', (click)='viewTestHead(null)') \r
+                i.fa.fa-eye\r
+              button.bg-primary.mbtn.text-white.mr-1(mat-mini-fab, aria-label='Edit', (click)='editTestHead()')\r
+                i.fa.fa-pencil\r
+              button.mbtn.text-white(mat-mini-fab, aria-label='Remove', color='warn', (click)='deleteTestHead()')\r
+                i.fa.fa-remove\r