- Hide Family Members tab/section for non-individual entities in client view, create flow, and preview - Hide Financial & Classification section for non-individual entities in personal data and preview - Fix legal form column in clients list — fetch legalForm from client API for correct display - Add person/business icon before client name in list rows - Remove unsupportedNpd filter — send authorizedSignatory, additionalInfo, dateOfRegistration to API - Add registration number format hint (mat-hint) based on constitution type - Add spacing between verification row and constitution type dropdowns - Reduce table cell padding and prevent action buttons from being clipped - Add missing MPL-2.0 license headers Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
171 lines
6.5 KiB
HTML
171 lines
6.5 KiB
HTML
<!--
|
|
Copyright since 2025 Mifos Initiative
|
|
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
-->
|
|
|
|
<div class="container m-b-20 layout-row align-end gap-20px">
|
|
<div #buttonCreateReport class="in-block">
|
|
<button mat-raised-button color="primary" [routerLink]="['create']" *mifosxHasPermission="'CREATE_REPORT'">
|
|
<fa-icon icon="plus" class="m-r-10"></fa-icon>
|
|
{{ 'labels.buttons.Create Report' | translate }}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<div #filter class="layout-row">
|
|
<mat-form-field appearance="outline" class="flex-fill">
|
|
<mat-label>{{ 'labels.inputs.Filter' | translate }}</mat-label>
|
|
<i matPrefix class="fas fa-search"></i>
|
|
<input matInput (keyup)="applyFilter($event.target.value)" />
|
|
</mat-form-field>
|
|
</div>
|
|
|
|
<div #reportsTable class="mat-elevation-z8 table-container">
|
|
<table mat-table [dataSource]="dataSource" matSort>
|
|
<ng-container matColumnDef="reportName">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.Report Name' | translate }}</th>
|
|
<td mat-cell *matCellDef="let report">{{ report.reportName }}</td>
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="reportType">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.Report Type' | translate }}</th>
|
|
<td mat-cell *matCellDef="let report">{{ report.reportType | translateKey: 'text' }}</td>
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="reportSubType">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.Report Sub Type' | translate }}</th>
|
|
<td mat-cell *matCellDef="let report">{{ report.reportSubType | translateKey: 'text' }}</td>
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="reportCategory">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.Report Category' | translate }}</th>
|
|
<td mat-cell *matCellDef="let report">{{ report.reportCategory | translateKey: 'catalogs' }}</td>
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="coreReport">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.Core Report' | translate }}</th>
|
|
<td mat-cell *matCellDef="let report">
|
|
@if (report.coreReport) {
|
|
<fa-icon
|
|
icon="check-circle"
|
|
size="lg"
|
|
class="true"
|
|
[matTooltip]="'tooltips.Yes' | translate"
|
|
matTooltipPosition="right"
|
|
></fa-icon>
|
|
}
|
|
@if (!report.coreReport) {
|
|
<fa-icon
|
|
icon="times-circle"
|
|
size="lg"
|
|
class="false"
|
|
[matTooltip]="'tooltips.No' | translate"
|
|
matTooltipPosition="right"
|
|
></fa-icon>
|
|
}
|
|
</td>
|
|
</ng-container>
|
|
|
|
<ng-container matColumnDef="userReport">
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>{{ 'labels.inputs.User Report' | translate }}</th>
|
|
<td mat-cell *matCellDef="let report">
|
|
@if (report.useReport) {
|
|
<fa-icon
|
|
icon="check-circle"
|
|
size="lg"
|
|
class="true"
|
|
[matTooltip]="'tooltips.Yes' | translate"
|
|
matTooltipPosition="right"
|
|
></fa-icon>
|
|
}
|
|
@if (!report.useReport) {
|
|
<fa-icon
|
|
icon="times-circle"
|
|
size="lg"
|
|
class="false"
|
|
[matTooltip]="'tooltips.No' | translate"
|
|
matTooltipPosition="right"
|
|
></fa-icon>
|
|
}
|
|
</td>
|
|
</ng-container>
|
|
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns" [routerLink]="[row.id]" class="select-row"></tr>
|
|
</table>
|
|
|
|
<mat-paginator [pageSizeOptions]="[10, 25, 50, 100]" showFirstLastButtons></mat-paginator>
|
|
</div>
|
|
</div>
|
|
|
|
<ng-template #templateButtonCreateReport let-popover="popover">
|
|
<h2>{{ 'labels.buttons.Create Report' | translate }}</h2>
|
|
<p class="mw300">{{ 'labels.text.Create new report' | translate }}</p>
|
|
<div class="layout-row align-end gap-2px responsive-column">
|
|
<button mat-raised-button color="warn" (click)="popover.close(); configurationWizardService.closeConfigWizard()">
|
|
{{ 'labels.buttons.Close' | translate }}
|
|
</button>
|
|
<button mat-raised-button color="primary" (click)="popover.close(); previousStep()">
|
|
{{ 'labels.buttons.Back' | translate }}
|
|
</button>
|
|
<button
|
|
mat-raised-button
|
|
color="primary"
|
|
(click)="popover.close(); showPopover(templateFilter, filter, 'bottom', true)"
|
|
>
|
|
{{ 'labels.buttons.Next' | translate }}
|
|
</button>
|
|
</div>
|
|
</ng-template>
|
|
|
|
<ng-template #templateFilter let-popover="popover">
|
|
<h4>{{ 'labels.heading.Filter reports by name' | translate }}</h4>
|
|
<div class="layout-row align-end gap-2px responsive-column">
|
|
<button mat-raised-button color="warn" (click)="popover.close(); configurationWizardService.closeConfigWizard()">
|
|
{{ 'labels.buttons.Close' | translate }}
|
|
</button>
|
|
<button
|
|
mat-raised-button
|
|
color="primary"
|
|
(click)="popover.close(); showPopover(templateButtonCreateReport, buttonCreateReport, 'bottom', true)"
|
|
>
|
|
{{ 'labels.buttons.Back' | translate }}
|
|
</button>
|
|
<button
|
|
mat-raised-button
|
|
color="primary"
|
|
(click)="popover.close(); showPopover(templateReportsTable, reportsTable, 'top', true)"
|
|
>
|
|
{{ 'labels.buttons.Next' | translate }}
|
|
</button>
|
|
</div>
|
|
</ng-template>
|
|
|
|
<ng-template #templateReportsTable let-popover="popover">
|
|
<h4 class="mw300">
|
|
{{ 'labels.heading.List of all currently available reports' | translate }}:
|
|
<a [href]="'manageReports' | documentationLink" target="_blank" rel="noopener noreferrer">{{
|
|
'labels.heading.Manage Reports' | translate
|
|
}}</a>
|
|
</h4>
|
|
<div class="layout-row align-end gap-2px responsive-column">
|
|
<button mat-raised-button color="warn" (click)="popover.close(); configurationWizardService.closeConfigWizard()">
|
|
{{ 'labels.buttons.Close' | translate }}
|
|
</button>
|
|
<button
|
|
mat-raised-button
|
|
color="primary"
|
|
(click)="popover.close(); showPopover(templateFilter, filter, 'bottom', true)"
|
|
>
|
|
{{ 'labels.buttons.Back' | translate }}
|
|
</button>
|
|
<button mat-raised-button color="primary" (click)="popover.close(); nextStep()">
|
|
{{ 'labels.buttons.Next' | translate }}
|
|
</button>
|
|
</div>
|
|
</ng-template>
|