Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

items: display items notes #278

Merged
merged 1 commit into from
Jun 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
<a [routerLink]="['/records', 'items', 'detail', item.metadata.pid]">
{{ item.metadata.barcode }}
</a>
<span class="float-right text-warning small pt-1" *ngIf="item.metadata.notes && item.metadata.notes.length > 0">
<i class="fa fa-sticky-note-o pr-1"></i>{{ item.metadata.notes.length }}
</span>
</div>
<div class="col-sm-2">
{{ item.metadata.status | translate }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,20 @@ <h1>{{ 'Barcode' | translate }} {{ record.metadata.barcode }}</h1>
</dl>
</section>

<section *ngIf="record.metadata.notes">
<div class="card item-notes">
<div class="card-header" translate>Notes</div>
<div class="card-body">
<div class="row mb-3" *ngFor="let note of record.metadata.notes">
<div class="col-12">
<strong translate>{{ note.type }}</strong>
</div>
<div class="offset-1 col-11 text-justify">{{ note.content }}</div>
</div>
</div>
</div>
</section>

<!-- TRANSACTIONS -->
<admin-item-transactions [item]="record"></admin-item-transactions>
</ng-container>