b5cedc7cf87a08819251bb05ea932278af6bade5
[portal/ric-dashboard.git] / webapp-frontend / src / app / anr-xapp / anr-edit-ncr-dialog.component.html
1 <!--
2   ========================LICENSE_START=================================
3   O-RAN-SC
4   %%
5   Copyright (C) 2019 AT&T Intellectual Property and Nokia
6   %%
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ========================LICENSE_END===================================
19   -->
20
21 <div mat-dialog-title>
22     Edit Neighbor Cell Relation
23 </div>
24
25 <form [formGroup]="ncrDialogForm" novalidate autocomplete="off" (ngSubmit)="modifyNcr(ncrDialogForm.value)">
26   <div mat-dialog-content>
27     <mat-form-field class="input-display-block">
28       <input matInput readonly type="text" placeholder="Serving cell NRCGI" formControlName="servingCellNrcgi">
29     </mat-form-field>
30     <mat-form-field class="input-display-block">
31       <input matInput readonly type="text" placeholder="Neighbor cell NRPCI" formControlName="neighborCellNrpci">
32     </mat-form-field>
33     <mat-form-field class="input-display-block">
34       <input matInput type="text" placeholder="Neighbor cell NRCGI" formControlName="neighborCellNrcgi">
35       <mat-hint align="end">Example: A12345</mat-hint>
36       <mat-error *ngIf="validateControl('neighborCellNrcgi') && hasError('neighborCellNrcgi', 'required')">Neighbor cell identifier is required</mat-error>
37       <mat-error *ngIf="hasError('neighborCellNrcgi', 'pattern')">Valid NRCGI is required</mat-error>
38     </mat-form-field>
39     <div name="flagNoHo">
40         <mat-checkbox formControlName="flagNoHo">Flag No Handover</mat-checkbox>
41     </div>
42     <div name="flagNoXn">
43         <mat-checkbox formControlName="flagNoXn">Flag No Xn</mat-checkbox>
44     </div>
45     <div name="flagNoRemove">
46       <mat-checkbox formControlName="flagNoRemove">Flag No Remove</mat-checkbox>
47     </div>
48 </div>
49   <div mat-dialog-actions class="modal-footer justify-content-center">
50     <button class="mat-raised-button" (click)="onCancel()">Cancel</button>
51     <button class="mat-raised-button mat-primary" [disabled]="!ncrDialogForm.valid">Save</button>
52   </div>
53 </form>