mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	bs5: document list table checkboxes
This commit is contained in:
		| @@ -106,7 +106,7 @@ | |||||||
|     </app-document-card-large> |     </app-document-card-large> | ||||||
|   </div> |   </div> | ||||||
|  |  | ||||||
|   <table class="table table-sm border shadow-sm" *ngIf="displayMode == 'details'"> |   <table class="table table-sm align-middle border shadow-sm" *ngIf="displayMode == 'details'"> | ||||||
|     <thead> |     <thead> | ||||||
|       <th></th> |       <th></th> | ||||||
|       <th class="d-none d-lg-table-cell" |       <th class="d-none d-lg-table-cell" | ||||||
| @@ -149,9 +149,9 @@ | |||||||
|     <tbody> |     <tbody> | ||||||
|       <tr *ngFor="let d of list.documents; trackBy: trackByDocumentId" (click)="toggleSelected(d, $event)" [ngClass]="list.isSelected(d) ? 'table-row-selected' : ''"> |       <tr *ngFor="let d of list.documents; trackBy: trackByDocumentId" (click)="toggleSelected(d, $event)" [ngClass]="list.isSelected(d) ? 'table-row-selected' : ''"> | ||||||
|         <td> |         <td> | ||||||
|           <div class="custom-control custom-checkbox"> |           <div class="form-check"> | ||||||
|             <input type="checkbox" class="custom-control-input" id="docCheck{{d.id}}" [checked]="list.isSelected(d)" (click)="toggleSelected(d, $event)"> |             <input type="checkbox" class="form-check-input" id="docCheck{{d.id}}" [checked]="list.isSelected(d)" (click)="toggleSelected(d, $event)"> | ||||||
|             <label class="custom-control-label" for="docCheck{{d.id}}"></label> |             <label class="form-check-label" for="docCheck{{d.id}}"></label> | ||||||
|           </div> |           </div> | ||||||
|         </td> |         </td> | ||||||
|         <td class="d-none d-lg-table-cell"> |         <td class="d-none d-lg-table-cell"> | ||||||
|   | |||||||
| @@ -44,3 +44,13 @@ $paperless-card-breakpoints: ( | |||||||
|     top: 3.5rem; // height of navbar |     top: 3.5rem; // height of navbar | ||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | .table .form-check { | ||||||
|  |   padding: 0.2rem; | ||||||
|  |   min-height: 0; | ||||||
|  |   margin-bottom: 0; | ||||||
|  |  | ||||||
|  |   .form-check-input { | ||||||
|  |     margin-left: 0; | ||||||
|  |   } | ||||||
|  | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Michael Shamoon
					Michael Shamoon