added svcapi ui and camunda code
[it/otf.git] / otf-frontend / client / src / app / layout / scheduling / scheduling.component.pug
diff --git a/otf-frontend/client/src/app/layout/scheduling/scheduling.component.pug b/otf-frontend/client/src/app/layout/scheduling/scheduling.component.pug
new file mode 100644 (file)
index 0000000..c70c807
--- /dev/null
@@ -0,0 +1,52 @@
+//-  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]="'Scheduling'", [icon]="'fa-edit'")\r
+  .card-mb-12\r
+    .card-body\r
+      .row\r
+        div.col-6\r
+          input.form-control.bg-light.mb-1( type="text", placeholder="Search...")\r
+        div.col-6\r
+          button.pull-right.mb-1(mat-raised-button, color="primary", (click)='createSchedule()') Schedule a Test\r
+\r
+      table.mat-elevation-z8.text-center(mat-table, [dataSource]="dataSource", style="width: 100%")\r
+\r
+        ng-container(matColumnDef="name")\r
+          th(mat-header-cell, *matHeaderCellDef) Instance Name\r
+          td(mat-cell, *matCellDef="let element") {{ element.testInstanceName}}\r
+\r
+        ng-container(matColumnDef="description")\r
+          th(mat-header-cell, *matHeaderCellDef)  Date Last Run\r
+          td(mat-cell, *matCellDef="let element") {{ element.lastRunAt }}\r
+\r
+        ng-container(matColumnDef="testDefinition")\r
+          th(mat-header-cell, *matHeaderCellDef) Date Next Run\r
+          td(mat-cell, *matCellDef="let element") {{ element.nextRunAt }}\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='View', color="primary", (click)='viewSchedule(element)')\r
+              i.fa.fa-eye\r
+            button.text-white(mat-mini-fab, aria-label='Remove', color='warn', (click)='deleteSchedule(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]")
\ No newline at end of file