Files
cbsnexora/src/app/groups/groups-view/group-actions/group-transfer-clients/group-transfer-clients.component.html
T
Adam Saghy 19a14e5b5b Upgrade to Angular 16
Merge `angular-update-16` into `dev` branch
2025-05-23 18:47:20 +02:00

89 lines
3.8 KiB
HTML

<div class="container">
<mat-card>
<form [formGroup]="transferClientsForm">
<mat-card-content>
<div class="layout-column">
<mat-form-field>
<mat-label>{{ 'labels.inputs.Select Client Members for Transfer' | translate }}</mat-label>
<mat-select required formControlName="clients" multiple>
<mat-option *ngFor="let member of clientMembers" [value]="{ id: member.id }">
{{ member.displayName }}
</mat-option>
</mat-select>
</mat-form-field>
<mat-checkbox
class="m-t-10 m-b-10"
labelPosition="before"
formControlName="inheritDestinationGroupLoanOfficer"
>
{{ 'labels.inputs.Inherit Group Loan Officer' | translate }}?
</mat-checkbox>
<mat-form-field>
<mat-label>{{ 'labels.inputs.Destination Group' | translate }}</mat-label>
<input matInput formControlName="destinationGroupId" [matAutocomplete]="groupsAutocomplete" />
<mat-error *ngIf="transferClientsForm.controls.destinationGroupId.hasError('required')">
{{ 'labels.inputs.Destination Group' | translate }} {{ 'labels.commons.is' | translate }}
<strong>{{ 'labels.commons.required' | translate }}</strong>
</mat-error>
</mat-form-field>
</div>
<mat-autocomplete autoActiveFirstOption #groupsAutocomplete="matAutocomplete" [displayWith]="displayGroup">
<mat-option *ngFor="let group of groupsData" [value]="group">
{{ group.name }}
</mat-option>
</mat-autocomplete>
<div class="mat-table" *ngIf="transferClientsForm.get('destinationGroupId').value?.id">
<div class="mat-header-row">
<div class="mat-header-cell">{{ 'labels.inputs.Destination Group Details' | translate }}</div>
</div>
<div class="mat-row">
<div class="mat-cell">{{ 'labels.inputs.name' | translate }}</div>
<div class="mat-cell">{{ transferClientsForm.get('destinationGroupId').value.name }}</div>
</div>
<div class="mat-row">
<div class="mat-cell">{{ 'labels.inputs.Id' | translate }}</div>
<div class="mat-cell">{{ transferClientsForm.get('destinationGroupId').value.id }}</div>
</div>
<div class="mat-row">
<div class="mat-cell">{{ 'labels.inputs.Activation Date' | translate }}</div>
<div class="mat-cell">
{{ (transferClientsForm.get('destinationGroupId').value.activationDate | dateFormat) || 'Not Activated' }}
</div>
</div>
<div class="mat-row">
<div class="mat-cell">{{ 'labels.inputs.Staff' | translate }}</div>
<div class="mat-cell">
{{ transferClientsForm.get('destinationGroupId').value.staffName || 'Unassigned' }}
</div>
</div>
<div class="mat-row">
<div class="mat-cell">{{ 'labels.inputs.External Id' | translate }}</div>
<div class="mat-cell">
{{ transferClientsForm.get('destinationGroupId').value.externalId || 'Unassigned' }}
</div>
</div>
</div>
</mat-card-content>
<mat-card-actions class="layout-row align-center gap-5px responsive-column">
<button type="button" mat-raised-button [routerLink]="['../../']">
{{ 'labels.buttons.Cancel' | translate }}
</button>
<button
mat-raised-button
color="primary"
[disabled]="!transferClientsForm.valid"
(click)="submit()"
*mifosxHasPermission="'TRANSFERCLIENTS_GROUP'"
>
{{ 'labels.buttons.Submit' | translate }}
</button>
</mat-card-actions>
</form>
</mat-card>
</div>