mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
81 lines
3.2 KiB
HTML
81 lines
3.2 KiB
HTML
<app-page-header title="Settings">
|
|
|
|
</app-page-header>
|
|
|
|
<!-- <p>items per page, documents per view type</p> -->
|
|
<form [formGroup]="settingsForm" (ngSubmit)="saveSettings()">
|
|
|
|
<ul ngbNav #nav="ngbNav" class="nav-tabs">
|
|
<li [ngbNavItem]="1">
|
|
<a ngbNavLink i18n>General settings</a>
|
|
<ng-template ngbNavContent>
|
|
|
|
<h4 i18n>Document list</h4>
|
|
|
|
<div class="form-row form-group">
|
|
<div class="col-md-3 col-form-label">
|
|
<span i18n>Items per page</span>
|
|
</div>
|
|
<div class="col">
|
|
|
|
<select class="form-control" formControlName="documentListItemPerPage">
|
|
<option [ngValue]="10">10</option>
|
|
<option [ngValue]="25">25</option>
|
|
<option [ngValue]="50">50</option>
|
|
<option [ngValue]="100">100</option>
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<h4 i18n>Bulk editing</h4>
|
|
|
|
<app-input-check i18n-title title="Show confirmation dialogs" formControlName="bulkEditConfirmationDialogs" i18n-hint hint="Deleting documents will always ask for confirmation."></app-input-check>
|
|
<app-input-check i18n-title title="Apply on close" formControlName="bulkEditApplyOnClose"></app-input-check>
|
|
|
|
</ng-template>
|
|
</li>
|
|
<li [ngbNavItem]="2">
|
|
<a ngbNavLink i18n>Saved views</a>
|
|
<ng-template ngbNavContent>
|
|
|
|
<div formGroupName="savedViews">
|
|
|
|
<div *ngFor="let view of savedViews" [formGroupName]="view.id" class="form-row">
|
|
<div class="form-group col-4 mr-3">
|
|
<label for="name_{{view.id}}" i18n>Name</label>
|
|
<input type="text" class="form-control" formControlName="name" id="name_{{view.id}}">
|
|
</div>
|
|
|
|
<div class="form-group col-auto mr-3">
|
|
<label for="show_on_dashboard_{{view.id}}" i18n>Appears on</label>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" id="show_on_dashboard_{{view.id}}" formControlName="show_on_dashboard">
|
|
<label class="custom-control-label" for="show_on_dashboard_{{view.id}}" i18n>Show on dashboard</label>
|
|
</div>
|
|
<div class="custom-control custom-switch">
|
|
<input type="checkbox" class="custom-control-input" id="show_in_sidebar_{{view.id}}" formControlName="show_in_sidebar">
|
|
<label class="custom-control-label" for="show_in_sidebar_{{view.id}}" i18n>Show in sidebar</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group col-auto">
|
|
<label for="name_{{view.id}}" i18n>Actions</label>
|
|
<button type="button" class="btn btn-sm btn-outline-danger form-control" (click)="deleteSavedView(view)" i18n>Delete</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div *ngIf="savedViews.length == 0" i18n>No saved views defined.</div>
|
|
|
|
</div>
|
|
|
|
</ng-template>
|
|
</li>
|
|
</ul>
|
|
|
|
<div [ngbNavOutlet]="nav" class="border-left border-right border-bottom p-3 mb-3 shadow"></div>
|
|
|
|
<button type="submit" class="btn btn-primary">Save</button>
|
|
</form> |