paperless-ngx/src-ui/src/app/components/dashboard/widgets/upload-file-widget/upload-file-widget.component.html

18 lines
922 B
HTML
Raw Normal View History

<app-widget-frame title="Upload new documents" i18n-title>
2020-11-22 22:35:39 +01:00
2020-12-08 00:45:11 +01:00
<div content>
<form>
<ngx-file-drop dropZoneLabel="Drop documents here or" browseBtnLabel="Browse files" (onFileDrop)="dropped($event)"
2020-12-08 00:45:11 +01:00
(onFileOver)="fileOver($event)" (onFileLeave)="fileLeave($event)" dropZoneClassName="bg-light card"
multiple="true" contentClassName="justify-content-center d-flex align-items-center p-5" [showBrowseBtn]=true
browseBtnClassName="btn btn-sm btn-outline-primary ml-2" i18n-dropZoneLabel i18n-browseBtnLabel>
2020-11-22 22:35:39 +01:00
2020-12-08 00:45:11 +01:00
</ngx-file-drop>
</form>
<div *ngIf="uploadVisible" class="mt-3">
2021-01-02 12:52:10 +01:00
<p i18n>{uploadStatus.length, plural, =1 {Uploading file...} =other {Uploading {{uploadStatus.length}} files...}}</p>
2020-12-08 00:45:11 +01:00
<ngb-progressbar [value]="loadedSum" [max]="totalSum" [striped]="true" [animated]="uploadStatus.length > 0">
</ngb-progressbar>
</div>
</div>
2020-11-22 22:35:39 +01:00
</app-widget-frame>