-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #338 from chaitrali-r/demo-donor
Generalize Donor Registry
- Loading branch information
Showing
54 changed files
with
7,738 additions
and
2,752 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
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
31 changes: 31 additions & 0 deletions
31
donor-registry/src/app/certificate/certificate.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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<header> | ||
<nav class="navbar navbar-expand-lg navbar-light bg-header nav-b navbar-inverse"> | ||
<!-- <a class="nav-link pl-4" href="" onClick="history.go(-1); return false;"><i | ||
class="fa fa-angle-left primary-text"></i> </a> --> | ||
<div class="d-flex align-items-center flex-justify-between w-100"> | ||
<div class="heading-2 fw-bold">Download Pledge Certificate</div> | ||
<div class="btn btn-primary-green btn-style float-end mr-1 font-weight-bold p-2 p14" data-mdb-toggle="tooltip" (click)="dowbloadCard1()" > <i class="fa fa-download" aria-hidden="true"></i> Download Pledge Certificate</div> | ||
</div> | ||
</nav> | ||
</header> | ||
<div class="text-center" *ngIf="orientation == '_portrait'" > | ||
<button (click)="zoominbutton()" class="w-30px" type="button">+</button> | ||
<button (click)="zoomoutbutton()" class="w-30px" type="button"> - </button> | ||
</div> | ||
|
||
<div *ngIf="url && orientation == '_landscape'" class="modal-body" class="wrapper"> | ||
<iframe class="pdfDisplay" [src]="url"></iframe> | ||
</div> | ||
|
||
<div *ngIf="orientation == '_portrait'" id="pdf_container"> | ||
<canvas id="the-canvas" style="border:1px solid black"></canvas> | ||
|
||
</div> | ||
|
||
<div *ngIf="isLoading"> | ||
<div class="d-flex justify-content-center p-4"> | ||
<div class="spinner-border" role="status"> | ||
<span class="sr-only">{{'LOADING' | translate}}</span> | ||
</div> | ||
</div> | ||
</div> |
22 changes: 22 additions & 0 deletions
22
donor-registry/src/app/certificate/certificate.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.wrapper{ | ||
width: 100% !important; | ||
height: 100% !important; | ||
overflow: hidden; | ||
|
||
} | ||
|
||
.temp{ | ||
margin-left: 30%; | ||
margin-top: 1%; | ||
} | ||
|
||
.pdfDisplay{ | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
#pdf_container { background: #ccc; text-align: center; display: none; padding: 5px; overflow: auto } | ||
|
||
.w-30px{ | ||
width: 30px; | ||
} |
25 changes: 25 additions & 0 deletions
25
donor-registry/src/app/certificate/certificate.component.spec.ts
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { CertificateComponent } from './certificate.component'; | ||
|
||
describe('CertificateComponent', () => { | ||
let component: CertificateComponent; | ||
let fixture: ComponentFixture<CertificateComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ CertificateComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(CertificateComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.