You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

17 lines
806 B

  1. <h2 *ngIf="!comment.id">{{'basic.new-comment' | translate}}</h2>
  2. <h2 *ngIf="comment.id">{{'basic.edit-comment' | translate}}</h2>
  3. <div class="spt-form">
  4. <form [formGroup]="commentForm" (ngSubmit)="onSubmit()">
  5. <div class="mb-3">
  6. <label for="message" class="form-label">{{'form.comment' | translate}}:</label>
  7. <input type="text" class="form-control" id="message" formControlName="message" />
  8. <div class="form-text" *ngIf="commentForm.get('message')?.invalid && commentForm.get('message')?.touched">
  9. {{'form.comment' | translate}} {{'form.mandatory' | translate}}.
  10. </div>
  11. </div>
  12. <button type="submit" class="btn btn-primary" [disabled]="commentForm.invalid">{{'form.send' | translate}}</button>
  13. </form>
  14. </div>