Files
cbsnexora/src/app/organization/manage-funds/edit-fund/edit-fund.component.html
T
Nitesh YadavandClaude Sonnet 4.6 d367e76104 merging code
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 14:26:25 +05:30

61 lines
2.2 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="ef-container">
<div class="ef-header">
<button mat-stroked-button [routerLink]="['../']" class="ef-back">
<i class="fas fa-arrow-left"></i> {{ 'labels.inputs.Manage Funds' | translate }}
</button>
<h2 class="ef-header__title">{{ 'labels.heading.Edit Fund' | translate }}</h2>
</div>
<div class="ef-card">
<form [formGroup]="fundForm" (ngSubmit)="submit()">
<div class="ef-section">
<div class="ef-section__header">
<i class="fas fa-wallet"></i>
<h3>{{ 'labels.heading.Fund Details' | translate }}</h3>
</div>
<div class="ef-grid">
<mat-form-field appearance="outline" class="ef-field">
<mat-label>{{ 'labels.inputs.name' | translate }}</mat-label>
<input matInput required autofocus formControlName="name" />
@if (fundForm.controls.name.hasError('required')) {
<mat-error>
{{ 'labels.inputs.name' | translate }} {{ 'labels.commons.is' | translate }}
<strong>{{ 'labels.commons.required' | translate }}</strong>
</mat-error>
}
</mat-form-field>
<mat-form-field appearance="outline" class="ef-field">
<mat-label>{{ 'labels.inputs.External Id' | translate }}</mat-label>
<input matInput formControlName="externalId" />
</mat-form-field>
</div>
</div>
<div class="ef-actions">
<button type="button" mat-stroked-button [routerLink]="['../']" class="ef-actions__cancel">
{{ 'labels.buttons.Cancel' | translate }}
</button>
<button
type="submit"
mat-flat-button
color="primary"
[disabled]="!fundForm.valid"
class="ef-actions__submit"
*mifosxHasPermission="'UPDATE_FUND'"
>
<i class="fas fa-check"></i> {{ 'labels.buttons.Submit' | translate }}
</button>
</div>
</form>
</div>
</div>