Sec Commit msg
This commit is contained in:
commit
deeadef1ea
Binary file not shown.
@ -6,7 +6,7 @@
|
|||||||
<mat-cell fxFlex="15" class="cell" *matCellDef="let details;" style="justify-content:flex-end">
|
<mat-cell fxFlex="15" class="cell" *matCellDef="let details;" style="justify-content:flex-end">
|
||||||
|
|
||||||
<div *ngIf="details.fk_pd_type != null" [ngClass]="(details.fk_pd_type=='1')?'fullPD':(details.fk_pd_type=='2')?'smartPD':'telePD'" class="mr-1 mb-1 hover-icon commonPDType"
|
<div *ngIf="details.fk_pd_type != null" [ngClass]="(details.fk_pd_type=='1')?'fullPD':(details.fk_pd_type=='2')?'smartPD':'telePD'" class="mr-1 mb-1 hover-icon commonPDType"
|
||||||
[matTooltip]="details.pd_type_name" matTooltipPosition="above"><strong>{{(details.pd_type_name | slice:0:1)}}</strong></div>
|
[matTooltip]="details.pd_type_name" matTooltipPosition="above"><strong style="font-size:3rem;">{{(details.pd_type_name | slice:0:1)}}</strong></div>
|
||||||
|
|
||||||
</mat-cell>
|
</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
<!-- <button *ngIf="details.fk_pd_type != null" [matTooltip]="details.fk_pd_type == '1' ? 'Full PD' : details.fk_pd_type == '2' ? 'Smart PD' : details.fk_pd_type == '3' ? 'Tele PD' : '' " mat-button mat-icon-button class="mr-1 mb-1 hover-icon pd_circle" type="button"
|
<!-- <button *ngIf="details.fk_pd_type != null" [matTooltip]="details.fk_pd_type == '1' ? 'Full PD' : details.fk_pd_type == '2' ? 'Smart PD' : details.fk_pd_type == '3' ? 'Tele PD' : '' " mat-button mat-icon-button class="mr-1 mb-1 hover-icon pd_circle" type="button"
|
||||||
matTooltipPosition="above"><strong>{{(details.pd_type_name | slice:0:1)}}</strong></button> -->
|
matTooltipPosition="above"><strong>{{(details.pd_type_name | slice:0:1)}}</strong></button> -->
|
||||||
<div *ngIf="details.fk_pd_type != null" [ngClass]="(details.fk_pd_type=='1')?'fullPD':(details.fk_pd_type=='2')?'smartPD':'telePD'" class="mr-1 mb-1 hover-icon commonPDType"
|
<div *ngIf="details.fk_pd_type != null" [ngClass]="(details.fk_pd_type=='1')?'fullPD':(details.fk_pd_type=='2')?'smartPD':'telePD'" class="mr-1 mb-1 hover-icon commonPDType"
|
||||||
[matTooltip]="details.pd_type_name" matTooltipPosition="above"><strong>{{(details.pd_type_name | slice:0:1)}}</strong></div>
|
[matTooltip]="details.pd_type_name" matTooltipPosition="above"><strong style="font-size:3rem;">{{(details.pd_type_name | slice:0:1)}}</strong></div>
|
||||||
</mat-cell>
|
</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container matColumnDef="Name">
|
<ng-container matColumnDef="Name">
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<!-- <button *ngIf="details.fk_pd_type != null" [matTooltip]="details.fk_pd_type == '1' ? 'Full PD' : details.fk_pd_type == '2' ? 'Smart PD' : details.fk_pd_type == '3' ? 'Tele PD' : '' " mat-button mat-icon-button class="mr-1 mb-1 hover-icon pd_circle" type="button"
|
<!-- <button *ngIf="details.fk_pd_type != null" [matTooltip]="details.fk_pd_type == '1' ? 'Full PD' : details.fk_pd_type == '2' ? 'Smart PD' : details.fk_pd_type == '3' ? 'Tele PD' : '' " mat-button mat-icon-button class="mr-1 mb-1 hover-icon pd_circle" type="button"
|
||||||
matTooltipPosition="above"><strong>{{(details.pd_type_name | slice:0:1)}}</strong></button> -->
|
matTooltipPosition="above"><strong>{{(details.pd_type_name | slice:0:1)}}</strong></button> -->
|
||||||
<div *ngIf="details.fk_pd_type != null" [ngClass]="(details.fk_pd_type=='1')?'fullPD':(details.fk_pd_type=='2')?'smartPD':'telePD'" class="mr-1 mb-1 hover-icon commonPDType"
|
<div *ngIf="details.fk_pd_type != null" [ngClass]="(details.fk_pd_type=='1')?'fullPD':(details.fk_pd_type=='2')?'smartPD':'telePD'" class="mr-1 mb-1 hover-icon commonPDType"
|
||||||
[matTooltip]="details.pd_type_name" matTooltipPosition="above"><strong>{{(details.pd_type_name | slice:0:1)}}</strong></div>
|
[matTooltip]="details.pd_type_name" matTooltipPosition="above"><strong style="font-size:3rem;">{{(details.pd_type_name | slice:0:1)}}</strong></div>
|
||||||
</mat-cell>
|
</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container matColumnDef="Name">
|
<ng-container matColumnDef="Name">
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<!-- <button *ngIf="details.fk_pd_type != null" [matTooltip]="details.fk_pd_type == '1' ? 'Full PD' : details.fk_pd_type == '2' ? 'Smart PD' : details.fk_pd_type == '3' ? 'Tele PD' : '' " mat-button mat-icon-button class="mr-1 mb-1 hover-icon pd_circle" type="button"
|
<!-- <button *ngIf="details.fk_pd_type != null" [matTooltip]="details.fk_pd_type == '1' ? 'Full PD' : details.fk_pd_type == '2' ? 'Smart PD' : details.fk_pd_type == '3' ? 'Tele PD' : '' " mat-button mat-icon-button class="mr-1 mb-1 hover-icon pd_circle" type="button"
|
||||||
matTooltipPosition="above"><strong>{{(details.pd_type_name | slice:0:1)}}</strong></button> -->
|
matTooltipPosition="above"><strong>{{(details.pd_type_name | slice:0:1)}}</strong></button> -->
|
||||||
<div *ngIf="details.fk_pd_type != null" [ngClass]="(details.fk_pd_type=='1')?'fullPD':(details.fk_pd_type=='2')?'smartPD':'telePD'" class="mr-1 mb-1 hover-icon commonPDType"
|
<div *ngIf="details.fk_pd_type != null" [ngClass]="(details.fk_pd_type=='1')?'fullPD':(details.fk_pd_type=='2')?'smartPD':'telePD'" class="mr-1 mb-1 hover-icon commonPDType"
|
||||||
[matTooltip]="details.pd_type_name" matTooltipPosition="above"><strong>{{(details.pd_type_name | slice:0:1)}}</strong></div>
|
[matTooltip]="details.pd_type_name" matTooltipPosition="above"><strong style="font-size:3rem;">{{(details.pd_type_name | slice:0:1)}}</strong></div>
|
||||||
</mat-cell>
|
</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container matColumnDef="Name">
|
<ng-container matColumnDef="Name">
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
<!-- <button *ngIf="details.fk_pd_type != null" [matTooltip]="details.fk_pd_type == '1' ? 'Full PD' : details.fk_pd_type == '2' ? 'Smart PD' : details.fk_pd_type == '3' ? 'Tele PD' : '' " mat-button mat-icon-button class="mr-1 mb-1 hover-icon pd_circle" type="button"
|
<!-- <button *ngIf="details.fk_pd_type != null" [matTooltip]="details.fk_pd_type == '1' ? 'Full PD' : details.fk_pd_type == '2' ? 'Smart PD' : details.fk_pd_type == '3' ? 'Tele PD' : '' " mat-button mat-icon-button class="mr-1 mb-1 hover-icon pd_circle" type="button"
|
||||||
matTooltipPosition="above"><strong>{{(details.pd_type_name | slice:0:1)}}</strong></button> -->
|
matTooltipPosition="above"><strong>{{(details.pd_type_name | slice:0:1)}}</strong></button> -->
|
||||||
<div *ngIf="details.fk_pd_type != null" [ngClass]="(details.fk_pd_type=='1')?'fullPD':(details.fk_pd_type=='2')?'smartPD':'telePD'" class="mr-1 mb-1 hover-icon commonPDType"
|
<div *ngIf="details.fk_pd_type != null" [ngClass]="(details.fk_pd_type=='1')?'fullPD':(details.fk_pd_type=='2')?'smartPD':'telePD'" class="mr-1 mb-1 hover-icon commonPDType"
|
||||||
[matTooltip]="details.pd_type_name" matTooltipPosition="above"><strong>{{(details.pd_type_name | slice:0:1)}}</strong></div>
|
[matTooltip]="details.pd_type_name" matTooltipPosition="above"><strong style="font-size:3rem;">{{(details.pd_type_name | slice:0:1)}}</strong></div>
|
||||||
</mat-cell>
|
</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container matColumnDef="Name">
|
<ng-container matColumnDef="Name">
|
||||||
|
|||||||
@ -164,10 +164,9 @@ apiLoadFinish: boolean = false;
|
|||||||
}
|
}
|
||||||
|
|
||||||
addSupplierDetailsWithData(supp_data) {
|
addSupplierDetailsWithData(supp_data) {
|
||||||
|
var result = Object.keys(supp_data).map(function(key) {
|
||||||
var result = Object.keys(supp_data).map(function(key) {
|
return supp_data[key];
|
||||||
return supp_data[key];
|
});
|
||||||
});
|
|
||||||
if (result.length > 0) {
|
if (result.length > 0) {
|
||||||
for (let val of result) {
|
for (let val of result) {
|
||||||
let vals = {
|
let vals = {
|
||||||
|
|||||||
@ -417,6 +417,29 @@
|
|||||||
<!-- end form based questions -->
|
<!-- end form based questions -->
|
||||||
|
|
||||||
</figure>
|
</figure>
|
||||||
|
<!--</ng-container>-->
|
||||||
|
<!--<!– end supplier type questions –>-->
|
||||||
|
|
||||||
|
<!--<!– start client type questions –>-->
|
||||||
|
<!--<ng-container *ngSwitchCase="2">-->
|
||||||
|
<!--<app-client-info [pdid]="startPD"></app-client-info>-->
|
||||||
|
<!--</ng-container>-->
|
||||||
|
<!--<!– end client type questions –>-->
|
||||||
|
|
||||||
|
<!--<!– start personal type questions –>-->
|
||||||
|
<!--<ng-container *ngSwitchCase="3">-->
|
||||||
|
<!--<app-personal-info [pdid]="startPD" [pd_all_details]="pdFullDetails"></app-personal-info>-->
|
||||||
|
<!--</ng-container>-->
|
||||||
|
<!--<ng-container *ngSwitchCase="4">-->
|
||||||
|
<!--<app-assets-info [pdid]="startPD"></app-assets-info>-->
|
||||||
|
<!--</ng-container>-->
|
||||||
|
<!--<!– end personal type questions -->
|
||||||
|
<!--–>-->
|
||||||
|
<!--</ng-container>-->
|
||||||
|
<!--</div>-->
|
||||||
|
<!-- end form based questions -->
|
||||||
|
|
||||||
|
<!--</figure>-->
|
||||||
</div>
|
</div>
|
||||||
</mat-sidenav-container>
|
</mat-sidenav-container>
|
||||||
|
|
||||||
|
|||||||
@ -115,6 +115,7 @@ export class StartPdComponent implements OnInit, OnDestroy {
|
|||||||
answeredQuestions: number;
|
answeredQuestions: number;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// start
|
// start
|
||||||
|
|
||||||
// end
|
// end
|
||||||
|
|||||||
@ -101,37 +101,66 @@ const pdCustomNotifierOptions: NotifierOptions = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
// imports: [
|
||||||
CommonModule,
|
// CommonModule,
|
||||||
ManagePdRoutingModule,
|
// ManagePdRoutingModule,
|
||||||
NotifierModule.withConfig(pdCustomNotifierOptions),
|
// NotifierModule.withConfig(pdCustomNotifierOptions),
|
||||||
MatCardModule,
|
// MatCardModule,
|
||||||
MatIconModule,
|
// MatIconModule,
|
||||||
MatInputModule,
|
// MatInputModule,
|
||||||
MatRadioModule,
|
// MatRadioModule,
|
||||||
MatTableModule,
|
// MatTableModule,
|
||||||
MatPaginatorModule,
|
// MatPaginatorModule,
|
||||||
MatButtonModule,
|
// MatButtonModule,
|
||||||
MatProgressBarModule,
|
// MatProgressBarModule,
|
||||||
MatAutocompleteModule,
|
// MatAutocompleteModule,
|
||||||
MatToolbarModule,
|
// MatToolbarModule,
|
||||||
FlexLayoutModule,
|
// FlexLayoutModule,
|
||||||
NgxDatatableModule,
|
// NgxDatatableModule,
|
||||||
FormsModule,
|
// FormsModule,
|
||||||
MatSlideToggleModule,
|
// MatSlideToggleModule,
|
||||||
MatSelectModule, MatListModule, MatGridListModule, MatTabsModule, MatBadgeModule, MatCheckboxModule, MatStepperModule, MatSidenavModule, MatMenuModule, MatButtonToggleModule,
|
// MatSelectModule, MatListModule, MatGridListModule, MatTabsModule, MatBadgeModule, MatCheckboxModule, MatStepperModule, MatSidenavModule, MatMenuModule, MatButtonToggleModule,
|
||||||
ReactiveFormsModule,
|
// ReactiveFormsModule,
|
||||||
FileUploadModule,
|
// FileUploadModule,
|
||||||
TreeModule,
|
// TreeModule,
|
||||||
MatDialogModule, MatSortModule,
|
// MatDialogModule, MatSortModule,
|
||||||
NgxMatSelectSearchModule, MatTooltipModule, MatExpansionModule,
|
// NgxMatSelectSearchModule, MatTooltipModule, MatExpansionModule,
|
||||||
AgmCoreModule.forRoot({apiKey: 'AIzaSyBtdO5k6CRntAMJCF-H5uZjTCoSGX95cdk'}), OwlDateTimeModule,
|
// AgmCoreModule.forRoot({apiKey: 'AIzaSyBtdO5k6CRntAMJCF-H5uZjTCoSGX95cdk'}), OwlDateTimeModule,
|
||||||
OwlNativeDateTimeModule,
|
// OwlNativeDateTimeModule,
|
||||||
],
|
// ],
|
||||||
declarations: [BankingDetailsComponent, ListPdComponent, FamilyDetailsComponent, AddressComponent, ManagePdComponent, MapPdViewComponent, AddPdComponent, ViewPdComponent, PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, InprogressPdComponent, AllPdComponent, ScheduledPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, CurrentLoanComponent, AssetsInfoComponent, LoanDetailsComponent, OtherIncomeComponent, SupplierInfoComponent, PersonalInfoComponent],
|
declarations: [BankingDetailsComponent, ListPdComponent, FamilyDetailsComponent, AddressComponent, ManagePdComponent, MapPdViewComponent, AddPdComponent, ViewPdComponent, PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, InprogressPdComponent, AllPdComponent, ScheduledPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, CurrentLoanComponent, AssetsInfoComponent, LoanDetailsComponent, OtherIncomeComponent, SupplierInfoComponent, PersonalInfoComponent],
|
||||||
exports: [PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, CompletedPdComponent, QcCompletedPdComponent],
|
// exports: [PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, CompletedPdComponent, QcCompletedPdComponent],
|
||||||
providers: [PdTrigerService, GetGeometricLocationService],
|
// providers: [PdTrigerService, GetGeometricLocationService],
|
||||||
entryComponents: [PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent]
|
// entryComponents: [PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent],
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
ManagePdRoutingModule,
|
||||||
|
NotifierModule.withConfig(pdCustomNotifierOptions),
|
||||||
|
MatCardModule,
|
||||||
|
MatIconModule,
|
||||||
|
MatInputModule,
|
||||||
|
MatRadioModule,
|
||||||
|
MatTableModule,
|
||||||
|
MatPaginatorModule,
|
||||||
|
MatButtonModule,
|
||||||
|
MatProgressBarModule,
|
||||||
|
MatToolbarModule,
|
||||||
|
FlexLayoutModule,
|
||||||
|
NgxDatatableModule,
|
||||||
|
FormsModule,MatSlideToggleModule,
|
||||||
|
MatSelectModule, MatListModule,MatGridListModule, MatTabsModule, MatBadgeModule, MatCheckboxModule,MatStepperModule,MatSidenavModule ,MatMenuModule, MatButtonToggleModule,
|
||||||
|
ReactiveFormsModule,
|
||||||
|
FileUploadModule,
|
||||||
|
TreeModule,
|
||||||
|
MatDialogModule,MatSortModule,
|
||||||
|
NgxMatSelectSearchModule,MatTooltipModule, MatExpansionModule,
|
||||||
|
AgmCoreModule.forRoot({apiKey: 'AIzaSyBtdO5k6CRntAMJCF-H5uZjTCoSGX95cdk'}),OwlDateTimeModule,
|
||||||
|
OwlNativeDateTimeModule,
|
||||||
|
],
|
||||||
|
// declarations: [ListPdComponent, ManagePdComponent, MapPdViewComponent, AddPdComponent, ViewPdComponent, PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, InprogressPdComponent, AllPdComponent, ScheduledPdComponent, CompletedPdComponent, QcCompletedPdComponent, ClientInfoComponent, SupplierInfoComponent, PersonalInfoComponent, AssetsInfoComponent],
|
||||||
|
exports: [PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent, StartPdComponent, CompletedPdComponent, QcCompletedPdComponent],
|
||||||
|
providers: [PdTrigerService, GetGeometricLocationService],
|
||||||
|
entryComponents: [PdAllocationComponent, SmartPdAllocationComponent, SchedulePdComponent, EditPdApplicantComponent, EditPdMasterComponent]
|
||||||
})
|
})
|
||||||
export class ManagePdModule {
|
export class ManagePdModule {
|
||||||
}
|
}
|
||||||
|
|||||||
@ -265,7 +265,7 @@ getPDFormDetailsWithID(pdID, formID ):Observable<any> {
|
|||||||
// saveData[0].fk_updatedby = this._aws.getlocale();
|
// saveData[0].fk_updatedby = this._aws.getlocale();
|
||||||
// saveData[0].updatedon = currentdate;
|
// saveData[0].updatedon = currentdate;
|
||||||
|
|
||||||
return this._http.post<any>(this.apiUrl+"savePDQuestions",{"records":saveData})
|
return this._http.post<any>(this.apiUrl+"savePDQuestions",{"records1":saveData})
|
||||||
.pipe(
|
.pipe(
|
||||||
catchError(this.handleError('operation', []))
|
catchError(this.handleError('operation', []))
|
||||||
)
|
)
|
||||||
|
|||||||
@ -44,7 +44,7 @@
|
|||||||
|
|
||||||
<p *ngIf="master.product_name">{{master.product_name}} / {{master.subproduct_name}}</p>
|
<p *ngIf="master.product_name">{{master.product_name}} / {{master.subproduct_name}}</p>
|
||||||
<p *ngIf="master.pd_type_name"><span>{{master.pd_type_name}}</span> / <span *ngIf="master.loan_amount" class="hover-icon"><i class="fa-1x fa fa-rupee"> </i>{{master.loan_amount}}</span></p>
|
<p *ngIf="master.pd_type_name"><span>{{master.pd_type_name}}</span> / <span *ngIf="master.loan_amount" class="hover-icon"><i class="fa-1x fa fa-rupee"> </i>{{master.loan_amount}}</span></p>
|
||||||
<p><span>{{master.addressline1}},{{master.addressline2}} ,{{master.addressline3}}</span></p>
|
<p><span>{{master.addressline1}}</span><span *ngIf="master.addressline2">,{{master.addressline2}}</span> <span *ngIf="master.addressline3">,{{master.addressline3}}</span></p>
|
||||||
<p *ngIf="master.remarks"><span style="font-size:13px;"> Remarks : </span> <span style="color:red">{{master.remarks}}</span></p>
|
<p *ngIf="master.remarks"><span style="font-size:13px;"> Remarks : </span> <span style="color:red">{{master.remarks}}</span></p>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
|
|||||||
@ -1,279 +1,164 @@
|
|||||||
|
<mat-card>
|
||||||
|
<form [formGroup]="regForm" (ngSubmit)="register(regForm.value)">
|
||||||
<mat-card>
|
|
||||||
|
|
||||||
<form [formGroup]="regForm" (ngSubmit)="register(regForm.value)">
|
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<div fxflex="100" fxLayout="row" fxLayoutAlign="start center">
|
<div fxflex="100" fxLayout="row" fxLayoutAlign="start center">
|
||||||
<div dividerColor="primary" class="ml-xs mr-xs">
|
<div dividerColor="primary" class="ml-xs mr-xs">
|
||||||
<div style="font-size:24px;"> User Registration</div>
|
<div style="font-size:24px;"> User Registration</div>
|
||||||
</div>
|
</div>
|
||||||
<div dividerColor="primary" class="ml-xs mr-xs" style="text-align: right;margin-top: -4%;">
|
<div dividerColor="primary" class="ml-xs mr-xs" style="text-align: right;margin-top: -4%;">
|
||||||
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above"(click)="back()"><mat-icon>close</mat-icon></button>
|
<button mat-raised-button mat-icon-button class="mr-1 mb-1 hover-icon" matTooltip="Close" matTooltipPosition="above"(click)="back()"><mat-icon>close</mat-icon></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div fxLayout="row wrap">
|
<div fxLayout="row wrap">
|
||||||
<div fxFlex.gt-sm="33.33%" fxFlex="50" class="m-gap p-gap">
|
<div fxFlex.gt-sm="33.33%" fxFlex="50" class="m-gap p-gap">
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card-title>Personal</mat-card-title><hr/>
|
<mat-card-title>Personal</mat-card-title><hr/>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<div fxLayout="row" fxLayoutAlign="start center" class="mb-2" style="display: inline-flex;">
|
<div fxLayout="row" fxLayoutAlign="start center" class="mb-2">
|
||||||
<span dividerColor="primary" class="ml-xs mr-xs" *ngIf="profileaccess">
|
<label class="hoverdp" for="fileUpload" >
|
||||||
<img [src]="profileurl" style="width: 50%;border-radius: 50%;">
|
<span dividerColor="primary" class="ml-xs mr-xs" *ngIf="!imageaccess">
|
||||||
</span>
|
<img [src]="profileurl || 'https://image.ibb.co/mGjZB9/usernew.png'" style="width: 100px;height:100px;border-radius: 50%;border:2px solid red">
|
||||||
<span *ngIf="imageaccess">
|
</span>
|
||||||
<img [src]="filename" style="width: 50%; border-radius: 50%;">
|
<span dividerColor="primary" *ngIf="imageaccess">
|
||||||
|
<img [src]="filename" style="width: 100px;height:100px; border-radius: 50%;border:2px solid #e00201">
|
||||||
</span>
|
</span>
|
||||||
<div style="width:60%">
|
<mat-icon style="color:#716462;position: absolute; top: 39%;left: 5.5%;">camera_alt</mat-icon>
|
||||||
Profile Picture
|
</label>
|
||||||
<input type="file" (change)="onFileChange($event)" [formControl]="regForm.controls['userpic']" accept="image/*" />
|
|
||||||
|
|
||||||
|
|
||||||
<!-- <span *ngIf="usersData !=''">
|
<input type="file" id="fileUpload" (change)="onFileChange($event)" [formControl]="regForm.controls['userpic']" accept="image/*" style="display:none"/>
|
||||||
{{img}}
|
|
||||||
</span> -->
|
|
||||||
</div>
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
||||||
<input matInput placeholder="First Name" [formControl]="regForm.controls['firstName']" required>
|
<input matInput placeholder="First Name" [formControl]="regForm.controls['firstName']" required>
|
||||||
<mat-error *ngIf="regForm.controls['firstName'].hasError('required') && regForm.controls['firstName'].touched" class="mat-text-warn">First Name Required.</mat-error>
|
<mat-error *ngIf="regForm.controls['firstName'].hasError('required') && regForm.controls['firstName'].touched" class="mat-text-warn">First Name Required.</mat-error>
|
||||||
<mat-error *ngIf="regForm.controls['firstName'].hasError('minlength') && regForm.controls['firstName'].touched" class="mat-text-warn">Atleast 5 Characters.</mat-error>
|
<mat-error *ngIf="regForm.controls['firstName'].hasError('minlength') && regForm.controls['firstName'].touched" class="mat-text-warn">Atleast 5 Characters.</mat-error>
|
||||||
<mat-error *ngIf="regForm.controls['firstName'].hasError('maxlength') && regForm.controls['firstName'].touched" class="mat-text-warn">Not More Than 10 Characters.</mat-error>
|
<mat-error *ngIf="regForm.controls['firstName'].hasError('maxlength') && regForm.controls['firstName'].touched" class="mat-text-warn">Not More Than 10 Characters.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
||||||
<input matInput placeholder="Last Name" [formControl]="regForm.controls['lastName']" required>
|
<input matInput placeholder="Last Name" [formControl]="regForm.controls['lastName']" required>
|
||||||
<mat-error *ngIf="regForm.controls['lastName'].hasError('required') && regForm.controls['lastName'].touched" class="mat-text-warn">Last Name Required.</mat-error>
|
<mat-error *ngIf="regForm.controls['lastName'].hasError('required') && regForm.controls['lastName'].touched" class="mat-text-warn">Last Name Required.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<!-- <mat-error *ngIf="regForm.controls['lastName'].hasError('minlength') && regForm.controls['lastName'].touched" class="mat-text-warn">Your first name must be at least 5 characters long.</mat-error>
|
<mat-form-field style="display: none;">
|
||||||
<mat-error *ngIf="regForm.controls['lastName'].hasError('maxlength') && regForm.controls['lastName'].touched" class="mat-text-warn">Your first name cannot exceed 10 characters.</mat-error> -->
|
|
||||||
<mat-form-field style="display: none;">
|
|
||||||
<input matInput placeholder="User Id" [formControl]="regForm.controls['userid']">
|
<input matInput placeholder="User Id" [formControl]="regForm.controls['userid']">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
<mat-slide-toggle color="primary" [formControl]="regForm.controls['isactive']">
|
||||||
|
|
||||||
<mat-slide-toggle color="primary" [formControl]="regForm.controls['isactive']">
|
|
||||||
Isactive
|
Isactive
|
||||||
</mat-slide-toggle>
|
</mat-slide-toggle>
|
||||||
|
</div>
|
||||||
</div>
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
</div>
|
</div>
|
||||||
<div fxFlex.gt-sm="33.33%" fxFlex="50" class="m-gap p-gap">
|
<div fxFlex.gt-sm="33.33%" fxFlex="50" class="m-gap p-gap">
|
||||||
<mat-card>
|
<mat-card>
|
||||||
<mat-card-title>Contact</mat-card-title><hr/>
|
<mat-card-title>Contact</mat-card-title><hr/>
|
||||||
<mat-card-content>
|
<mat-card-content>
|
||||||
<div fxLayout="row" fxLayoutAlign="start center" class="mb-2">
|
<div fxLayout="row" fxLayoutAlign="start center" class="mb-2">
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
||||||
<input matInput placeholder="Email Address" [formControl]="regForm.controls['email']" type="email" required>
|
<input matInput placeholder="Email Address" [formControl]="regForm.controls['email']" type="email" required>
|
||||||
<mat-error *ngIf="regForm.controls['email'].hasError('required') && regForm.controls['email'].touched" class="mat-text-warn">email Address Required.</mat-error>
|
<mat-error *ngIf="regForm.controls['email'].hasError('required') && regForm.controls['email'].touched" class="mat-text-warn">email Address Required.</mat-error>
|
||||||
<mat-error *ngIf="regForm.controls['email'].errors?.email && regForm.controls['email'].touched" class="mat-text-warn">Invalid Email Address.</mat-error>
|
<mat-error *ngIf="regForm.controls['email'].errors?.email && regForm.controls['email'].touched" class="mat-text-warn">Invalid Email Address.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<!-- <mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
||||||
<input matInput placeholder="Alt Email address" [formControl]="regForm.controls['altemail']" type="email">
|
<input matInput placeholder="Phone Number" [formControl]="regForm.controls['phone']" type="number" required>
|
||||||
</mat-form-field> -->
|
<mat-error *ngIf="regForm.controls['phone'].hasError('required') && regForm.controls['phone'].touched" class="mat-text-warn">Phone Number Required.</mat-error>
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
<mat-error *ngIf="regForm.controls['phone'].errors?.phone && regForm.controls['phone'].touched" class="mat-text-warn">Invalid Phone Number.</mat-error>
|
||||||
<input matInput placeholder="Phone Number" [formControl]="regForm.controls['phone']" type="number" required>
|
|
||||||
<mat-error *ngIf="regForm.controls['phone'].hasError('required') && regForm.controls['phone'].touched" class="mat-text-warn">Phone Number Required.</mat-error>
|
|
||||||
<mat-error *ngIf="regForm.controls['phone'].errors?.phone && regForm.controls['phone'].touched" class="mat-text-warn">Invalid Phone Number.</mat-error>
|
|
||||||
|
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" >
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" >
|
||||||
<mat-select matInput placeholder="State" [formControl]="regForm.controls['state']" required (selectionChange)="getcity($event)" >
|
<mat-select matInput placeholder="State" [formControl]="regForm.controls['state']" required (selectionChange)="getcity($event)" >
|
||||||
<mat-option>--</mat-option>
|
<mat-option>--</mat-option>
|
||||||
<mat-option *ngFor="let s of State" [value]="s" >
|
<mat-option *ngFor="let s of State" [value]="s" >
|
||||||
{{s.name}}
|
{{s.name}}
|
||||||
</mat-option>
|
</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
<mat-error *ngIf="regForm.controls['state'].hasError('required') && regForm.controls['state'].touched" class="mat-text-warn">State Required.</mat-error>
|
<mat-error *ngIf="regForm.controls['state'].hasError('required') && regForm.controls['state'].touched" class="mat-text-warn">State Required.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" >
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" >
|
||||||
<mat-select matInput placeholder="City" [formControl]="regForm.controls['city']" required>
|
<mat-select matInput placeholder="City" [formControl]="regForm.controls['city']" required>
|
||||||
<mat-option>--</mat-option>
|
<mat-option>--</mat-option>
|
||||||
<mat-option *ngFor="let c of City" [value]="c">
|
<mat-option *ngFor="let c of City" [value]="c">
|
||||||
{{c.name}}
|
{{c.name}}
|
||||||
</mat-option>
|
</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
<mat-error *ngIf="regForm.controls['city'].hasError('required') && regForm.controls['city'].touched" class="mat-text-warn">city Required.</mat-error>
|
<mat-error *ngIf="regForm.controls['city'].hasError('required') && regForm.controls['city'].touched" class="mat-text-warn">city Required.</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
</mat-card>
|
</mat-card>
|
||||||
</div>
|
</div>
|
||||||
|
<div fxFlex.gt-sm="33.33%" fxFlex="50" class="m-gap p-gap">
|
||||||
|
<mat-card>
|
||||||
|
|
||||||
|
<mat-card-title>Role</mat-card-title><hr/>
|
||||||
|
<mat-card-content>
|
||||||
|
<div fxLayout="row" fxLayoutAlign="start center" class="mb-2">
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" >
|
||||||
|
<mat-select matInput placeholder="Enitity Type" (selectionChange)="checktype($event.value)" [formControl]="regForm.controls['type']"
|
||||||
|
required>
|
||||||
|
<mat-option>--</mat-option>
|
||||||
|
<mat-option *ngFor="let types of types" [value]="types">
|
||||||
|
{{types.name}}
|
||||||
|
</mat-option>
|
||||||
|
</mat-select>
|
||||||
|
<mat-error *ngIf="regForm.controls['type'].hasError('required') && regForm.controls['type'].touched" class="mat-text-warn">Enitity Type Required</mat-error>
|
||||||
|
<mat-error *ngIf="regForm.controls['type'].errors?.phone && regForm.controls['type'].touched" class="mat-text-warn">Enitity Type Required</mat-error>
|
||||||
|
|
||||||
|
</mat-form-field>
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" *ngIf="typeValue == '2'">
|
||||||
|
<mat-select matInput placeholder="Lender Name" [formControl]="regForm.controls['lenVenName']" required>
|
||||||
|
<mat-option>--</mat-option>
|
||||||
|
<mat-option *ngFor="let ent of entities" [value]="ent">
|
||||||
|
{{ent.full_name}}
|
||||||
|
</mat-option>
|
||||||
|
</mat-select>
|
||||||
|
<mat-error *ngIf="regForm.controls['lenVenName'].hasError('required') && regForm.controls['lenVenName'].touched" class="mat-text-warn">Lender Name Required.</mat-error>
|
||||||
|
|
||||||
|
</mat-form-field>
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" *ngIf="typeValue == '3'">
|
||||||
|
<mat-select matInput placeholder="Vendor Name" [formControl]="regForm.controls['lenVenName']" required>
|
||||||
|
<mat-option>--</mat-option>
|
||||||
|
<mat-option *ngFor="let ent of entities" [value]="ent">
|
||||||
|
{{ent.full_name}}
|
||||||
|
</mat-option>
|
||||||
|
</mat-select><mat-error *ngIf="regForm.controls['lenVenName'].hasError('required') && regForm.controls['lenVenName'].touched" class="mat-text-warn">Vendor Name Required.</mat-error>
|
||||||
|
|
||||||
|
</mat-form-field>
|
||||||
|
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" >
|
||||||
|
<mat-select matInput placeholder="Role" (selectionChange)="toggleAllSelection($event,regForm.controls['type'].value)" [formControl]="regForm.controls['role']" required>
|
||||||
|
<mat-option *ngFor="let role of roles" [value]="role" >
|
||||||
|
{{role.role_name}}
|
||||||
|
</mat-option>
|
||||||
|
</mat-select>
|
||||||
|
|
||||||
|
<div *ngIf="roleload"><mat-progress-bar mode="indeterminate" color="defalut"></mat-progress-bar></div>
|
||||||
|
<mat-error *ngIf="regForm.controls['role'].hasError('required') && regForm.controls['role'].touched" class="mat-text-warn">User Role Required</mat-error>
|
||||||
|
<mat-error *ngIf="regForm.controls['role'].errors?.phone && regForm.controls['role'].touched" class="mat-text-warn">User Role Required</mat-error>
|
||||||
|
</mat-form-field>
|
||||||
|
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" *ngIf="roleAccess">
|
||||||
|
<mat-select matInput placeholder="PD Team" [formControl]="regForm.controls['pdteam']" required >
|
||||||
|
<mat-option>--</mat-option>
|
||||||
|
<mat-option *ngFor="let pd of pdTeam" [value]="pd" >
|
||||||
|
{{pd.team_name}}
|
||||||
|
</mat-option>
|
||||||
|
</mat-select>
|
||||||
|
</mat-form-field>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- <mat-card-title>Contact Information</mat-card-title><hr/>
|
</mat-card-content>
|
||||||
<div fxLayout="row" fxLayoutAlign="start center" class="mb-2">
|
</mat-card>
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
</div>
|
||||||
<input matInput placeholder="Phone number" [formControl]="regForm.controls['phone']" type="text">
|
|
||||||
<mat-error *ngIf="regForm.controls['phone'].hasError('required') && regForm.controls['phone'].touched" class="mat-text-warn">You must include phone number.</mat-error>
|
|
||||||
<mat-error *ngIf="regForm.controls['phone'].errors?.phone && regForm.controls['phone'].touched" class="mat-text-warn">You must include a valid phone number.</mat-error>
|
|
||||||
|
|
||||||
</mat-form-field>
|
|
||||||
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
|
||||||
<input matInput placeholder="Alt Phone number" [formControl]="regForm.controls['altphone']" type="text">
|
|
||||||
<mat-error *ngIf="regForm.controls['altphone'].errors?.phone && regForm.controls['phone'].touched" class="mat-text-warn">You must include a valid phone number.</mat-error>
|
|
||||||
|
|
||||||
</mat-form-field>
|
|
||||||
<!-- <mat-error *ngIf="regForm.controls['phone'].hasError('required') && regForm.controls['phone'].touched" class="mat-text-warn">You must include phone number.</mat-error>
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
|
||||||
|
|
||||||
<input matInput placeholder="Address 1" [formControl]="regForm.controls['address1']">
|
|
||||||
</mat-form-field>
|
|
||||||
</div> -->
|
|
||||||
<!-- <div fxLayout="row" fxLayoutAlign="start center" class="mb-2">
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
|
||||||
|
|
||||||
<input matInput placeholder="Address 2" [formControl]="regForm.controls['address2']">
|
|
||||||
</mat-form-field>
|
|
||||||
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
|
||||||
|
|
||||||
<input matInput placeholder="Address 3" [formControl]="regForm.controls['address3']">
|
|
||||||
</mat-form-field>
|
|
||||||
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs">
|
|
||||||
|
|
||||||
<input matInput placeholder="Pincode" [formControl]="regForm.controls['pincode']">
|
|
||||||
</mat-form-field>
|
|
||||||
</div> -->
|
|
||||||
<!-- <div fxLayout="row" fxLayoutAlign="start center" class="mb-2">
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
|
||||||
<mat-select matInput placeholder="State" [formControl]="regForm.controls['state']" required (selectionChange)="getcity($event)" >
|
|
||||||
<mat-option>--</mat-option>
|
|
||||||
<mat-option *ngFor="let s of State" [value]="s" >
|
|
||||||
{{s.name}}
|
|
||||||
</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
<mat-error *ngIf="regForm.controls['state'].hasError('required') && regForm.controls['state'].touched" class="mat-text-warn">State Required.</mat-error>
|
|
||||||
</mat-form-field>
|
|
||||||
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;">
|
|
||||||
<mat-select matInput placeholder="City" [formControl]="regForm.controls['city']" required>
|
|
||||||
<mat-option>--</mat-option>
|
|
||||||
<mat-option *ngFor="let c of City" [value]="c">
|
|
||||||
{{c.name}}
|
|
||||||
</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
<mat-error *ngIf="regForm.controls['city'].hasError('required') && regForm.controls['city'].touched" class="mat-text-warn">city Required.</mat-error>
|
|
||||||
</mat-form-field>
|
|
||||||
</div>-->
|
|
||||||
<mat-card>
|
|
||||||
|
|
||||||
<mat-card-title>Role</mat-card-title><hr/>
|
|
||||||
<mat-card-content>
|
|
||||||
<div fxLayout="row" fxLayoutAlign="start center" class="mb-2">
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" >
|
|
||||||
<mat-select matInput placeholder="Enitity Type" (selectionChange)="checktype($event.value)" [formControl]="regForm.controls['type']"
|
|
||||||
required>
|
|
||||||
<mat-option>--</mat-option>
|
|
||||||
<mat-option *ngFor="let types of types" [value]="types">
|
|
||||||
{{types.name}}
|
|
||||||
</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
<mat-error *ngIf="regForm.controls['type'].hasError('required') && regForm.controls['type'].touched" class="mat-text-warn">Enitity Type Required</mat-error>
|
|
||||||
<mat-error *ngIf="regForm.controls['type'].errors?.phone && regForm.controls['type'].touched" class="mat-text-warn">Enitity Type Required</mat-error>
|
|
||||||
|
|
||||||
</mat-form-field>
|
|
||||||
|
|
||||||
<!-- <span *ngIf="roleload"> -->
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" *ngIf="typeValue == '2'">
|
|
||||||
<mat-select matInput placeholder="Lender Name" [formControl]="regForm.controls['lenVenName']" required>
|
|
||||||
<mat-option>--</mat-option>
|
|
||||||
<mat-option *ngFor="let ent of entities" [value]="ent">
|
|
||||||
{{ent.full_name}}
|
|
||||||
</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
<mat-error *ngIf="regForm.controls['lenVenName'].hasError('required') && regForm.controls['lenVenName'].touched" class="mat-text-warn">Lender Name Required.</mat-error>
|
|
||||||
|
|
||||||
</mat-form-field>
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" *ngIf="typeValue == '3'">
|
|
||||||
<mat-select matInput placeholder="Vendor Name" [formControl]="regForm.controls['lenVenName']" required>
|
|
||||||
<mat-option>--</mat-option>
|
|
||||||
<mat-option *ngFor="let ent of entities" [value]="ent">
|
|
||||||
{{ent.full_name}}
|
|
||||||
</mat-option>
|
|
||||||
</mat-select><mat-error *ngIf="regForm.controls['lenVenName'].hasError('required') && regForm.controls['lenVenName'].touched" class="mat-text-warn">Vendor Name Required.</mat-error>
|
|
||||||
|
|
||||||
</mat-form-field>
|
|
||||||
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" >
|
|
||||||
<mat-select matInput placeholder="Role" (selectionChange)="toggleAllSelection($event,regForm.controls['type'].value)" [formControl]="regForm.controls['role']" required>
|
|
||||||
<!-- <mat-option #allSelected (click)="toggleAllSelection()" [value]="0">ALL</mat-option> -->
|
|
||||||
<mat-option *ngFor="let role of roles" [value]="role" >
|
|
||||||
{{role.role_name}}
|
|
||||||
</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
|
|
||||||
<div *ngIf="roleload"><mat-progress-bar mode="indeterminate" color="defalut"></mat-progress-bar></div>
|
|
||||||
<mat-error *ngIf="regForm.controls['role'].hasError('required') && regForm.controls['role'].touched" class="mat-text-warn">User Role Required</mat-error>
|
|
||||||
<mat-error *ngIf="regForm.controls['role'].errors?.phone && regForm.controls['role'].touched" class="mat-text-warn">User Role Required</mat-error>
|
|
||||||
</mat-form-field>
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" *ngIf="roleAccess">
|
|
||||||
<mat-select matInput placeholder="PD Team" [formControl]="regForm.controls['pdteam']" required >
|
|
||||||
<mat-option>--</mat-option>
|
|
||||||
<mat-option *ngFor="let pd of pdTeam" [value]="pd" >
|
|
||||||
{{pd.team_name}}
|
|
||||||
</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<!-- <div fxLayout="row" fxLayoutAlign="start center" class="mb-2">
|
|
||||||
|
|
||||||
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;" *ngIf="roleAccess">
|
|
||||||
<mat-select matInput placeholder="PD Type" [formControl]="regForm.controls['pdtype']" required>
|
|
||||||
<mat-option>--</mat-option>
|
|
||||||
<mat-option *ngFor="let PDT of pdType" [value]="PDT">
|
|
||||||
{{PDT.type_name}}
|
|
||||||
</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
|
|
||||||
</mat-form-field>
|
|
||||||
</div>-->
|
|
||||||
</mat-card-content>
|
|
||||||
</mat-card>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- <div fxLayout="row" fxLayoutAlign="start center" class="mb-2" *ngIf="roleAccess">
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;" >
|
|
||||||
<mat-select matInput placeholder="Select Customer" [formControl]="regForm.controls['customer']" required (selectionChange)="getcity($event)">
|
|
||||||
<mat-option>--</mat-option>
|
|
||||||
<mat-option *ngFor="let C of customerSeg" [value]="C" >
|
|
||||||
{{C.name}}
|
|
||||||
</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
</mat-form-field>
|
|
||||||
|
|
||||||
<mat-form-field dividerColor="primary" class="ml-xs mr-xs" style="width: 30%;" *ngIf="roleAccess">
|
|
||||||
<mat-select matInput placeholder="Select Product" [formControl]="regForm.controls['product']" required>
|
|
||||||
<mat-option>--</mat-option>
|
|
||||||
<mat-option *ngFor="let P of product" [value]="P">
|
|
||||||
{{P.name}}
|
|
||||||
</mat-option>
|
|
||||||
</mat-select>
|
|
||||||
|
|
||||||
</mat-form-field>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
|
|
||||||
</mat-card-content>
|
</mat-card-content>
|
||||||
<hr>
|
<hr>
|
||||||
<!-- <pre>{{regForm.controls['userid'].value | json}}</pre> -->
|
|
||||||
|
|
||||||
<mat-card-actions style="text-align:right;">
|
<mat-card-actions style="text-align:right;">
|
||||||
|
|
||||||
|
|||||||
@ -1,16 +1,11 @@
|
|||||||
|
.hoverdp:hover img {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
// .mat-card-title{
|
.hoverdp mat-icon{
|
||||||
|
display:none;
|
||||||
// color: #fff;
|
}
|
||||||
// margin-left: 13px;
|
.hoverdp:hover mat-icon{
|
||||||
// background: rgba(157, 69, 124, 1);
|
display:block;
|
||||||
// box-shadow: 0 4px 20px 0 rgba(157, 69, 124, 1), 0 7px 10px -5px rgba(157, 69, 124, 1);;
|
}
|
||||||
// display: inline-block;
|
|
||||||
// border-radius: 6px;
|
|
||||||
// padding: 10px;
|
|
||||||
// margin-top: -52px;
|
|
||||||
|
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ this.loader = true;
|
|||||||
this.AWS.adminUpdateuser(userData, data.record).subscribe(res => {
|
this.AWS.adminUpdateuser(userData, data.record).subscribe(res => {
|
||||||
this.loader =false;
|
this.loader =false;
|
||||||
console.log(res);
|
console.log(res);
|
||||||
Swal('user Created');
|
Swal('User Created');
|
||||||
this.router.navigate(['setting/users/userlist']);
|
this.router.navigate(['setting/users/userlist']);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -216,7 +216,7 @@ this.loader = true;
|
|||||||
});}
|
});}
|
||||||
this.users.saveRecords(res,userData).subscribe(res=>{
|
this.users.saveRecords(res,userData).subscribe(res=>{
|
||||||
this.loader = false;
|
this.loader = false;
|
||||||
Swal('Update User');
|
Swal('User Updated');
|
||||||
this.router.navigate(['setting/users/userlist']);
|
this.router.navigate(['setting/users/userlist']);
|
||||||
//this.shared.redirectTo('settings/userListing');
|
//this.shared.redirectTo('settings/userListing');
|
||||||
delete this.AWS.localUserId;
|
delete this.AWS.localUserId;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user