27 lines
837 B
HTML
27 lines
837 B
HTML
<div *ngIf="parseFinished" class="language-editor">
|
|
<form (ngSubmit)="updateLang()" [formGroup]="formGroup">
|
|
<div class="row">
|
|
<mat-card class="col-md-8 offset-md-2">
|
|
<mat-card-title><div [innerHTML]="currentLang"></div></mat-card-title>
|
|
<mat-card-content>
|
|
<div *ngFor="let key of keys">
|
|
<mat-form-field >
|
|
<mat-label>{{key}} :</mat-label>
|
|
<textarea matInput class="language-area"
|
|
[formControl]="formGroup.get(key)"
|
|
cdkTextareaAutosize
|
|
#autosize="cdkTextareaAutosize"
|
|
cdkAutosizeMinRows="1"
|
|
cdkAutosizeMaxRows="5"></textarea>
|
|
</mat-form-field >
|
|
</div>
|
|
</mat-card-content>
|
|
</mat-card>
|
|
<button mat-fab class="mat-fab-bottom-right save-btn" type="submit">
|
|
<mat-icon class="mat-24" title="save">save</mat-icon>
|
|
</button>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|