Apply filter in the file uploads

This commit is contained in:
Jose Alberto Hernandez
2022-11-25 08:18:14 -06:00
parent abe684eefa
commit 68a3cfb472
9 changed files with 49 additions and 35 deletions
@@ -1,11 +1,11 @@
<div class="container mat-typography" style="padding-bottom: 20px;">
<div class="container mat-typography">
<div class="mat-elevation-z2 surveyCont">
<div class="surveySelect" fxLayout="row">
<mat-label class="nameLabel">Survey Name</mat-label>
<mat-select class="surveyOption" (selectionChange)="onSurveyChange($event)">
<mat-select (selectionChange)="onSurveyChange($event)">
<mat-option *ngFor="let surveyData of allSurveyData" [value]="surveyData">
{{surveyData.name}}
</mat-option>
@@ -52,7 +52,7 @@
</div>
<button mat-raised-button class="button-cancel" color="danger" [routerLink]="['../']">Cancel</button>
<button mat-raised-button class="button-cancel" color="danger" [routerLink]="['../../general']">Cancel</button>
<button mat-raised-button class="button-submit" color="primary" (click)=submit()>Submit</button>
</div>
@@ -2,11 +2,11 @@
<div>
<mifosx-file-upload flex="60%" (change)="onFileSelect($event)"></mifosx-file-upload>
<mifosx-file-upload flex="60%" (change)="onFileSelect($event)" acceptFilter=".png,.jpeg,.jpg"></mifosx-file-upload>
<mat-dialog-actions align="end">
<button mat-raised-button mat-dialog-close>Cancel</button>
<button mat-raised-button color="primary" [disabled]="!image" [mat-dialog-close]="image">Confirm</button>
</mat-dialog-actions>
</div>
</div>
@@ -2,11 +2,11 @@
<div>
<mifosx-file-upload flex="60%" (change)="onFileSelect($event)"></mifosx-file-upload>
<mifosx-file-upload flex="60%" (change)="onFileSelect($event)" acceptFilter=".png,.jpeg,.jpg"></mifosx-file-upload>
<mat-dialog-actions align="end">
<button mat-raised-button mat-dialog-close>Cancel</button>
<button mat-raised-button color="primary" [disabled]="!signature" [mat-dialog-close]="signature">Confirm</button>
</mat-dialog-actions>
</div>
</div>