]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/videos/+video-watch/comment/video-comment-add.component.html
Add avatar in comments
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / comment / video-comment-add.component.html
1 <form novalidate [formGroup]="form" (ngSubmit)="formValidated()">
2 <div class="avatar-and-textarea">
3 <img [src]="getUserAvatarUrl()" alt="Avatar" />
4
5 <div class="form-group">
6 <textarea placeholder="Add comment..." formControlName="text" [ngClass]="{ 'input-error': formErrors['text'] }" #textarea>
7 </textarea>
8 <div *ngIf="formErrors.text" class="form-error">
9 {{ formErrors.text }}
10 </div>
11 </div>
12 </div>
13
14 <div class="submit-comment">
15 <button *ngIf="isAddButtonDisplayed()" [ngClass]="{ disabled: !form.valid }">
16 Post comment
17 </button>
18 </div>
19 </form>