]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Enhancement: better boolean custom field display (#7001)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Sat, 15 Jun 2024 16:00:18 +0000 (09:00 -0700)
committerGitHub <noreply@github.com>
Sat, 15 Jun 2024 16:00:18 +0000 (09:00 -0700)
src-ui/src/app/components/common/custom-field-display/custom-field-display.component.html

index 07347f8e0ce74848f1cde4d5b94c10aee6e14a70..812c283e2e51d1d20420e069cdf56f1c516dddb8 100644 (file)
                     }
                 </div>
             }
+            @case (CustomFieldDataType.Boolean) {
+                <div class="d-flex flex-row align-items-center">
+                    <span>{{field.name}}:</span>
+                    <input type="checkbox" id="{{field.name}}" name="{{field.name}}" [checked]="value" value="" class="form-check-input ms-2 mt-0 pe-none">
+                </div>
+            }
             @default {
               <span [ngbTooltip]="nameTooltip">{{value}}</span>
             }