Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
added visualize-all component and fixed header and dashboard to route…
… properly and display correct info
- Loading branch information
Showing
10 changed files
with
118 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
/* div { | ||
position: absolute; | ||
top: 40%; | ||
left: 50%; | ||
transform: translate(-50%,-50%); | ||
} */ | ||
h4#header { | ||
margin-left: 110px; | ||
} | ||
|
||
p#genInfo { | ||
margin-left: 20px; | ||
} | ||
|
||
a#genLink { | ||
padding: 14px 25px; | ||
margin: 10px; | ||
display: inline-block; | ||
text-decoration: none; | ||
} |
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 |
---|---|---|
@@ -1,25 +1,18 @@ | ||
<div class="generator-main" id="findGenerator"> | ||
<div class="col-md-6 mx-auto mt-4"> | ||
<h4 class="text-center mb-3">Search for a Generator</h4> | ||
<form> | ||
<div class="form-group"> | ||
<label for="exampleInputGenerator1"></label> | ||
<input type="generator" class="form-control" id="exampleInputGenerator1" aria-describedby="emailHelp" | ||
placeholder="Enter generator"> | ||
</div> | ||
<a routerLink="/generator-search"><button type="submit" class="btn btn-primary">Search</button></a> | ||
</form> | ||
<h4 id="header"> | ||
Your Generators | ||
</h4> | ||
<br> | ||
<ul> | ||
<li *ngFor="let generator of generators$"> | ||
<a routerLink="/statistics/{{generator.gen_id}}"> | ||
{{ generator.gen_name }} | ||
</a> | ||
</li> | ||
<ol *ngFor="let generator of generators$"> | ||
<a id="genLink" class="btn btn-primary" (click)="goToGenerator(generator.gen_id, generator.org_id)">{{ generator.gen_name }}</a> | ||
<p id="genInfo"> | ||
Organization ID: {{ generator.org_id }} <br> | ||
Generator ID: {{ generator.gen_id }} <br> | ||
zipcode: {{ generator.zip }} | ||
</p> | ||
</ol> | ||
</ul> | ||
|
||
|
||
|
||
</div> | ||
|
||
|
||
</div> |
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
Empty file.
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,3 @@ | ||
<p> | ||
visualize-all works! | ||
</p> |
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 { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { VisualizeAllComponent } from './visualize-all.component'; | ||
|
||
describe('VisualizeAllComponent', () => { | ||
let component: VisualizeAllComponent; | ||
let fixture: ComponentFixture<VisualizeAllComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ VisualizeAllComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(VisualizeAllComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-visualize-all', | ||
templateUrl: './visualize-all.component.html', | ||
styleUrls: ['./visualize-all.component.css'] | ||
}) | ||
export class VisualizeAllComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |