15 lines
504 B
HTML
15 lines
504 B
HTML
<form [formGroup]="form" (ngSubmit)="create()" #formDirective="ngForm">
|
|
|
|
<mat-form-field>
|
|
<mat-label>{{'comment.text' | i18n}}</mat-label>
|
|
<textarea matAutosize matAutosizeMinRows="3" matInput formControlName="text" required></textarea>
|
|
<mat-error *ngIf="hasError('text')">
|
|
{{'comment.text.error' | i18n}}
|
|
</mat-error>
|
|
</mat-form-field>
|
|
|
|
<button *ngIf="!working" mat-raised-button color="primary" [disabled]="form.invalid">
|
|
{{'comment.create' | i18n}}
|
|
</button>
|
|
|
|
</form> |