Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
small frontend changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Winkler committed Nov 3, 2020
1 parent ebac10b commit 9f1fe64
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
27 changes: 16 additions & 11 deletions src-ui/src/app/components/dashboard/dashboard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<app-page-header title="Dashboard">
</app-page-header>

<p>... This space for rent</p>
<p>Welcome to paperless!</p>

<div class='row'>
<div class="col-lg">
Expand All @@ -12,19 +12,23 @@ <h4>{{v.viewConfig.title}}</h4>
<table class="table table-striped table-sm">
<thead>
<tr>
<th>Date created</th>
<th scope="col">Document</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let doc of v.documents" routerLink="/documents/{{doc.id}}">
<td>{{ doc.title }}</td>
</tr>
<tr *ngFor="let doc of v.documents" routerLink="/documents/{{doc.id}}">
<td>{{doc.created | date}}</td>
<td>{{doc.title}}<app-tag [tag]="t" *ngFor="let t of doc.tags" class="ml-1"></app-tag>
</tr>
</tbody>
</table>



</ng-container>
<ng-container *ngIf="savedDashboardViews.length == 0">
<h4>Saved views</h4>
<p>This space is reserved to display your saved views. Go to your documents and save a view to have it displayed here!</p>
</ng-container>

</div>
<div class="col-lg">
Expand All @@ -43,16 +47,17 @@ <h4>Upload new Document</h4>
</ngx-file-drop>
</form>
<h5 class="mt-3">Document conumser status</h5>
<div class="card bg-light">
<p>This is what it might look like in the future.</p>
<div class="card bg-light mb-2">
<div class="card-body">
<p class="card-text"><strong>Filename.pdf:</strong> OCR for ger...</p>
<p class="card-text"><strong>Filename.pdf:</strong> Running tesseract on page 4/8...</p>
<p><ngb-progressbar type="info" [value]="50"></ngb-progressbar></p>
</div>
</div>
<div class="card bg-light">
<div class="card bg-light mb-2">
<div class="card-body">
<p class="card-text"><strong>Filename2.pdf:</strong> FAILED: language ITA not found</p>
<p><ngb-progressbar type="danger" [value]="100"></ngb-progressbar></p>
<p class="card-text"><strong>Filename2.pdf:</strong> Completed.</p>
<p><ngb-progressbar type="success" [value]="100"></ngb-progressbar></p>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
</div>

</div>
<small class="form-text text-muted">Hold CTRL to (de)select multiple tags.</small>

</div>
<button type="button" class="btn btn-outline-primary" (click)="saveEditNext()" *ngIf="hasNext()">Save & edit next</button>&nbsp;
<button type="submit" class="btn btn-primary">Save</button>&nbsp;
Expand Down

0 comments on commit 9f1fe64

Please sign in to comment.