Add table with automatic neighbor relation data
[portal/ric-dashboard.git] / webapp-frontend / src / app / anr-xapp / anr-edit-ncr-dialog.component.html
diff --git a/webapp-frontend/src/app/anr-xapp/anr-edit-ncr-dialog.component.html b/webapp-frontend/src/app/anr-xapp/anr-edit-ncr-dialog.component.html
new file mode 100644 (file)
index 0000000..7f22819
--- /dev/null
@@ -0,0 +1,53 @@
+<!--
+  ========================LICENSE_START=================================
+  O-RAN-SC
+  %%
+  Copyright (C) 2019 AT&T Intellectual Property and Nokia
+  %%
+  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.
+  ========================LICENSE_END===================================
+  -->
+
+<div mat-dialog-title>
+    Edit Neighbor Cell Relation
+</div>
+
+<form [formGroup]="ncrDialogForm" novalidate autocomplete="off" (ngSubmit)="modifyNcr(ncrDialogForm.value)">
+  <div mat-dialog-content>
+    <mat-form-field class="input-display-block">
+      <input matInput readonly type="text" placeholder="Serving cell NRCGI" formControlName="servingCellNrcgi">
+    </mat-form-field>
+    <mat-form-field class="input-display-block">
+      <input matInput readonly type="text" placeholder="Neighbor cell NRPCI" formControlName="neighborCellNrpci">
+    </mat-form-field>
+    <mat-form-field class="input-display-block">
+      <input matInput type="text" placeholder="Neighbor cell NRCGI" formControlName="neighborCellNrcgi">
+      <mat-hint align="end">Example: A12345</mat-hint>
+      <mat-error *ngIf="validateControl('neighborCellNrcgi') && hasError('neighborCellNrcgi', 'required')">Neighbor cell identifier is required</mat-error>
+      <mat-error *ngIf="hasError('neighborCellNrcgi', 'pattern')">Valid NRCGI is required</mat-error>
+    </mat-form-field>
+    <div name="flagNoHo">
+        <mat-checkbox formControlName="flagNoHo">Flag No Handover</mat-checkbox>
+    </div>
+    <div name="flagNoXn">
+        <mat-checkbox formControlName="flagNoXn">Flag No Transaction</mat-checkbox>
+    </div>
+    <div name="flagNoRemove">
+      <mat-checkbox formControlName="flagNoRemove">Flag No Remove</mat-checkbox>
+    </div>
+</div>
+  <div mat-dialog-actions class="modal-footer justify-content-center">
+    <button class="mat-raised-button" (click)="onCancel()">Cancel</button>
+    <button class="mat-raised-button mat-primary" [disabled]="!ncrDialogForm.valid">Save</button>
+  </div>
+</form>