]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Move add comment to top of comments list
authorMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Tue, 23 Aug 2022 22:15:34 +0000 (15:15 -0700)
committerMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Wed, 24 Aug 2022 02:22:30 +0000 (19:22 -0700)
src-ui/src/app/components/document-comments/document-comments.component.html

index 107d02623ac284d8423ad5239f8da0bdfaba5015..7e4afa90ad8890a7aeff5c14a6235bebc9b3095a 100644 (file)
@@ -1,4 +1,16 @@
 <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 class="card-body text-dark">
             <p class="card-text">{{comment.comment}}</p>
             </btn>
         </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>