Reorganize dashboard into subfolders
[portal/ric-dashboard.git] / dashboard / webapp-frontend / src / app / ui / instance-selector-dialog / instance-selector-dialog.component.html
1 <!--
2   ========================LICENSE_START=================================
3   O-RAN-SC
4   %%
5   Copyright (C) 2020 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   Select RIC Instance
23 </div>
24 <form [formGroup]="instanceForm" novalidate autocomplete="off" (ngSubmit)="changeInstance(instanceForm.value.instance)">
25   <div mat-dialog-content>
26     <mat-form-field>
27       <mat-label>Select a region</mat-label>
28       <mat-select (selectionChange)="changeRegion($event.value)">
29         <mat-option *ngFor="let region of allRegions" [value]="region">
30           {{region.name}}
31         </mat-option>
32       </mat-select>
33     </mat-form-field>
34   </div>
35   <div mat-dialog-content>
36     <mat-form-field>
37       <mat-label>Select an instance</mat-label>
38       <mat-select formControlName="instance">
39         <mat-option *ngFor="let instance of regionInstances" [value]="instance">
40           {{instance.name}}
41         </mat-option>
42       </mat-select>
43     </mat-form-field>
44   </div>
45   <div mat-dialog-actions class="modal-footer justify-content-center">
46     <button mat-button class="mat-raised-button" [mat-dialog-close]="false">Cancel</button>
47     <button mat-button class="mat-raised-button mat-primary" [disabled]="!instanceForm.valid">OK</button>
48   </div>
49 </form>