]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/comment/video-comment-add.component.html
Issue #168: youtube-like marking of comments (#297)
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / comment / video-comment-add.component.html
CommitLineData
4635f59d 1<form novalidate [formGroup]="form" (ngSubmit)="formValidated()">
cf117aaa
C
2 <div class="avatar-and-textarea">
3 <img [src]="getUserAvatarUrl()" alt="Avatar" />
4
5 <div class="form-group">
d169c4ad 6 <textarea placeholder="Add comment..." formControlName="text" [ngClass]="{ 'input-error': formErrors['text'] }"
7 (keyup.control.enter)="formValidated()" (keyup.meta.enter)="formValidated()" #textarea>
d7e70384 8
cf117aaa
C
9 </textarea>
10 <div *ngIf="formErrors.text" class="form-error">
11 {{ formErrors.text }}
12 </div>
4635f59d
C
13 </div>
14 </div>
15
16 <div class="submit-comment">
17 <button *ngIf="isAddButtonDisplayed()" [ngClass]="{ disabled: !form.valid }">
18 Post comment
19 </button>
20 </div>
21</form>