added svcapi ui and camunda code
[it/otf.git] / otf-frontend / client / src / app / layout / virtual-test-heads / virtual-test-head-details / virtual-test-head-details.component.pug
diff --git a/otf-frontend/client/src/app/layout/virtual-test-heads/virtual-test-head-details/virtual-test-head-details.component.pug b/otf-frontend/client/src/app/layout/virtual-test-heads/virtual-test-head-details/virtual-test-head-details.component.pug
new file mode 100644 (file)
index 0000000..fce6e86
--- /dev/null
@@ -0,0 +1,98 @@
+//-  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
+mat-card.mb-3\r
+    mat-card-header \r
+        mat-card-title \r
+            h4(*ngIf="testHead?.testHeadName") {{ testHead.testHeadName }} \r
+        mat-card-subtitle(style="margin-bottom: 0px")\r
+            div(*ngIf="testHead?.testHeadDescription") {{testHead.testHeadDescription }}\r
+    mat-card-content\r
+        .row(*ngIf="testHead")\r
+            .col-sm\r
+                mat-form-field(*ngIf="testHead?.hostname")\r
+                    input(matInput, placeholder="Host Name", type="text", [value]="testHead.hostname", disabled, name="host")\r
+            .col-sm\r
+                mat-form-field(style="width:50px", *ngIf="testHead?.port") \r
+                    input(matInput, placeholder="Port", type="text", [value]="testHead.port", disabled, name="port")\r
+            .col-sm\r
+                mat-form-field(*ngIf="testHead?.resourcePath") \r
+                    input(matInput, placeholder="Resource Path", type="text", [value]="testHead.resourcePath", disabled, name="path")\r
+            .col-sm\r
+                mat-form-field(*ngIf="testHead?.groupId")\r
+                    input(matInput, placeholder="Group", type="text", [value]="testHead.groupId", disabled, name="group")\r
+            .col-sm\r
+                mat-form-field(style="width:50px",*ngIf="testHead?.isPublic != undefined")\r
+                    input(matInput, placeholder="Is Public", type="text", [value]="testHead.isPublic", disabled, name="public")\r
+\r
+div(style="position: relative")\r
+  .row\r
+    .col-12\r
+      .pull-left\r
+        mat-form-field(style="width:110px")\r
+          input(matInput, [matDatepicker]="fromPicker", placeholder="From Date", [(ngModel)]="stats.filters.startDate")\r
+          mat-datepicker-toggle(matSuffix, [for]="fromPicker")\r
+          mat-datepicker(#fromPicker)\r
+        mat-form-field.ml-2(style="width:110px")\r
+          input(matInput, [matDatepicker]="toPicker", placeholder="To Date", [(ngModel)]="stats.filters.endDate")\r
+          mat-datepicker-toggle(matSuffix, [for]="toPicker")\r
+          mat-datepicker(#toPicker)\r
+        button.ml-2(mat-icon-button, (click)="getData()") \r
+          mat-icon arrow_forward\r
+          \r
+      .pull-right\r
+        mat-form-field\r
+          input(matInput, [ngModel]="totalExecutions", placeholder="Total Executions", disabled)\r
+\r
+  .row\r
+    .col-12\r
+      mat-card\r
+        mat-card-content\r
+          app-test-head-executions-line-chart(*ngIf="testHead", height="201px", [testHeadId]="testHead._id", (total)="setTotalExecutions($event)")\r
+\r
+//-   .row.mt-2\r
+//-     .col-lg-5\r
+//-       mat-card\r
+//-         mat-card-header\r
+//-           mat-card-title \r
+//-             h5 Test Results\r
+//-         mat-card-content\r
+//-           app-pie-chart(height="230px")\r
+    \r
+//-     .col-lg-7\r
+//-       mat-card\r
+//-         mat-card-header\r
+//-           mat-card-title \r
+//-             h5 Test Definition Usage\r
+//-         mat-card-content\r
+//-           app-test-definition-executions-bar-chart(height="230px")\r
+//-   .row.mt-2\r
+    \r
+//-     .col-lg-8\r
+//-       mat-card\r
+//-         mat-card-header\r
+//-           mat-card-title \r
+//-             h5 Virtual Test Head Executions\r
+//-         mat-card-content\r
+//-           app-test-head-executions-line-chart(height="230px")\r
+    \r
+//-     .col-lg-4\r
+//-       mat-card\r
+//-         mat-card-header\r
+//-           mat-card-title \r
+//-             h5 Virtual Test Head Usage\r
+//-         mat-card-content\r
+//-           app-test-head-execution-bar-chart(height="230px")
\ No newline at end of file