14 lines
456 B
HTML
14 lines
456 B
HTML
<form [formGroup]="form" (ngSubmit)="create()" #formDirective="ngForm">
|
|
|
|
<mat-form-field>
|
|
<textarea matInput formControlName="text" placeholder="{{'comment.text' | i18n}}" 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> |