Patron account has invalid addresses.
</div>
- <!-- alert message -->
- <div class="row" *ngIf="alerts().alertMessage">
- <div class="col-lg-6 offset-lg-3">
- <div class="card">
- <div class="card-header" i18n>Alert Message</div>
- <div class="card-body">{{alerts().alertMessage}}</div>
- </div>
- </div>
- </div>
-
<!-- penalties -->
<div class="row" *ngIf="alerts().alertPenalties.length">
<div class="col-lg-12">
{args: {template: fieldInput, field: 'claims_never_checked_out_count', type: 'number'}}">
</ng-container>
- <div class="row pt-1 pb-1 mt-1" *ngIf="showField('au.alert_message')">
- <ng-container
- *ngTemplateOutlet="fieldLabel; context: {args: {field: 'alert_message'}}">
- </ng-container>
- <div class="col-lg-3">
- <textarea
- class="form-control"
- name="au-alert_message-input"
- id="au-alert_message-input"
- [ngModel]="objectFromPath(null, null)['alert_message']()"
- (ngModelChange)="fieldValueChange(null, null, 'alert_message', $event)"
- (change)="afterFieldChange(null, null, 'alert_message')"
- [required]="fieldRequired('au.alert_message')"
- [pattern]="fieldPattern('au', 'alert_message')">
- </textarea>
- </div>
- </div>
-
<div class="alert alert-success pt-2 pb-2 mt-3 mb-3 d-flex">
<div class="m-auto font-weight-bold" i18n>User Settings</div>
</div>
patronInactive = false;
retrievedWithInactive = false;
invalidAddress = false;
- alertMessage: string = null;
alertPenalties: IdlObject[] = [];
hasAlerts(): boolean {
this.patronInactive ||
this.retrievedWithInactive ||
this.invalidAddress ||
- this.alertMessage !== null ||
this.alertPenalties.length > 0
);
}
alerts.patronInactive = patron.active() === 'f';
alerts.invalidAddress = patron.addresses()
.filter(a => a.valid() === 'f').length > 0;
- alerts.alertMessage = patron.alert_message();
alerts.alertPenalties = patron.standing_penalties()
.filter(p => p.standing_penalty().staff_alert() === 't');
</div>
<ng-template #barcodeTemplate let-r="row">
- <a routerLink="/staff/circ/patron/{{r.id()}}/checkout">{{r.card().barcode()}}</a>
+ <a *ngIf="r.card()"
+ routerLink="/staff/circ/patron/{{r.id()}}/checkout">{{r.card().barcode()}}</a>
</ng-template>
<ng-template #familyNameTemplate let-r="row">
<a routerLink="/staff/circ/patron/{{r.id()}}/checkout">{{r.family_name()}}</a>
</div>
</div>
- <div class="row mb-1 alert alert-danger p-0" *ngIf="p().alert_message()">
- <div class="col-lg-12" i18n>{{p().alert_message()}}</div>
- </div>
-
<div class="row mb-1 alert alert-danger p-0"
*ngFor="let pen of summary.alerts.alertPenalties">
<div class="col-lg-9"
return 'MULTIPLE_PENALTIES';
}
- if (patron.alert_message()) {
- return 'PATRON_HAS_ALERT';
- }
-
if (patron.juvenile() === 't') {
return 'PATRON_JUVENILE';
}