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

circulation: add data into pending/pickup patron profile #601

Merged
merged 1 commit into from
May 12, 2021
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 @@ -16,7 +16,7 @@
-->
<ng-container *ngIf="item; else loading">
<!-- FIRST ROW : barcode, title, availability, action button -->
<div class="col-sm-2">
<div class="col-2">
<button type="button" class="pl-0 pt-0 btn"
(click)="isCollapsed = !isCollapsed"
[attr.aria-expanded]="!isCollapsed"
Expand All @@ -25,7 +25,7 @@
</button>
<a [routerLink]="['/records', 'items', 'detail', item.pid]">{{ item.barcode }}</a>
</div>
<div class="col-sm-6">
<div class="col-6">
<a [routerLink]="['/records', 'documents', 'detail', document.pid]" *ngIf="document.title | mainTitle as title">
{{ title }}
</a><br/>
Expand All @@ -43,8 +43,8 @@
</ul>
</ng-container>
</div>
<div class="col-sm-3">-</div>
<div class="col-sm-1"></div>
<div class="col-2">{{ loan.created | dateTranslate: 'short' }}</div>
<div class="col-2">-<!-- TODO :: display the computed expected_date --></div>
<!-- SECOND ROW : item detail -->
<div class="col-12" *ngIf="!isCollapsed">
<dl class="row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class PendingItemComponent implements OnInit {
) { }

/**
* Init
* OnInit hook
*/
ngOnInit() {
if (this.loan) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<div *ngIf="loans.length > 0; else noRequested">
<!-- HEADER -->
<div class="row p-2 mb-1 bg-dark rounded text-light">
<div class="col-sm-2" translate>Item</div>
<div class="col-sm-6" translate>Title</div>
<div class="col-sm-3" translate>Expected availability</div>
<div class="col-sm-1">&nbsp;</div>
<div class="col-2" translate>Item</div>
<div class="col-6" translate>Title</div>
<div class="col-2" translate>Request date</div>
<div class="col-2" translate>Expected availability</div>
</div>
<div *ngFor="let loan of loans">
<admin-pending-item [loan]="loan" class="row p-2 mb-1 border rounded align-middle"></admin-pending-item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<ng-container *ngIf="item && loan; else loading">
<div class="col-sm-2">
<div class="col-2">
<a [routerLink]="['/records', 'items', 'detail', item.pid]">{{ item.barcode }}</a>
</div>
<div class="col-sm-5">
<div class="col-5">
<a [routerLink]="['/records', 'documents', 'detail', document.pid]" *ngIf="document.title | mainTitle as title">
{{ title }}
</a><br/>
Expand All @@ -36,10 +36,10 @@
</ul>
</ng-container>
</div>
<div class="col-sm-3">
<div class="col-3">
{{ loan.metadata.pickup_location_pid | getRecord: 'locations' : 'field' : 'pickup_name' | async }}
</div>
<div class="col"></div>
<div class="col-2">-<!-- TODO :: display the computed to_pick_up_until_date --></div>
</ng-container>

<ng-template #loading>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<div *ngIf="loans.length > 0; else noPickup">
<!-- HEADER -->
<div class="row p-2 mb-1 bg-dark rounded text-light row">
<div class="col-sm-2" translate>Item</div>
<div class="col-sm-5" translate>Title</div>
<div class="col-sm-3" translate>Pickup location</div>
<div class="col-sm-2">&nbsp;</div>
<div class="col-2" translate>Item</div>
<div class="col-5" translate>Title</div>
<div class="col-3" translate>Pickup location</div>
<div class="col-2" translate>To pick-up until</div>
</div>
<admin-pickup-item *ngFor="let loan of loans" [loan]="loan" class="row p-2 mb-1 border rounded align-middle"></admin-pickup-item>
</div>
Expand Down