]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/admin/server/org-addr.component.html
LP 2061136 follow-up: ng lint --fix
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / admin / server / org-addr.component.html
1 <ul ngbNav #addressTabs="ngbNav" class="nav-tabs" [keyboard]="true" [roles]="false" role="tablist" [(activeId)]="tabName">
2   <ng-container *ngFor="let type of addrTypes()">
3
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)" 
13             [record]="addr(type)"
14             fieldOrder="address_type,street1,street2,city,county,state,country,post_code,san,valid"
15             >
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>
23
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>
29           </div>
30         </ng-container>
31
32       </ng-template>
33     </li>
34
35   </ng-container>
36 </ul>
37
38 <div [ngbNavOutlet]="addressTabs" class="mt-2"></div>