Reorganize dashboard into subfolders
[portal/ric-dashboard.git] / dashboard / webapp-frontend / src / app / ran-control / ran-connection-dialog.component.html
1 <!--
2   ========================LICENSE_START=================================
3   O-RAN-SC
4   %%
5   Copyright (C) 2019 AT&T Intellectual Property
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     Setup RAN Connection
23 </div>
24 <form [formGroup]="ranDialogForm" novalidate autocomplete="off" (ngSubmit)="setupConnection(ranDialogForm.value)">
25   <div mat-dialog-content>
26     <div name="rantype">
27       <label id="request-type-radio-group-label">RAN type:</label>
28       <mat-radio-group aria-label="RAN Type" formControlName="ranType">
29         <mat-radio-button class="ran-type-radio-button" value="endc">EN-DC</mat-radio-button>
30         <mat-radio-button class="ran-type-radio-button" value="x2">X2</mat-radio-button>
31       </mat-radio-group>
32     </div>
33     <mat-form-field class="input-display-block">
34       <input matInput type="text" placeholder="RAN Name" formControlName="ranName">
35       <mat-hint align="end">Example: ABCD123456</mat-hint>
36       <mat-error *ngIf="validateControl('ranName') && hasError('ranName', 'required')">Name is required</mat-error>
37       <mat-error *ngIf="hasError('ranName', 'length')">Valid name is required</mat-error>
38     </mat-form-field>
39     <mat-form-field class="input-display-block">
40       <input matInput type="text" placeholder="IP" formControlName="ranIp">
41       <mat-error *ngIf="validateControl('ranIp') && hasError('ranIp', 'required')">IP is required</mat-error>
42       <mat-error *ngIf="hasError('ranIp', 'pattern')">Valid IP is required</mat-error>
43     </mat-form-field>
44     <mat-form-field class="input-display-block">
45       <input matInput type="text" placeholder="Port" formControlName="ranPort">
46       <mat-error *ngIf="validateControl('ranPort') && hasError('ranPort', 'required')">Port is required</mat-error>
47       <mat-error *ngIf="hasError('ranPort', 'pattern')">Valid port number is required</mat-error>
48     </mat-form-field>
49   </div>
50   <div mat-dialog-actions class="modal-footer justify-content-center">
51     <button class="mat-raised-button" (click)="onCancel()">Cancel</button>
52     <button class="mat-raised-button mat-primary" [disabled]="!ranDialogForm.valid || processing">Connect</button>
53   </div>
54 </form>