feat: add products component (#332)
This commit is contained in:
committed by
Abhay Chawla
parent
2feee9d8a2
commit
4f1dbc5821
@@ -32,6 +32,7 @@ import { CentersModule } from './centers/centers.module';
|
|||||||
import { AccountingModule } from './accounting/accounting.module';
|
import { AccountingModule } from './accounting/accounting.module';
|
||||||
import { SelfServiceModule } from './self-service/self-service.module';
|
import { SelfServiceModule } from './self-service/self-service.module';
|
||||||
import { SystemModule } from './system/system.module';
|
import { SystemModule } from './system/system.module';
|
||||||
|
import { ProductsModule } from './products/products.module';
|
||||||
|
|
||||||
/** Main Routing Module */
|
/** Main Routing Module */
|
||||||
import { AppRoutingModule } from './app-routing.module';
|
import { AppRoutingModule } from './app-routing.module';
|
||||||
@@ -60,6 +61,7 @@ import { AppRoutingModule } from './app-routing.module';
|
|||||||
AccountingModule,
|
AccountingModule,
|
||||||
SelfServiceModule,
|
SelfServiceModule,
|
||||||
SystemModule,
|
SystemModule,
|
||||||
|
ProductsModule,
|
||||||
AppRoutingModule
|
AppRoutingModule
|
||||||
],
|
],
|
||||||
declarations: [WebAppComponent, NotFoundComponent],
|
declarations: [WebAppComponent, NotFoundComponent],
|
||||||
|
|||||||
@@ -103,7 +103,7 @@
|
|||||||
<button mat-menu-item>Users</button>
|
<button mat-menu-item>Users</button>
|
||||||
<button mat-menu-item>Organisation</button>
|
<button mat-menu-item>Organisation</button>
|
||||||
<button mat-menu-item [routerLink]="['/system']">System</button>
|
<button mat-menu-item [routerLink]="['/system']">System</button>
|
||||||
<button mat-menu-item>Products</button>
|
<button mat-menu-item [routerLink]="['/products']">Products</button>
|
||||||
<button mat-menu-item>Templates</button>
|
<button mat-menu-item>Templates</button>
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,43 @@
|
|||||||
|
/** Angular Imports */
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
|
/** Routing Imports */
|
||||||
|
import { Route } from '../core/route/route.service';
|
||||||
|
|
||||||
|
/** Translation Imports */
|
||||||
|
import { extract } from '../core/i18n/i18n.service';
|
||||||
|
|
||||||
|
/** Custom Components */
|
||||||
|
import { ProductsComponent } from './products.component';
|
||||||
|
|
||||||
|
/** Custom Resolvers */
|
||||||
|
|
||||||
|
/** Products Routes */
|
||||||
|
const routes: Routes = [
|
||||||
|
Route.withShell([
|
||||||
|
{
|
||||||
|
path: 'products',
|
||||||
|
data: { title: extract('Products'), breadcrumb: 'Products' },
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
component: ProductsComponent
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}
|
||||||
|
])
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Products Routing Module
|
||||||
|
*
|
||||||
|
* Configures the products routes.
|
||||||
|
*/
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forChild(routes)],
|
||||||
|
exports: [RouterModule],
|
||||||
|
providers: [
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ProductsRoutingModule { }
|
||||||
@@ -0,0 +1,99 @@
|
|||||||
|
<div class="container">
|
||||||
|
|
||||||
|
<mat-card>
|
||||||
|
|
||||||
|
<div fxLayout="row" fxLayout.lt-md="column">
|
||||||
|
|
||||||
|
<div fxFlex="50%">
|
||||||
|
|
||||||
|
<mat-nav-list>
|
||||||
|
|
||||||
|
<mat-list-item>
|
||||||
|
<mat-icon matListIcon>
|
||||||
|
<fa-icon icon="briefcase" size="sm"></fa-icon>
|
||||||
|
</mat-icon>
|
||||||
|
<h4 matLine>Loan Products</h4>
|
||||||
|
<p matLine>Add new loan product or modify or inactivate loan product</p>
|
||||||
|
</mat-list-item>
|
||||||
|
|
||||||
|
<mat-list-item>
|
||||||
|
<mat-icon matListIcon>
|
||||||
|
<fa-icon icon="briefcase" size="sm"></fa-icon>
|
||||||
|
</mat-icon>
|
||||||
|
<h4 matLine>Savings Products</h4>
|
||||||
|
<p matLine>Add new savings product or modify or inactivate savings product</p>
|
||||||
|
</mat-list-item>
|
||||||
|
|
||||||
|
<mat-list-item>
|
||||||
|
<mat-icon matListIcon>
|
||||||
|
<fa-icon icon="briefcase" size="sm"></fa-icon>
|
||||||
|
</mat-icon>
|
||||||
|
<h4 matLine>Share Products</h4>
|
||||||
|
<p matLine>Add new share product or modify or inactivate share product</p>
|
||||||
|
</mat-list-item>
|
||||||
|
|
||||||
|
<mat-list-item>
|
||||||
|
<mat-icon matListIcon>
|
||||||
|
<fa-icon icon="money-bill-alt" size="sm"></fa-icon>
|
||||||
|
</mat-icon>
|
||||||
|
<h4 matLine>Charges</h4>
|
||||||
|
<p matLine>Define charges/penalties for loan products, savings and deposit products</p>
|
||||||
|
</mat-list-item>
|
||||||
|
|
||||||
|
</mat-nav-list>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div fxFlex="50%">
|
||||||
|
|
||||||
|
<mat-nav-list>
|
||||||
|
|
||||||
|
<mat-list-item>
|
||||||
|
<mat-icon matListIcon>
|
||||||
|
<fa-icon icon="random" size="sm"></fa-icon>
|
||||||
|
</mat-icon>
|
||||||
|
<h4 matLine>Products Mix</h4>
|
||||||
|
<p matLine>Defines rules for taking multiple rules</p>
|
||||||
|
</mat-list-item>
|
||||||
|
|
||||||
|
<mat-list-item>
|
||||||
|
<mat-icon matListIcon>
|
||||||
|
<fa-icon icon="briefcase" size="sm"></fa-icon>
|
||||||
|
</mat-icon>
|
||||||
|
<h4 matLine>Fixed Deposit Products</h4>
|
||||||
|
<p matLine>Add, modify or inactivate a Fixed deposit product</p>
|
||||||
|
</mat-list-item>
|
||||||
|
|
||||||
|
<mat-list-item>
|
||||||
|
<mat-icon matListIcon>
|
||||||
|
<fa-icon icon="briefcase" size="sm"></fa-icon>
|
||||||
|
</mat-icon>
|
||||||
|
<h4 matLine>Recurring Deposit Products</h4>
|
||||||
|
<p matLine>Add, modify or inactivate a Recurring Deposit product</p>
|
||||||
|
</mat-list-item>
|
||||||
|
|
||||||
|
<mat-list-item [routerLink]="['manage-tax-configurations']">
|
||||||
|
<mat-icon matListIcon>
|
||||||
|
<fa-icon icon="cogs" size="sm"></fa-icon>
|
||||||
|
</mat-icon>
|
||||||
|
<h4 matLine>Manage Tax Configurations</h4>
|
||||||
|
<p matLine>Define Tax components and Tax groups</p>
|
||||||
|
</mat-list-item>
|
||||||
|
|
||||||
|
<mat-list-item>
|
||||||
|
<mat-icon matListIcon>
|
||||||
|
<fa-icon icon="money-bill-alt" size="sm"></fa-icon>
|
||||||
|
</mat-icon>
|
||||||
|
<h4 matLine>Floating Rates</h4>
|
||||||
|
<p matLine>Define floating rates for loan products</p>
|
||||||
|
</mat-list-item>
|
||||||
|
|
||||||
|
</mat-nav-list>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</mat-card>
|
||||||
|
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
/** Angular Imports */
|
||||||
|
import { Component, OnInit } from '@angular/core';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Products component.
|
||||||
|
*/
|
||||||
|
@Component({
|
||||||
|
selector: 'mifosx-products',
|
||||||
|
templateUrl: './products.component.html',
|
||||||
|
styleUrls: ['./products.component.scss']
|
||||||
|
})
|
||||||
|
export class ProductsComponent implements OnInit {
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
/** Angular Imports */
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
|
||||||
|
/** Custom Modules */
|
||||||
|
import { SharedModule } from '../shared/shared.module';
|
||||||
|
import { ProductsRoutingModule } from './products-routing.module';
|
||||||
|
|
||||||
|
/** Custom Components */
|
||||||
|
import { ProductsComponent } from './products.component';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Products Module
|
||||||
|
*
|
||||||
|
* All components related to product functions should be declared here.
|
||||||
|
*/
|
||||||
|
@NgModule({
|
||||||
|
imports: [
|
||||||
|
SharedModule,
|
||||||
|
ProductsRoutingModule
|
||||||
|
],
|
||||||
|
declarations: [
|
||||||
|
ProductsComponent,
|
||||||
|
],
|
||||||
|
entryComponents: [
|
||||||
|
]
|
||||||
|
})
|
||||||
|
export class ProductsModule { }
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { TestBed, inject } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { ProductsService } from './products.service';
|
||||||
|
|
||||||
|
describe('ProductsService', () => {
|
||||||
|
beforeEach(() => {
|
||||||
|
TestBed.configureTestingModule({
|
||||||
|
providers: [ProductsService]
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should be created', inject([ProductsService], (service: ProductsService) => {
|
||||||
|
expect(service).toBeTruthy();
|
||||||
|
}));
|
||||||
|
});
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
/** Angular Imports */
|
||||||
|
import { Injectable } from '@angular/core';
|
||||||
|
import { HttpClient, HttpParams } from '@angular/common/http';
|
||||||
|
|
||||||
|
/** rxjs Imports */
|
||||||
|
import { Observable } from 'rxjs';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Products service.
|
||||||
|
*/
|
||||||
|
@Injectable({
|
||||||
|
providedIn: 'root'
|
||||||
|
})
|
||||||
|
export class ProductsService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {HttpClient} http Http Client to send requests.
|
||||||
|
*/
|
||||||
|
constructor(private http: HttpClient) { }
|
||||||
|
}
|
||||||
@@ -9,6 +9,7 @@ import {
|
|||||||
faArchive,
|
faArchive,
|
||||||
faBars,
|
faBars,
|
||||||
faBell,
|
faBell,
|
||||||
|
faBriefcase,
|
||||||
faCalendar,
|
faCalendar,
|
||||||
faChartBar,
|
faChartBar,
|
||||||
faCheckCircle,
|
faCheckCircle,
|
||||||
@@ -41,6 +42,7 @@ import {
|
|||||||
faPlay,
|
faPlay,
|
||||||
faPlus,
|
faPlus,
|
||||||
faPlusCircle,
|
faPlusCircle,
|
||||||
|
faRandom,
|
||||||
faRoad,
|
faRoad,
|
||||||
faSearch,
|
faSearch,
|
||||||
faShieldAlt,
|
faShieldAlt,
|
||||||
@@ -49,6 +51,8 @@ import {
|
|||||||
faSync,
|
faSync,
|
||||||
faTable,
|
faTable,
|
||||||
faTachometerAlt,
|
faTachometerAlt,
|
||||||
|
faTag,
|
||||||
|
faTags,
|
||||||
faTimesCircle,
|
faTimesCircle,
|
||||||
faTrash,
|
faTrash,
|
||||||
faUndo,
|
faUndo,
|
||||||
@@ -64,6 +68,7 @@ library.add(
|
|||||||
faArchive,
|
faArchive,
|
||||||
faBars,
|
faBars,
|
||||||
faBell,
|
faBell,
|
||||||
|
faBriefcase,
|
||||||
faCalendar,
|
faCalendar,
|
||||||
faChartBar,
|
faChartBar,
|
||||||
faCheckCircle,
|
faCheckCircle,
|
||||||
@@ -96,6 +101,7 @@ library.add(
|
|||||||
faPlay,
|
faPlay,
|
||||||
faPlus,
|
faPlus,
|
||||||
faPlusCircle,
|
faPlusCircle,
|
||||||
|
faRandom,
|
||||||
faRoad,
|
faRoad,
|
||||||
faSearch,
|
faSearch,
|
||||||
faShieldAlt,
|
faShieldAlt,
|
||||||
@@ -104,6 +110,8 @@ library.add(
|
|||||||
faSync,
|
faSync,
|
||||||
faTable,
|
faTable,
|
||||||
faTachometerAlt,
|
faTachometerAlt,
|
||||||
|
faTag,
|
||||||
|
faTags,
|
||||||
faTimesCircle,
|
faTimesCircle,
|
||||||
faTrash,
|
faTrash,
|
||||||
faUndo,
|
faUndo,
|
||||||
|
|||||||
Reference in New Issue
Block a user