mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Move add comment to top of comments list
This commit is contained in:
parent
1d2282df9e
commit
3f536552a6
@ -1,4 +1,16 @@
|
|||||||
<div *ngIf="comments">
|
<div *ngIf="comments">
|
||||||
|
<form [formGroup]="commentForm" class="needs-validation mt-3" novalidate>
|
||||||
|
<div class="form-group">
|
||||||
|
<textarea class="form-control form-control-sm" [class.is-invalid]="newCommentError" rows="3" formControlName="newComment" placeholder="Enter comment" i18n-placeholder required></textarea>
|
||||||
|
<div class="invalid-feedback" i18n>
|
||||||
|
Please enter a comment.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group mt-2 d-flex justify-content-end">
|
||||||
|
<button type="button" class="btn btn-primary btn-sm" [disabled]="networkActive" (click)="addComment()" i18n>Add comment</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
<hr>
|
||||||
<div *ngFor="let comment of comments" class="card border mb-3">
|
<div *ngFor="let comment of comments" class="card border mb-3">
|
||||||
<div class="card-body text-dark">
|
<div class="card-body text-dark">
|
||||||
<p class="card-text">{{comment.comment}}</p>
|
<p class="card-text">{{comment.comment}}</p>
|
||||||
@ -12,17 +24,4 @@
|
|||||||
</btn>
|
</btn>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<hr>
|
|
||||||
<form [formGroup]="commentForm" class="needs-validation" novalidate>
|
|
||||||
<div class="form-group">
|
|
||||||
<textarea class="form-control form-control-sm" [class.is-invalid]="newCommentError" rows="3" formControlName="newComment" placeholder="Enter comment" i18n-placeholder required></textarea>
|
|
||||||
<div class="invalid-feedback" i18n>
|
|
||||||
Please enter a comment.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group mt-2 d-flex justify-content-end">
|
|
||||||
<button type="button" class="btn btn-primary btn-sm" [disabled]="networkActive" (click)="addComment()" i18n>Add comment</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
<hr>
|
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user