| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <fims-layout-card-over [title]="product.name" [subTitle]="product.description" [navigateBackTo]="['../../../']"> |
| <fims-layout-card-over-header-menu> |
| <button mat-icon-button (click)="deleteProduct()" title="{{'Delete this product' | translate}}" *ngIf="canDelete$ | async"><mat-icon>delete</mat-icon></button> |
| </fims-layout-card-over-header-menu> |
| <td-message *ngIf="!product.enabled" label="{{'Product not enabled' | translate }}" sublabel="{{'To assign this product to a member it needs to be enabled first' | translate }}" color="warn" icon="error"> |
| <button td-message-actions mat-button (click)="enableProduct()" *hasPermission="{ id: 'portfolio_product_operations', accessLevel: 'CHANGE'}" translate>ENABLE PRODUCT</button> |
| </td-message> |
| <td-message *ngIf="product.enabled" label="{{'Product enabled' | translate }}" sublabel="{{'This product can be assigned to a member ' | translate }}" color="accent" icon="check"> |
| <button td-message-actions mat-button (click)="disableProduct()" *hasPermission="{ id: 'portfolio_product_operations', accessLevel: 'CHANGE'}" translate>DISABLE PRODUCT</button> |
| </td-message> |
| <fims-two-column-layout> |
| <mat-nav-list left> |
| <h3 mat-subheader translate>Management</h3> |
| <a mat-list-item [routerLink]="['./charges']"> |
| <mat-icon matListAvatar>assignment</mat-icon> |
| <h3 matLine translate>Fees</h3> |
| <p matLine translate>Manage fees</p> |
| </a> |
| <a mat-list-item [routerLink]="['./tasks']"> |
| <mat-icon matListAvatar>playlist_add_check</mat-icon> |
| <h3 matLine translate>Tasks</h3> |
| <p matLine translate>Manage tasks of this product</p> |
| </a> |
| <a mat-list-item [routerLink]="['./lossProvision']" *hasPermission="{ id: 'portfolio_loss_provision', accessLevel: 'READ' }"> |
| <mat-icon matListAvatar>trending_down</mat-icon> |
| <h3 matLine translate>Loss provision configuration</h3> |
| </a> |
| </mat-nav-list> |
| <mat-list right> |
| <mat-list-item> |
| <h3 matLine translate>Balance range</h3> |
| <p matLine>{{product.balanceRange?.minimum | number:numberFormat}} - {{product.balanceRange?.maximum | number:numberFormat}}</p> |
| </mat-list-item> |
| <mat-list-item> |
| <h3 matLine translate>Interest range</h3> |
| <p matLine>{{product.interestBasis | translate}}</p> |
| <p matLine>{{product.interestRange?.minimum | number:numberFormat}} - {{product.interestRange?.maximum | number:numberFormat}}</p> |
| </mat-list-item> |
| <mat-list-item> |
| <h3 matLine translate>Term</h3> |
| <p matLine>{{product.termRange?.maximum | number}} {{product.termRange?.temporalUnit | translate}}</p> |
| </mat-list-item> |
| <mat-list-item> |
| <h3 matLine translate>Currency</h3> |
| <p matLine>{{product.currencyCode}}</p> |
| </mat-list-item> |
| <mat-list-item> |
| <h3 matLine translate>Created by</h3> |
| <p matLine>{{product.createdBy}} - {{product.createdOn | date:'medium'}}</p> |
| </mat-list-item> |
| <mat-list-item> |
| <h3 matLine translate>Last modified by</h3> |
| <p matLine>{{product.lastModifiedBy}} - {{product.lastModifiedOn | date:'medium'}}</p> |
| </mat-list-item> |
| </mat-list> |
| </fims-two-column-layout> |
| </fims-layout-card-over> |
| <fims-fab-button title="{{'Edit product' | translate}}" icon="mode_edit" [link]="['edit']" *ngIf="canEdit$ | async"></fims-fab-button> |