-
Notifications
You must be signed in to change notification settings - Fork 576
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Run stylelint and prettier during build
Stylelint and prettier checks are added to the build workflow, to maintain formatting consistency. Existing issues are fixed.
- Loading branch information
Showing
10 changed files
with
116 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Mifos X Web App ![build](https://github.com/openMF/web-app/actions/workflows/build.yml/badge.svg) [Slack](https://app.slack.com/client/T0F5GHE8Y/CJJGJLN10) | ||
# Mifos X Web App ![build](https://github.com/openMF/web-app/actions/workflows/build.yml/badge.svg) [Slack](https://app.slack.com/client/T0F5GHE8Y/CJJGJLN10) | ||
|
||
Mifos X Web App is the revamped version of the Mifos X Community App, an effective financial inclusion solution and the default web application built on top of the Mifos X platform for the Mifos User Community. | ||
|
||
|
@@ -16,7 +16,7 @@ The latest code is continuously deployed at https://openmf.github.io/web-app/ wh | |
|
||
[`nodeJs`](https://nodejs.org/en/download/) | ||
|
||
3. Install [angular-cli](https://github.com/angular/angular-cli) globally. | ||
2. Install [angular-cli](https://github.com/angular/angular-cli) globally. | ||
|
||
``` | ||
npm install -g @angular/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
101 changes: 57 additions & 44 deletions
101
...oans/loans-view/loan-account-actions/add-interest-pause/add-interest-pause.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,60 @@ | ||
<div class="container mat-elevation-z8"> | ||
<mat-card> | ||
<div class="m-b-20" fxLayout="column" *ngIf="maturityDate"> | ||
<span class="m-r-10">{{'Maturity Date' | translateKey:'inputs'}} : {{ maturityDate | dateFormat}}</span> | ||
</div> | ||
<form [formGroup]="interestPauseLoanForm" (ngSubmit)="submit()"> | ||
<mat-card-content> | ||
<div fxLayout="column"> | ||
<mat-form-field (click)="startDatePicker.open()"> | ||
<mat-label>{{ 'labels.inputs.Start Date' | translate }}</mat-label> | ||
<input matInput [min]="minDate" [max]="maxDate" [matDatepicker]="startDatePicker" | ||
required formControlName="startDate" /> | ||
<mat-datepicker-toggle matSuffix [for]="startDatePicker"></mat-datepicker-toggle> | ||
<mat-datepicker #startDatePicker></mat-datepicker> | ||
<mat-error *ngIf="interestPauseLoanForm.controls.startDate.hasError('required')"> | ||
{{ 'labels.inputs.Start Date' | translate | ||
}}<strong>{{ 'labels.commons.required' | translate }}</strong> | ||
</mat-error> | ||
</mat-form-field> | ||
|
||
<mat-form-field (click)="endDatePicker.open()"> | ||
<mat-label>{{ 'labels.inputs.End Date' | translate }}</mat-label> | ||
<input matInput [min]="interestPauseLoanForm.value.startDate" [max]="maxDate" [matDatepicker]="endDatePicker" | ||
required formControlName="endDate" /> | ||
<mat-datepicker-toggle matSuffix [for]="endDatePicker"></mat-datepicker-toggle> | ||
<mat-datepicker #endDatePicker></mat-datepicker> | ||
<mat-error *ngIf="interestPauseLoanForm.controls.endDate.hasError('required')"> | ||
{{ 'labels.inputs.End Date' | translate | ||
}}<strong>{{ 'labels.commons.required' | translate }}</strong> | ||
</mat-error> | ||
</mat-form-field> | ||
<mat-card> | ||
<div class="m-b-20" fxLayout="column" *ngIf="maturityDate"> | ||
<span class="m-r-10">{{ 'Maturity Date' | translateKey: 'inputs' }} : {{ maturityDate | dateFormat }}</span> | ||
</div> | ||
<form [formGroup]="interestPauseLoanForm" (ngSubmit)="submit()"> | ||
<mat-card-content> | ||
<div fxLayout="column"> | ||
<mat-form-field (click)="startDatePicker.open()"> | ||
<mat-label>{{ 'labels.inputs.Start Date' | translate }}</mat-label> | ||
<input | ||
matInput | ||
[min]="minDate" | ||
[max]="maxDate" | ||
[matDatepicker]="startDatePicker" | ||
required | ||
formControlName="startDate" | ||
/> | ||
<mat-datepicker-toggle matSuffix [for]="startDatePicker"></mat-datepicker-toggle> | ||
<mat-datepicker #startDatePicker></mat-datepicker> | ||
<mat-error *ngIf="interestPauseLoanForm.controls.startDate.hasError('required')"> | ||
{{ 'labels.inputs.Start Date' | translate }}<strong>{{ 'labels.commons.required' | translate }}</strong> | ||
</mat-error> | ||
</mat-form-field> | ||
|
||
</div> | ||
<mat-form-field (click)="endDatePicker.open()"> | ||
<mat-label>{{ 'labels.inputs.End Date' | translate }}</mat-label> | ||
<input | ||
matInput | ||
[min]="interestPauseLoanForm.value.startDate" | ||
[max]="maxDate" | ||
[matDatepicker]="endDatePicker" | ||
required | ||
formControlName="endDate" | ||
/> | ||
<mat-datepicker-toggle matSuffix [for]="endDatePicker"></mat-datepicker-toggle> | ||
<mat-datepicker #endDatePicker></mat-datepicker> | ||
<mat-error *ngIf="interestPauseLoanForm.controls.endDate.hasError('required')"> | ||
{{ 'labels.inputs.End Date' | translate }}<strong>{{ 'labels.commons.required' | translate }}</strong> | ||
</mat-error> | ||
</mat-form-field> | ||
</div> | ||
|
||
<mat-card-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="5px"> | ||
<button type="button" mat-raised-button [routerLink]="['../../general']"> | ||
{{ 'labels.buttons.Cancel' | translate }} | ||
</button> | ||
<button mat-raised-button color="primary" [disabled]="!interestPauseLoanForm.valid" | ||
*mifosxHasPermission="'DISBURSE_LOAN'"> | ||
{{ 'labels.buttons.Submit' | translate }} | ||
</button> | ||
</mat-card-actions> | ||
</mat-card-content> | ||
</form> | ||
</mat-card> | ||
</div> | ||
<mat-card-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="5px"> | ||
<button type="button" mat-raised-button [routerLink]="['../../general']"> | ||
{{ 'labels.buttons.Cancel' | translate }} | ||
</button> | ||
<button | ||
mat-raised-button | ||
color="primary" | ||
[disabled]="!interestPauseLoanForm.valid" | ||
*mifosxHasPermission="'DISBURSE_LOAN'" | ||
> | ||
{{ 'labels.buttons.Submit' | translate }} | ||
</button> | ||
</mat-card-actions> | ||
</mat-card-content> | ||
</form> | ||
</mat-card> | ||
</div> |
13 changes: 6 additions & 7 deletions
13
...oans/loans-view/loan-account-actions/add-interest-pause/add-interest-pause.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
.expandcollapsebutton { | ||
margin-top: -7px; | ||
} | ||
|
||
.container { | ||
max-width: 37rem; | ||
} | ||
|
||
margin-top: -7px; | ||
} | ||
|
||
.container { | ||
max-width: 37rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<span (mouseenter)="mouseEnter()" (mouseleave)="mouseLeave()" *ngIf="!emptyValue"> | ||
<span class="m-l-3" *ngIf="isLongValue()" (click)="showValue()"><fa-icon icon="eye" size="sm" [title]="textValue"></fa-icon></span> | ||
<span class="m-l-3" *ngIf="isLongValue()" (click)="showValue()" | ||
><fa-icon icon="eye" size="sm" [title]="textValue"></fa-icon | ||
></span> | ||
<span class="m-l-5" *ngIf="isLongValue()" (click)="showValue()">{{ textValue | truncateText: printChars }}...</span> | ||
<span class="m-l-5" *ngIf="!isLongValue()" (click)="showValue()">{{ textValue }}</span> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters