improve dashboard UI
[portal/ric-dashboard.git] / webapp-frontend / src / app / ac-xapp / ac-xapp.component.html
index f8125f5..5b55753 100644 (file)
@@ -2,14 +2,14 @@
   ========================LICENSE_START=================================
   O-RAN-SC
   %%
-  Copyright (C) 2019 AT&T Intellectual Property and Nokia
+  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.
   ========================LICENSE_END===================================
   -->
 <div class="ac__section">
-  <h3 class="ac__header">AC xApp Policy</h3>
+  <h3 class="rd-global-page-title">Admission Control xApp Policy</h3>
 
   <form [formGroup]="acForm" novalidate autocomplete="off" (ngSubmit)="updateAc(acForm.value)">
     <div name="enforce">
       <mat-checkbox formControlName="enforce">Enforce</mat-checkbox>
     </div>
     <mat-form-field class="input-display-block">
-      <input matInput type="text" placeholder="Window length" formControlName="windowLength">
-      <mat-hint align="end">Sliding window length in minutes for measurement, range 1..60.</mat-hint>
-      <mat-error *ngIf="validateControl('windowLength') && hasError('windowLength', 'required')">Number is required
+      <input matInput type="text" placeholder="Traffic class" formControlName="class">
+      <mat-hint align="end">Traffic class ID (1-256)</mat-hint>
+      <mat-error *ngIf="validateControl('window_length') && hasError('window_length', 'required')">Number is required
       </mat-error>
-      <mat-error *ngIf="hasError('windowLength', 'pattern')">Valid number is required</mat-error>
+      <mat-error *ngIf="hasError('window_length', 'pattern')">Valid number is required</mat-error>
     </mat-form-field>
     <mat-form-field class="input-display-block">
-      <input matInput type="text" placeholder="Blocking rate" formControlName="blockingRate">
-      <mat-hint align="end">Connections to block if above trigger threshold, range 1..100.</mat-hint>
-      <mat-error *ngIf="validateControl('blockingRate') && hasError('blockingRate', 'required')">Number is required
+      <input matInput type="text" placeholder="Window length" formControlName="window_length">
+      <mat-hint align="end">Sliding window length in minutes (15-300)</mat-hint>
+      <mat-error *ngIf="validateControl('window_length') && hasError('window_length', 'required')">Number is required
       </mat-error>
-      <mat-error *ngIf="hasError('blockingRate', 'pattern')">Valid number is required</mat-error>
+      <mat-error *ngIf="hasError('window_length', 'pattern')">Valid number is required</mat-error>
     </mat-form-field>
     <mat-form-field class="input-display-block">
-      <input matInput type="text" placeholder="Trigger threshold" formControlName="triggerThreshold">
-      <mat-hint align="end">Number of events in window to trigger blocking, minimum 1.</mat-hint>
-      <mat-error *ngIf="validateControl('triggerThreshold') && hasError('triggerThreshold', 'required')">Number is
+      <input matInput type="text" placeholder="Blocking rate" formControlName="blocking_rate">
+      <mat-hint align="end">Connections to block when triggered (1-100)</mat-hint>
+      <mat-error *ngIf="validateControl('blocking_rate') && hasError('blocking_rate', 'required')">Number is required
+      </mat-error>
+      <mat-error *ngIf="hasError('blocking_rate', 'pattern')">Valid number is required</mat-error>
+    </mat-form-field>
+    <mat-form-field class="input-display-block">
+      <input matInput type="text" placeholder="Trigger threshold" formControlName="trigger_threshold">
+      <mat-hint align="end">Number of events in window to trigger blocking (min 1)</mat-hint>
+      <mat-error *ngIf="validateControl('trigger_threshold') && hasError('trigger_threshold', 'required')">Number is
         required</mat-error>
-      <mat-error *ngIf="hasError('triggerThreshold', 'pattern')">Valid number is required</mat-error>
+      <mat-error *ngIf="hasError('trigger_threshold', 'pattern')">Valid number is required</mat-error>
     </mat-form-field>
     <div class="input-display-block">
       <button class="mat-raised-button mat-primary update-button" [disabled]="!acForm.valid">Update</button>
     </div>
-    <div class="input-display-block">
-      <span class="version__text">AC API version {{acVersion}}</span>
-    </div>
 </form>
 
-</div>
\ No newline at end of file
+</div>