26 lines
992 B
HTML
26 lines
992 B
HTML
<h2>Cleaner Tester</h2>
|
|
|
|
<form [formGroup]="cleanForm" (ngSubmit)="clean()">
|
|
<mat-form-field appearance="fill" floatLabel="always" style="width: 100%;">
|
|
<mat-label>Cleaning rule</mat-label>
|
|
<mat-select matInput formControlName="rule">
|
|
<mat-option *ngFor="let i of rules" [value]="i.name">{{i.name}}</mat-option>
|
|
</mat-select>
|
|
</mat-form-field>
|
|
|
|
<mat-form-field appearance="fill" floatLabel="always" style="width: 50%;">
|
|
<mat-label>Input Record</mat-label>
|
|
<textarea matInput rows="10" formControlName="xmlIn"></textarea>
|
|
</mat-form-field>
|
|
<mat-form-field appearance="fill" floatLabel="always" style="width: 50%;">
|
|
<mat-label>Output Record</mat-label>
|
|
<textarea matInput rows="10" formControlName="xmlOut" readonly></textarea>
|
|
</mat-form-field>
|
|
|
|
<button mat-stroked-button color="primary" type="submit" [disabled]="!cleanForm.valid">Submit</button>
|
|
<mat-error *ngIf="cleanForm.errors?.['serverError']">
|
|
{{ cleanForm.errors?.['serverError'] }}
|
|
</mat-error>
|
|
|
|
</form>
|