mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
47 lines
1.9 KiB
HTML
47 lines
1.9 KiB
HTML
<div class="modal-header">
|
|
<h4 class="modal-title" id="modal-basic-title">{{title}}</h4>
|
|
<button type="button" class="btn-close" aria-label="Close" (click)="cancel()">
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-2 d-flex justify-content-end">
|
|
<button class="btn btn-secondary mt-auto" (click)="rotate(false)">
|
|
<i-bs name="arrow-counterclockwise"></i-bs>
|
|
</button>
|
|
</div>
|
|
<div class="col-8 d-flex align-items-center">
|
|
@if (documentID) {
|
|
<img class="w-75 m-auto" [ngStyle]="{'transform': 'rotate('+rotation+'deg)'}" [src]="documentService.getThumbUrl(documentID)" />
|
|
}
|
|
</div>
|
|
<div class="col-2 d-flex">
|
|
<button class="btn btn-secondary mt-auto" (click)="rotate()">
|
|
<i-bs name="arrow-clockwise"></i-bs>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
@if (showPDFNote) {
|
|
<p class="small text-muted fst-italic mt-4" i18n>Note that only PDFs will be rotated.</p>
|
|
}
|
|
</div>
|
|
<div class="modal-footer flex-nowrap">
|
|
<div class="col">
|
|
@if (message) {
|
|
<p [innerHTML]="message | safeHtml"></p>
|
|
}
|
|
@if (messageBold) {
|
|
<p class="mb-0 small"><b [innerHTML]="messageBold | safeHtml"></b></p>
|
|
}
|
|
</div>
|
|
<button type="button" class="btn" [class]="cancelBtnClass" (click)="cancel()" [disabled]="!buttonsEnabled">
|
|
<span class="d-inline-block" style="padding-bottom: 1px;">{{cancelBtnCaption}}</span>
|
|
</button>
|
|
<button type="button" class="btn" [class]="btnClass" (click)="confirm()" [disabled]="!confirmButtonEnabled || !buttonsEnabled || degrees === 0">
|
|
{{btnCaption}}
|
|
@if (!confirmButtonEnabled) {
|
|
<ngb-progressbar style="height: 1px;" type="dark" [max]="secondsTotal" [value]="seconds"></ngb-progressbar>
|
|
}
|
|
</button>
|
|
</div>
|