Add test of typed policy editor component
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / policy / no-type-policy-instance-dialog / no-type-policy-instance-dialog.component.html
1 <!--
2   ========================LICENSE_START=================================
3   O-RAN-SC
4   %%
5   Copyright (C) 2020 Nordix Foundation
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 class="text-muted logo" fxLayout="row" fxLayoutGap="50px" fxLayoutAlign="space-around center">
22     <div id="instanceInfo" *ngIf="policyInstanceId">[{{this.ric}}] Instance ID: {{policyInstanceId}}</div>
23 </div>
24 <div class="mat-elevation-z8 header row" [ngClass]="{'header-dark': darkMode}">
25     <div class="logo">
26         <img src="assets/oran-logo.png" width="30px" height="30px" style="position: relative; z-index: 50" />
27         <svg class="logo__icon" viewBox="150.3 22.2 1000 50">
28             <text class="logo__text" [ngClass]="{'logo__text-dark': darkMode}" font-size="30" font-weight="600"
29                 letter-spacing=".1em" transform="translate(149 56)">
30                 <tspan *ngIf="!this.policyInstanceId">Create new policy instance of &lt; No type &gt;</tspan>
31             </text>
32         </svg>
33     </div>
34 </div>
35
36 <form [formGroup]="instanceForm" fxLayout="row" fxLayoutAlign="space-around start" fxLayout.lt-sm="column"
37     fxLayoutAlign.lt-sm="flex-start center">
38
39     <mat-card class="card" [ngClass]="{'card-dark': darkMode}">
40         <nrcp-ric-selector *ngIf="!this.policyInstanceId" [instanceForm]="instanceForm"></nrcp-ric-selector>
41         <h4>
42             Properties
43         </h4>
44         <nrcp-no-type-policy-editor [policyJson]="this.policyJson" [instanceForm]="instanceForm"></nrcp-no-type-policy-editor>
45         <div mat-dialog-actions>
46             <button id="closeButton"  mat-raised-button [mat-dialog-close]="false">Close</button>
47             <button id="submitButton" mat-raised-button (click)="this.onSubmit()" class="submitBtn" [disabled]="!instanceForm.valid">
48                 Submit
49             </button>
50         </div>
51     </mat-card>
52 </form>