bstlboard-front/src/app/ui/commentform/commentform.ui.html

15 lines
518 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 type="submit" *ngIf="!working" mat-raised-button color="primary" [disabled]="form.invalid">
{{'comment.create' | i18n}}
</button>
</form>