diff --git a/ng8-seed/src/app/app.routing.ts b/ng8-seed/src/app/app.routing.ts
index 0876caa..2bb3a55 100644
--- a/ng8-seed/src/app/app.routing.ts
+++ b/ng8-seed/src/app/app.routing.ts
@@ -8,13 +8,16 @@ import { ProjectsComponent } from './components/projects/projects.component';
import { PaymentComponent } from './components/payment/payment.component';
import { PaymentConfirmationComponent } from './components/payment-confirmation/payment-confirmation.component';
import { MyAccountComponent } from './components/my-account/my-account.component';
+import { AuthGuardService } from './shared/guards/auth-guard.service';
export const AppRoutes: Routes = [{
path: '',
redirectTo: 'home',
pathMatch: 'full',
+
}, {
path: '',
component: AdminLayoutComponent,
+
children: [{
path: 'home',
loadChildren: () => import('./dashboard/dashboard.module').then(m => m.DashboardModule)
diff --git a/ng8-seed/src/app/components/contribute/contribute.component.html b/ng8-seed/src/app/components/contribute/contribute.component.html
index 2287dec..44703af 100644
--- a/ng8-seed/src/app/components/contribute/contribute.component.html
+++ b/ng8-seed/src/app/components/contribute/contribute.component.html
@@ -8,28 +8,28 @@
@@ -74,16 +89,16 @@
-
-
+
+ -->
-
+
\ No newline at end of file
diff --git a/ng8-seed/src/app/components/payment/payment.component.scss b/ng8-seed/src/app/components/payment/payment.component.scss
index 1fdd4be..b2b03dc 100644
--- a/ng8-seed/src/app/components/payment/payment.component.scss
+++ b/ng8-seed/src/app/components/payment/payment.component.scss
@@ -1,3 +1,8 @@
+ul{
+ color:#007805;
+ font-size: 14px;
+}
+
$base-card-box-shadow:1.5px 2.6px 24px 0 rgba(0, 35, 136, 0.08) !important;
$product-bg-color-hover: rgba(103, 58, 183, 0.7);
.p-list-main {
diff --git a/ng8-seed/src/app/components/payment/payment.component.ts b/ng8-seed/src/app/components/payment/payment.component.ts
index f397a7b..f5c2163 100644
--- a/ng8-seed/src/app/components/payment/payment.component.ts
+++ b/ng8-seed/src/app/components/payment/payment.component.ts
@@ -1,4 +1,7 @@
import { Component, OnInit } from '@angular/core';
+import { Router } from '@angular/router';
+import { FormBuilder } from '@angular/forms';
+import { ApiService } from 'app/shared/api.service';
@Component({
selector: 'app-payment',
@@ -39,9 +42,23 @@ export class PaymentComponent implements OnInit {
value: 'milk-8',
viewValue: 'Milk'
}];
- constructor() { }
+ constructor(public restApi:ApiService,public fb:FormBuilder,public router:Router) {
+ this.isToken();
+
+ }
ngOnInit() {
+ // window.localStorage.clear();
+ }
+ isToken(){
+ // console.log(this.restApi.isToken());
+ if(this.restApi.isToken())
+ {
+
+ }else{
+ this.router.navigate(['/authentication']);
+ }
+
}
}
diff --git a/ng8-seed/src/app/components/project-detail/project-detail.component.ts b/ng8-seed/src/app/components/project-detail/project-detail.component.ts
index f3abe3f..e5ead5a 100644
--- a/ng8-seed/src/app/components/project-detail/project-detail.component.ts
+++ b/ng8-seed/src/app/components/project-detail/project-detail.component.ts
@@ -1,4 +1,8 @@
import { Component, OnInit, ViewChild } from '@angular/core';
+import { environment } from 'environments/environment';
+import { ApiService } from 'app/shared/api.service';
+import { FormBuilder } from '@angular/forms';
+import { Router } from '@angular/router';
@Component({
selector: 'app-project-detail',
@@ -22,12 +26,16 @@ export class ProjectDetailComponent implements OnInit {
url:'assets/images/csr-img/img3.jpg',
caption:'Third'
}]
+ school_details: any;
// types_of_funds=['State Fund','District Fund','School common Fund','For this Project']
- constructor() { }
+ constructor(public restApi:ApiService,public fb:FormBuilder,public router:Router) { }
ngOnInit() {
+
}
+
+
ngAfterViewInit() {
// Hack: Scrolls to top of Page after page view initialized
let top = document.getElementById('top');
diff --git a/ng8-seed/src/app/components/project-list/project-list.component.html b/ng8-seed/src/app/components/project-list/project-list.component.html
index 5408f7f..834d4e4 100644
--- a/ng8-seed/src/app/components/project-list/project-list.component.html
+++ b/ng8-seed/src/app/components/project-list/project-list.component.html
@@ -12,17 +12,18 @@
-->
-
-
-
-
+
+
+
+
+
-
+

-
Govt Higher Secondary school
-
Thiruvannamalai
+
{{schooldetails.school_name}}
+
{{schooldetails.district_name}}
@@ -31,17 +32,17 @@
info_outline
-
+
- | Estimation |
- Collected |
+ Recruitment |
+ Total Contribute |
| 1.50L |
@@ -51,281 +52,9 @@
-
-
-
-
-
-
-
-
-
-
Govt Higher Secondary school
-
Vellore
-
-
-
-
-
-
info_outline
-
-
-
- | Purpose |
- Need |
-
-
- | Building Fund |
- Urgent |
-
-
- | Estimation |
- Collected |
-
-
- | 1.50L |
- 50,000 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Govt Higher Secondary school
-
Salem
-
-
-
-
-
-
info_outline
-
-
-
- | Purpose |
- Need |
-
-
- | Building Fund |
- Urgent |
-
-
- | Estimation |
- Collected |
-
-
- | 1.50L |
- 50,000 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Govt Higher Secondary school
-
Pallavaram,Chennai
-
-
-
-
-
-
info_outline
-
-
-
- | Purpose |
- Need |
-
-
- | Building Fund |
- Urgent |
-
-
- | Estimation |
- Collected |
-
-
- | 1.50L |
- 50,000 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Govt Higher Secondary school
-
Ramanathapuram
-
-
-
-
-
-
info_outline
-
-
-
- | Purpose |
- Need |
-
-
- | Building Fund |
- Urgent |
-
-
- | Estimation |
- Collected |
-
-
- | 1.50L |
- 50,000 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Govt Higher Secondary school
-
Nagapattinam
-
-
-
-
-
-
info_outline
-
-
-
- | Purpose |
- Need |
-
-
- | Building Fund |
- Urgent |
-
-
- | Estimation |
- Collected |
-
-
- | 1.50L |
- 50,000 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Govt Higher Secondary school
-
-
-
-
-
-
-
info_outline
-
-
-
- | Purpose |
- Need |
-
-
- | Building Fund |
- Urgent |
-
-
- | Estimation |
- Collected |
-
-
- | 1.50L |
- 50,000 |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Govt Higher Secondary school
-
-
-
-
-
-
-
info_outline
-
-
-
- | Width |
- Height |
-
-
- | 3000mm |
- 4000mm |
-
-
- | Custuert |
- cutaeyw |
-
-
- | 45 |
- 29901 |
-
-
-
-
-
-
-
+
+
+