1 <ul ngbNav #addressTabs="ngbNav" class="nav-tabs" [keyboard]="true" [roles]="false" role="tablist" [(activeId)]="tabName">
2 <ng-container *ngFor="let type of addrTypes()">
4 <li *ngIf="addr(type)" role="presentation" id="{{type}}" ngbNavItem="{{type}}">
5 <a role="tab" ngbNavLink i18n>{{type === 'billing_address' ? 'Physical Address' :
6 (type === 'holds_address' ? 'Holds Address' :
7 (type === 'mailing_address' ? 'Mailing Address' : 'ILL Address'))}}</a>
8 <ng-template ngbNavContent>
9 <eg-fm-record-editor idlClass="aoa" readonlyFields="org_unit"
10 [mode]="addr(type).isnew() ? 'create': 'update'"
11 [hideBanner]="true" displayMode="inline" hiddenFields="id"
12 (recordSaved)="addrSaved($event)"
14 fieldOrder="address_type,street1,street2,city,county,state,country,post_code,san,valid"
16 <eg-fm-record-editor-action i18n-label label="Get Coordinates"
17 (actionClick)="getCoordinates($event)">
18 </eg-fm-record-editor-action>
19 <eg-fm-record-editor-action i18n-label label="Delete" *ngIf="!addr(type).isnew()"
20 (actionClick)="deleteAddress($event)" buttonCss="btn-destroy">
21 </eg-fm-record-editor-action>
22 </eg-fm-record-editor>
24 <ng-container *ngIf="sharedAddress(addr(type).id())">
25 <div class="alert alert-info">
26 <span i18n>This address is used for multiple address types.</span>
27 <button type="button" (click)="cloneAddress(type)"
28 class="btn btn-light ms-3" i18n>Clone As New Address</button>
38 <div [ngbNavOutlet]="addressTabs" class="mt-2"></div>