Commit 02871124 by kevin

Icon chanhged

parents
# Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore
*~
*.sw[mnpcod]
*.log
*.tmp
*.tmp.*
log.txt
*.sublime-project
*.sublime-workspace
.vscode/
npm-debug.log*
.idea/
.ionic/
.sourcemaps/
.sass-cache/
.tmp/
.versions/
coverage/
www/
node_modules/
tmp/
temp/
platforms/
plugins/
plugins/android.json
plugins/ios.json
$RECYCLE.BIN/
.DS_Store
Thumbs.db
UserInterfaceState.xcuserstate
{
"$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json",
"version": 1,
"defaultProject": "app",
"newProjectRoot": "projects",
"projects": {
"app": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "www",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
{
"glob": "**/*",
"input": "src/assets",
"output": "assets"
},
{
"glob": "**/*.svg",
"input": "node_modules/ionicons/dist/ionicons/svg",
"output": "./svg"
}
],
"styles": [
{
"input": "src/theme/variables.scss"
},
{
"input": "src/global.scss"
},
{
"input": "src/app/app.scss"
}
],
"scripts": [],
"es5BrowserSupport": true
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
}
]
},
"ci": {
"progress": false
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "app:build"
},
"configurations": {
"production": {
"browserTarget": "app:build:production"
},
"ci": {
"progress": false
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "app:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [],
"scripts": [],
"assets": [
{
"glob": "favicon.ico",
"input": "src/",
"output": "/"
},
{
"glob": "**/*",
"input": "src/assets",
"output": "/assets"
}
]
},
"configurations": {
"ci": {
"progress": false,
"watch": false
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"],
"exclude": ["**/node_modules/**"]
}
},
"ionic-cordova-build": {
"builder": "@ionic/angular-toolkit:cordova-build",
"options": {
"browserTarget": "app:build"
},
"configurations": {
"production": {
"browserTarget": "app:build:production"
}
}
},
"ionic-cordova-serve": {
"builder": "@ionic/angular-toolkit:cordova-serve",
"options": {
"cordovaBuildTarget": "app:ionic-cordova-build",
"devServerTarget": "app:serve"
},
"configurations": {
"production": {
"cordovaBuildTarget": "app:ionic-cordova-build:production",
"devServerTarget": "app:serve:production"
}
}
}
}
},
"app-e2e": {
"root": "e2e/",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "app:serve"
},
"configurations": {
"production": {
"devServerTarget": "app:serve:production"
},
"ci": {
"devServerTarget": "app:serve:ci"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": ["**/node_modules/**"]
}
}
}
}
},
"cli": {
"defaultCollection": "@ionic/angular-toolkit"
},
"schematics": {
"@ionic/angular-toolkit:component": {
"styleext": "scss"
},
"@ionic/angular-toolkit:page": {
"styleext": "scss"
}
}
}
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.starter" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Eduhealth</name>
<description />
<author email="[email protected]" href="http://ionicframework.com/">Techware Software Solutions</author>
<content src="index.html" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<preference name="ScrollEnabled" value="false" />
<preference name="android-minSdkVersion" value="19" />
<preference name="BackupWebStorage" value="none" />
<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="FadeSplashScreenDuration" value="300" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="3000" />
<preference name="orientation" value="portrait" />
<platform name="android">
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
<application android:networkSecurityConfig="@xml/network_security_config" />
</edit-config>
<resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
<allow-intent href="market:*" />
<icon density="ldpi" src="resources\android\icon\drawable-ldpi-icon.png" />
<icon density="mdpi" src="resources\android\icon\drawable-mdpi-icon.png" />
<icon density="hdpi" src="resources\android\icon\drawable-hdpi-icon.png" />
<icon density="xhdpi" src="resources\android\icon\drawable-xhdpi-icon.png" />
<icon density="xxhdpi" src="resources\android\icon\drawable-xxhdpi-icon.png" />
<icon density="xxxhdpi" src="resources\android\icon\drawable-xxxhdpi-icon.png" />
<splash density="land-ldpi" src="resources\android\splash\drawable-land-ldpi-screen.png" />
<splash density="land-mdpi" src="resources\android\splash\drawable-land-mdpi-screen.png" />
<splash density="land-hdpi" src="resources\android\splash\drawable-land-hdpi-screen.png" />
<splash density="land-xhdpi" src="resources\android\splash\drawable-land-xhdpi-screen.png" />
<splash density="land-xxhdpi" src="resources\android\splash\drawable-land-xxhdpi-screen.png" />
<splash density="land-xxxhdpi" src="resources\android\splash\drawable-land-xxxhdpi-screen.png" />
<splash density="port-ldpi" src="resources\android\splash\drawable-port-ldpi-screen.png" />
<splash density="port-mdpi" src="resources\android\splash\drawable-port-mdpi-screen.png" />
<splash density="port-hdpi" src="resources\android\splash\drawable-port-hdpi-screen.png" />
<splash density="port-xhdpi" src="resources\android\splash\drawable-port-xhdpi-screen.png" />
<splash density="port-xxhdpi" src="resources\android\splash\drawable-port-xxhdpi-screen.png" />
<splash density="port-xxxhdpi" src="resources\android\splash\drawable-port-xxxhdpi-screen.png" />
<preference name="Fullscreen" value="true" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<icon height="57" src="resources\ios\icon\icon.png" width="57" />
<icon height="114" src="resources\ios\icon\[email protected]" width="114" />
<icon height="40" src="resources\ios\icon\icon-40.png" width="40" />
<icon height="80" src="resources\ios\icon\[email protected]" width="80" />
<icon height="120" src="resources\ios\icon\[email protected]" width="120" />
<icon height="50" src="resources\ios\icon\icon-50.png" width="50" />
<icon height="100" src="resources\ios\icon\[email protected]" width="100" />
<icon height="60" src="resources\ios\icon\icon-60.png" width="60" />
<icon height="120" src="resources\ios\icon\[email protected]" width="120" />
<icon height="180" src="resources\ios\icon\[email protected]" width="180" />
<icon height="72" src="resources\ios\icon\icon-72.png" width="72" />
<icon height="144" src="resources\ios\icon\[email protected]" width="144" />
<icon height="76" src="resources\ios\icon\icon-76.png" width="76" />
<icon height="152" src="resources\ios\icon\[email protected]" width="152" />
<icon height="167" src="resources\ios\icon\[email protected]" width="167" />
<icon height="29" src="resources\ios\icon\icon-small.png" width="29" />
<icon height="58" src="resources\ios\icon\[email protected]" width="58" />
<icon height="87" src="resources\ios\icon\[email protected]" width="87" />
<icon height="1024" src="resources\ios\icon\icon-1024.png" width="1024" />
<splash height="1136" src="resources\ios\splash\Default-568h@2x~iphone.png" width="640" />
<splash height="1334" src="resources\ios\splash\Default-667h.png" width="750" />
<splash height="2208" src="resources\ios\splash\Default-736h.png" width="1242" />
<splash height="1242" src="resources\ios\splash\Default-Landscape-736h.png" width="2208" />
<splash height="1536" src="resources\ios\splash\Default-Landscape@2x~ipad.png" width="2048" />
<splash height="2048" src="resources\ios\splash\Default-Landscape@~ipadpro.png" width="2732" />
<splash height="768" src="resources\ios\splash\Default-Landscape~ipad.png" width="1024" />
<splash height="2048" src="resources\ios\splash\Default-Portrait@2x~ipad.png" width="1536" />
<splash height="2732" src="resources\ios\splash\Default-Portrait@~ipadpro.png" width="2048" />
<splash height="1024" src="resources\ios\splash\Default-Portrait~ipad.png" width="768" />
<splash height="960" src="resources\ios\splash\Default@2x~iphone.png" width="640" />
<splash height="480" src="resources\ios\splash\Default~iphone.png" width="320" />
<splash height="2732" src="resources\ios\splash\Default@2x~universal~anyany.png" width="2732" />
<preference name="StatusBarOverlaysWebView" value="false" />
</platform>
<plugin name="cordova-plugin-whitelist" spec="1.3.3" />
<plugin name="cordova-plugin-statusbar" spec="2.4.2" />
<plugin name="cordova-plugin-device" spec="2.0.2" />
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="cordova-plugin-ionic-webview" spec="^4.0.0" />
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
<engine name="android" spec="^7.1.4" />
</widget>
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const { SpecReporter } = require('jasmine-spec-reporter');
exports.config = {
allScriptsTimeout: 11000,
specs: [
'./src/**/*.e2e-spec.ts'
],
capabilities: {
'browserName': 'chrome'
},
directConnect: true,
baseUrl: 'http://localhost:4200/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
print: function() {}
},
onPrepare() {
require('ts-node').register({
project: require('path').join(__dirname, './tsconfig.e2e.json')
});
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
}
};
import { AppPage } from './app.po';
describe('new App', () => {
let page: AppPage;
beforeEach(() => {
page = new AppPage();
});
describe('default screen', () => {
beforeEach(() => {
page.navigateTo('/home');
});
it('should have a title saying Home', () => {
page.getPageOneTitleText().then(title => {
expect(title).toEqual('Home');
});
});
});
});
import { browser, by, element } from 'protractor';
export class AppPage {
navigateTo(destination) {
return browser.get(destination);
}
getTitle() {
return browser.getTitle();
}
getPageOneTitleText() {
return element(by.tagName('app-home')).element(by.deepCss('ion-title')).getText();
}
}
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"module": "commonjs",
"target": "es5",
"types": [
"jasmine",
"jasminewd2",
"node"
]
}
}
{
"name": "eduhealth",
"integrations": {
"cordova": {}
},
"type": "angular"
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"name": "eduhealth",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "https://ionicframework.com/",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^8.0.1",
"@angular/common": "^7.2.2",
"@angular/core": "^7.2.2",
"@angular/forms": "^7.2.2",
"@angular/http": "^7.2.2",
"@angular/platform-browser": "^7.2.2",
"@angular/platform-browser-dynamic": "^7.2.2",
"@angular/router": "^7.2.2",
"@ionic-native/core": "^5.0.0",
"@ionic-native/splash-screen": "^5.0.0",
"@ionic-native/status-bar": "^5.0.0",
"@ionic/angular": "^4.1.0",
"cordova": "^9.0.0",
"cordova-android": "^7.1.4",
"cordova-ios": "^5.0.1",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^4.1.0",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "git+https://github.com/apache/cordova-plugin-statusbar.git",
"cordova-plugin-whitelist": "^1.3.3",
"core-js": "^2.5.4",
"ionic": "^5.0.3",
"rxjs": "~6.5.1",
"tslib": "^1.9.0",
"zone.js": "~0.8.29"
},
"devDependencies": {
"@angular-devkit/architect": "~0.13.8",
"@angular-devkit/build-angular": "~0.13.8",
"@angular-devkit/core": "~7.3.8",
"@angular-devkit/schematics": "~7.3.8",
"@angular/cli": "~7.3.8",
"@angular/compiler": "~7.2.2",
"@angular/compiler-cli": "~7.2.2",
"@angular/language-service": "~7.2.2",
"@ionic/angular-toolkit": "~1.5.1",
"@types/node": "~12.0.0",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.1.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~8.3.0",
"tslint": "~5.17.0",
"typescript": "~3.1.6"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
},
"cordova-plugin-ionic-keyboard": {}
},
"platforms": [
"android",
"ios"
]
}
}
\ No newline at end of file
These are Cordova resources. You can replace icon.png and splash.png and run
`ionic cordova resources` to generate custom icons and splash screens for your
app. See `ionic cordova resources --help` for details.
Cordova reference documentation:
- Icons: https://cordova.apache.org/docs/en/latest/config_ref/images.html
- Splash Screens: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain>localhost</domain>
</domain-config>
</network-security-config>
import { NgModule } from '@angular/core';
import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
const routes: Routes = [
{
path: '',
redirectTo: 'login',
pathMatch: 'full'
},
{
path: 'home',
loadChildren: './home/home.module#HomePageModule'
},
{
path: 'list',
loadChildren: './list/list.module#ListPageModule'
},
{
path: 'login',
loadChildren: './login/login.module#LoginPageModule'
},
{
path: 'signup',
loadChildren: './signup/signup.module#SignupPageModule'
},
{
path: 'details/:id',
loadChildren: './details/details.module#DetailsPageModule'
},
{ path: 'medicalauthorization/:id',
loadChildren: './medicalauthorization/medicalauthorization.module#MedicalauthorizationPageModule'
},
{ path: 'studentsprofile/:id', loadChildren: './studentsprofile/studentsprofile.module#StudentsprofilePageModule' },
{ path: 'healthcareforum/:id', loadChildren: './healthcareforum/healthcareforum.module#HealthcareforumPageModule' },
{ path: 'treatmentauthorization/:id', loadChildren: './treatmentauthorization/treatmentauthorization.module#TreatmentauthorizationPageModule' },
{ path: 'medicationtracking/:id', loadChildren: './medicationtracking/medicationtracking.module#MedicationtrackingPageModule' },
{ path: 'treatmenttrackings/:id', loadChildren: './treatmenttrackings/treatmenttrackings.module#TreatmenttrackingsPageModule' },
{ path: 'screenings/:id', loadChildren: './screenings/screenings.module#ScreeningsPageModule' },
{ path: 'chartvisits/:id', loadChildren: './chartvisits/chartvisits.module#ChartvisitsPageModule' },
{ path: 'immunizations/:id', loadChildren: './immunizations/immunizations.module#ImmunizationsPageModule' },
{ path: 'medicalhistory/:id', loadChildren: './medicalhistory/medicalhistory.module#MedicalhistoryPageModule' },
{ path: 'healthhistory/:id', loadChildren: './healthhistory/healthhistory.module#HealthhistoryPageModule' }
];
@NgModule({
imports: [
RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
],
exports: [RouterModule]
})
export class AppRoutingModule {}
<ion-app>
<ion-split-pane>
<!-- <ion-menu type="overlay">
<ion-header>
<ion-toolbar>
<ion-title>Menu</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-list>
<ion-menu-toggle auto-hide="false" *ngFor="let p of appPages">
<ion-item [routerDirection]="'root'" [routerLink]="[p.url]">
<ion-icon slot="start" [name]="p.icon"></ion-icon>
<ion-label>
{{p.title}}
</ion-label>
</ion-item>
</ion-menu-toggle>
</ion-list>
</ion-content>
</ion-menu> -->
<ion-router-outlet main></ion-router-outlet>
</ion-split-pane>
</ion-app>
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { TestBed, async } from '@angular/core/testing';
import { Platform } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
describe('AppComponent', () => {
let statusBarSpy, splashScreenSpy, platformReadySpy, platformSpy;
beforeEach(async(() => {
statusBarSpy = jasmine.createSpyObj('StatusBar', ['styleDefault']);
splashScreenSpy = jasmine.createSpyObj('SplashScreen', ['hide']);
platformReadySpy = Promise.resolve();
platformSpy = jasmine.createSpyObj('Platform', { ready: platformReadySpy });
TestBed.configureTestingModule({
declarations: [AppComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
providers: [
{ provide: StatusBar, useValue: statusBarSpy },
{ provide: SplashScreen, useValue: splashScreenSpy },
{ provide: Platform, useValue: platformSpy },
],
imports: [ RouterTestingModule.withRoutes([])],
}).compileComponents();
}));
it('should create the app', async () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.debugElement.componentInstance;
expect(app).toBeTruthy();
});
it('should initialize the app', async () => {
TestBed.createComponent(AppComponent);
expect(platformSpy.ready).toHaveBeenCalled();
await platformReadySpy;
expect(statusBarSpy.styleDefault).toHaveBeenCalled();
expect(splashScreenSpy.hide).toHaveBeenCalled();
});
it('should have menu labels', async () => {
const fixture = await TestBed.createComponent(AppComponent);
await fixture.detectChanges();
const app = fixture.nativeElement;
const menuItems = app.querySelectorAll('ion-label');
expect(menuItems.length).toEqual(2);
expect(menuItems[0].textContent).toContain('Home');
expect(menuItems[1].textContent).toContain('List');
});
it('should have urls', async () => {
const fixture = await TestBed.createComponent(AppComponent);
await fixture.detectChanges();
const app = fixture.nativeElement;
const menuItems = app.querySelectorAll('ion-item');
expect(menuItems.length).toEqual(2);
expect(menuItems[0].getAttribute('ng-reflect-router-link')).toEqual('/home');
expect(menuItems[1].getAttribute('ng-reflect-router-link')).toEqual('/list');
});
});
import { Component } from '@angular/core';
import { Platform } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html'
})
export class AppComponent {
public appPages = [
{
title: 'Home',
url: '/home',
icon: 'home'
},
{
title: 'List',
url: '/list',
icon: 'list'
}
];
constructor(
private platform: Platform,
private splashScreen: SplashScreen,
private statusBar: StatusBar
) {
this.initializeApp();
}
initializeApp() {
this.platform.ready().then(() => {
//this.statusBar.styleDefault();--Android
this.statusBar.hide();
this.splashScreen.hide();
});
}
}
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule } from '@angular/common/http';
import { HttpModule } from '@angular/http';
import { ReactiveFormsModule,FormsModule } from '@angular/forms';
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
BrowserModule,
IonicModule.forRoot(),
AppRoutingModule,
BrowserAnimationsModule,
FormsModule,
ReactiveFormsModule,
HttpClientModule,
HttpModule
],
providers: [
StatusBar,
SplashScreen,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}
/*
Site Name: TECHNOBEAT
URI: http:
Description: This is the theme scss for TECHNOBEAT
Version: 2.0
Author:
Author URI:
Tags:
---------------------------
THEME STYLES
---------------------------
TABLE OF CONTENTS
---------------------------
01. FONTS-N-SIZES
02. FONTS-COLOR
03. THEMES-N-BACKGROUNDS
04. SPACING-N-POSITIONS
05. ALIGMENTS
06. ALERTS-N-MESSAGES
*/
/*-------------------------------
01. FONTS-N-SIZES
--------------------------------*/
@import url('https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i');
@import url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css);
* {
font-family: 'Roboto', sans-serif;
-webkit-font-smoothing: antialiased;
}
*::-webkit-scrollbar {
display: none;
}
.no-scroll .scroll-content {
overflow: hidden;
}
a {
text-decoration: none !important;
}
button{
outline: none;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none !important;
margin: 0;
}
html,
body {
font-family: 'Lato', sans-serif !important;
margin:0px;
}
button{
cursor: pointer;
}
/*-------------------------------
02. FONTS-SETTINGS
--------------------------------*/
.text_color_white {
color: #fff !important;
}
.font_size_xs {
font-size: 12px !important;
}
.font_size_sm {
font-size: 14px !important;
}
.font_size_md {
font-size: 16px !important;
}
.font_size_lg {
font-size: 18px !important;
}
.font_size_xl {
font-size: 20px !important;
}
.font_size_vl {
font-size: 35px !important;
}
.font_weight300 {
font-weight: 300 !important;
}
.font_weight400 {
font-weight: 400 !important;
}
.font_weight500 {
font-weight: 500 !important;
}
.font_weight600 {
font-weight: 600 !important;
}
/*-------------------------------
03. THEMES-N-BACKGROUNDS
--------------------------------*/
.theme_background {
background-size: cover !important;
background-position: center !important;
}
.theme_transparent {
background: transparent !important;
}
.theme_white {
background-color: #f7f8fd !important;
}
.theme_off_white {
background-color: #f4f4f4 !important;
}
.theme_dark_transparent {
background-color: rgba(0, 0, 0, 0.6) !important;
}
.theme_white_transparent {
background-color: rgba(243, 243, 243, 0.6) !important;
}
/*-------------------------------
04. SPACING-N-POSITIONS
--------------------------------*/
.width25 {
width: 25% !important;
}
.width50 {
width: 50% !important;
}
.width75 {
width: 75% !important;
}
.widthFull {
width: 100% !important;
}
.widthAuto {
width: auto !important;
}
.height25 {
height: 25% !important;
}
.height50 {
height: 50% !important;
}
.height75 {
width: 75% !important;
}
.heightFull {
height: 100% !important;
}
.heightAuto {
height: auto !important;
}
.p0 {
padding: 0px !important;
}
.pl0 {
padding-left: 0px !important;
}
.pr0 {
padding-right: 0px !important;
}
.pt0 {
padding-top: 0px !important;
}
.pb0 {
padding-bottom: 0px !important;
}
.p10 {
padding: 10px !important;
}
.pt10 {
padding-top: 10px !important;
}
.m0 {
margin: 0px !important;
}
.ml0 {
margin-left: 0px !important;
}
.mr0 {
margin-right: 0px !important;
}
.mt0 {
margin-top: 0px !important;
}
.mb0 {
margin-bottom: 0px !important;
}
.mAuto {
margin: 0 auto !important;
}
.clear {
clear: both !important;
}
.absolute {
position: absolute !important;
}
.relative {
position: relative !important;
}
.fixed {
position: fixed !important;
}
.borderNone {
border: none !important;
}
/*-------------------------------
05. ALIGMENTS
--------------------------------*/
.floatLeft {
float: left !important;
}
.floatRight {
float: right !important;
}
.textLeft {
text-align: left !important;
}
.textRight {
text-align: right !important;
}
.textCenter {
text-align: center !important;
}
.app_header{
background:#004989;
}
.nav_btn{
width:50px;
height:50px;
background-color: transparent;
color: #fff;
font-size: 25px;
}
.nav_title{
width: calc(100% - 50px);
color: #292929;
padding: 15px;
font-weight: 400;
img{
width: 135px;
}
h4{
margin: 0px;
font-weight: 400;
padding:0px;
font-size: 28px;
}
}
.nav_btn{
width: 50px;
height: 60px;
background-repeat: no-repeat !important;
background-position: center !important;
background-size: 20px !important;
}
.nav_back{
background: url("../assets/imgs/asset_back.png");
}
.nav_more{
background: url("../assets/imgs/asset_more.png");
}
.item-native{
padding-left: 0px !important;
}
.header-md:after{
background-image: none !important;
}
.header-ios:after{
background-image: none !important;
}
.button-native{
border-radius: 0px !important;
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { ChartvisitsPage } from './chartvisits.page';
const routes: Routes = [
{
path: '',
component: ChartvisitsPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [ChartvisitsPage]
})
export class ChartvisitsPageModule {}
<ion-header>
<button class="nav_btn nav_back floatLeft">
<!-- <ion-back-button>
</ion-back-button> -->
</button>
<div class="nav_title floatLeft">
<h4>Chart Visits</h4>
</div>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul *ngIf="chart_details">
<li *ngFor="let chart_data of chart_details; let i= index">
<div class="list_main" (click)="toggleGroup(i)" [ngClass]="{active:isGroupShown(i)}">
<div class="col floatLeft">
<p>Office Visit Type</p>
<h3><strong>{{chart_data.office_vist_type}}</strong></h3>
</div>
<!-- <div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>06/12/2019</h3>
</div> -->
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(i)">
<div class="list_bar">
<div class="col floatLeft">
<p>Issue Visit Reason</p>
<h3>{{chart_data.issue_visit_reason}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Provider Name</p>
<h3>{{chart_data.provider_name}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Time In</p>
<h3>{{chart_data.date_in}} {{chart_data.time_in}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Time Out</p>
<h3>{{chart_data.date_out}} {{chart_data.time_out}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Contact with Parent</p>
<h3>{{chart_data.contact_with_parent}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Visit Outcome</p>
<h3>{{chart_data.visit_outcome}}</h3>
</div>
<div class="clear"></div>
</div>
<!-- <div class="list_bar">
<div class="col floatLeft">
<p>Action</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="clear"></div>
</div> -->
</div>
<!-- </li>
<li>
<div class="list_main" (click)="toggleGroup(1)" [ngClass]="{active:isGroupShown(1)}">
<div class="col floatLeft">
<p>Name</p>
<h3><strong>Medication Authorizations</strong></h3>
</div>
<div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>06/12/2019</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(1)">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of medicine</p>
<h3>Potassium Chloride</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>2 Days</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Tme of first medication</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Quantity Available</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li> -->
</ul>
</div>
</ion-content>
.nav_title{
width: calc(100% - 50px);
padding-left: 0px;
}
.list_wrapper{
ul{
margin:0px;
padding:10px;
li{
list-style: none;
margin-bottom: 10px;
.list_main{
padding: 10px;
background-color: #e8effa !important;
border-left:3px solid #1b4077;
background-image: url("../../assets/imgs/asset_drop_btn_right.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
padding-right: 40px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
margin-right: 10px;
border-right:1px solid #686868;
}
}
.active{
background: url("../../assets/imgs/asset_drop_btn.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
}
.list_sub{
padding: 10px;
background: #e8effa;
border-left:3px solid #1b4077;
border-top: 1px solid #c7c7c7;
.list_bar{
padding-bottom: 10px;
}
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
width: calc(50% - 10px);
margin-right: 10px;
border-right:1px solid #686868;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ChartvisitsPage } from './chartvisits.page';
describe('ChartvisitsPage', () => {
let component: ChartvisitsPage;
let fixture: ComponentFixture<ChartvisitsPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ChartvisitsPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ChartvisitsPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component,OnInit, ElementRef, NgZone, ViewChild} from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
import {MyserviceService} from '../myservice.service'
import { LoadingController, AlertController, NavController } from '@ionic/angular';
@Component({
selector: 'app-chartvisits',
templateUrl: './chartvisits.page.html',
styleUrls: ['./chartvisits.page.scss'],
})
export class ChartvisitsPage implements OnInit {
shownGroup = null;
chart_details : any
constructor(private myservice : MyserviceService , public navctrl:NavController) {
this.shownGroup = 0;
this.chart_details= {
"message":"success",
"data" : [
{
"office_vist_type":"Random Checkup",
"issue_visit_reason":"Migrine",
"provider_name":"Admin Nuvento",
"time_in":"15:49:00",
"date_in":"12/6/2019",
"time_out":"16:30:00",
"date_out":"12/6/2019",
"contact_with_parent":"no",
"visit_outcome":"Relief",
},
{
"office_vist_type":"General Checkup",
"issue_visit_reason":"Fever",
"provider_name":"Admin Nuvento",
"time_in":"15:49:00",
"date_in":"12/7/2019 ",
"time_out":"11:00:00",
"date_out":"06/13/2019 ",
"contact_with_parent":"yes",
"visit_outcome":"test",
}
]
};
this.get_chartDetails();
}
ngOnInit() {
}
isGroupShown(group) {
return this.shownGroup === group;
}
toggleGroup(group) {
if (this.isGroupShown(group)) {
this.shownGroup = null;
} else {
this.shownGroup = group;
}
}
get_chartDetails() {
this.chart_details = this.myservice.ObjArray(this.chart_details.data);
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { DetailsPage } from './details.page';
const routes: Routes = [
{
path: '',
component: DetailsPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [DetailsPage]
})
export class DetailsPageModule {}
<ion-header>
<!-- <button class="nav_btn nav_back floatLeft">
<ion-back-button>
</ion-back-button>
</button> -->
<div class="nav_title floatLeft">
<h4>Student Profile</h4>
</div>
<!-- <button class="nav_btn nav_more floatLeft" (click)="popToggle()">
</button> -->
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="detail_wrapper">
<div *ngIf ="student_details">
<div class="detail_circle_img">
<img [src]="student_details.img_src">
</div>
<h4>{{student_details.first_name}} {{student_details.last_name}}</h4>
<div class="detail_grid">
<ion-row>
<ion-col col>
<p>Student Number</p>
<h3>{{student_details.student_number}}</h3>
</ion-col>
<ion-col col>
<p>Graduation Year</p>
<h3>{{student_details.graduation_year}}</h3>
</ion-col>
<ion-col col>
<p>Grade</p>
<h3>{{student_details.grade}}</h3>
</ion-col>
</ion-row>
<ion-row>
<ion-col col>
<p>DOB</p>
<h3>{{student_details.dob}}</h3>
</ion-col>
<ion-col col>
<p>School Name</p>
<h3>{{student_details.school_name}}</h3>
</ion-col>
<ion-col col>
<p>Gender</p>
<h3>{{student_details.gender}}</h3>
</ion-col>
</ion-row>
</div>
</div>
<div class="detail_listing">
<ul>
<li (click)="goToPage('studentsprofile')">
<img src="../../assets/imgs/m1.png" >
<p>Student<br> Health</p>
</li>
<li (click)="goToPage('healthcareforum')">
<img src="../../assets/imgs/m2.png">
<p>Health care<br> form</p>
</li>
<li (click)="goToPage('medicalauthorization')">
<img src="../../assets/imgs/m3.png">
<p>Medication <br>Authorization</p>
</li>
<li (click)="goToPage('treatmentauthorization')">
<img src="../../assets/imgs/m4.png">
<p>Treatment<br> Authorization</p>
</li>
<li (click)="goToPage('medicationtracking')">
<img src="../../assets/imgs/m5.png">
<p>Medication<br>Trackings</p>
</li>
<li (click)="goToPage('treatmenttrackings')">
<img src="../../assets/imgs/m6.png">
<p>Treatment<br>Trackings</p>
</li>
<li (click)="goToPage('screenings')">
<img src="../../assets/imgs/m7.png">
<p>Screenings</p>
</li>
<li (click)="goToPage('chartvisits')">
<img src="../../assets/imgs/m1.png">
<p>Chart Visits</p>
</li>
<li (click)="goToPage('immunizations')">
<img src="../../assets/imgs/m8.png">
<p>Immunizations</p>
</li>
<li (click)="goToPage('medicalhistory')">
<img src="../../assets/imgs/m9.png">
<p>Medical History</p>
</li>
<li (click)="goToPage('healthhistory')">
<img src="../../assets/imgs/m10.png">
<p>Health History</p>
</li>
</ul>
</div>
</div>
<!-- <div class="custom_popover" *ngIf="isToggle" [@slideInOut] (click)="popToggle()">
<div class="popover_inner">
<ul>
<li>
<img src="../../assets/imgs/asset_parent_request.png">
<p>Parent Requests</p>
<div class="clear"></div>
</li>
<li>
<img src="../../assets/imgs/asset_change_request.png">
<p>Change Requests</p>
<div class="clear"></div>
</li>
</ul>
</div>
</div> -->
</ion-content>
.nav_title{
width: calc(100% - 100px);
padding-left: 0px;
}
.detail_wrapper{
width:100%;
padding:10px;
.detail_circle_img{
width:100px;
height:100px;
margin: 0 auto;
border-radius: 50%;
border:2px solid #1b4077;
img{
width:100%;
height:100%;
object-position: center;
object-fit:cover;
border-radius: 50%;
}
}
h4{
text-align: center;
color: #0d0d0d;
font-weight: 600;
}
.detail_grid{
padding-top: 15px;
ion-col{
background: #e5edfa;
border: 1px solid #fff;
padding:10px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
}
}
}
.detail_listing{
padding-top:25px;
ul{
margin: 0px;
padding:0px;
li{
display: inline-block;
width: calc(100% - 67%);
text-align: center;
padding-top: 10px;
padding-bottom: 10px;
img{
width:50px;
}
p{
margin:0px;
color: #0d0d0d;
text-align: center;
padding-top: 5px;
}
}
}
}
}
.custom_popover{
position: fixed;
background:rgba(0,0,0,0.6);
top:0px;
left:0px;
right:0px;
bottom: 0px;
z-index: 999;
.popover_inner{
background: #fff;
position: absolute;
right:20px;
top: 60px;
ul{
padding:0px;
margin:0px;
li{
list-style: none;
padding: 10px;
img{
width: 30px;
float: left;
}
p{
float: left;
margin: 0px;
padding: 6px;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DetailsPage } from './details.page';
describe('DetailsPage', () => {
let component: DetailsPage;
let fixture: ComponentFixture<DetailsPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ DetailsPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(DetailsPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component,OnInit, ElementRef, NgZone, ViewChild} from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
import { Router, ActivatedRoute } from '@angular/router';
import { MyserviceService} from '../myservice.service'
@Component({
selector: 'app-details',
templateUrl: './details.page.html',
styleUrls: ['./details.page.scss'],
animations: [
trigger('slideInOut', [
transition(':enter', [
style({transform: 'translateY(-100%)'}),
animate('100ms ease-in', style({transform: 'translateY(0%)'}))
]),
transition(':leave', [
animate('100ms ease-out', style({transform: 'translateY(-100%)'}))
])
])
]
})
export class DetailsPage implements OnInit {
stud1:boolean;
stud2:boolean;
stud3:boolean;
navCtrl: any;
isToggle = false;
id: any;
student_details:any;
constructor(private route: ActivatedRoute ,private myservice:MyserviceService,private router: Router) {
}
ngOnInit() {
this.id = this.route.snapshot.paramMap.get('id');
console.log(this.id);
this.get_StudentDetails();
}
get_StudentDetails() {
var This= this;
this.myservice.presentLoader();
console.log('Id',this.id)
this.myservice.load_get('student_details/id/'+this.id).subscribe(resp =>
{
console.log(resp);
This.myservice.dismissLoader();
this.student_details=resp;
})
}
goToPage(path,data=null){
this.router.navigateByUrl('/'+path+'/'+this.id);
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
popToggle(){
this.isToggle = !this.isToggle;
}
getimage() {
console.log('Student number',this.student_details.student_no)
if(this.student_details.student_no = 1)
{
console.log('check')
var img1 ="../../assets/imgs/asset_img1.png";
return img1;
}
if(this.student_details.student_id = 2) {
var img2 = "../../assets/imgs/asset_img2.png";
return img2;
}
if(this.student_details.student_id = 3) {
var img3 = "../../assets/imgs/asset_img3.png";
return img3;
}
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { HealthcareforumPage } from './healthcareforum.page';
const routes: Routes = [
{
path: '',
component: HealthcareforumPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [HealthcareforumPage]
})
export class HealthcareforumPageModule {}
<ion-header>
<!-- <button class="nav_btn nav_back floatLeft">
<ion-back-button>
</ion-back-button>
</button> -->
<div class="nav_title floatLeft">
<h4>Health Form</h4>
</div>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul>
<li *ngIf="health_formData">
<div class="list_main" (click)="toggleGroup(0)" [ngClass]="{active:isGroupShown(0)}">
<div class="col floatLeft">
<p>Name</p>
<h3><strong>{{health_formData.name}}</strong></h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(0)">
<div class="list_bar">
<div class="col floatLeft">
<p>Uploaded By</p>
<h3>{{health_formData.uploaded_by}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Uploaded</p>
<h3>{{health_formData.uploaded}} {{health_formData.uploaded_time}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>School Year</p>
<h3>{{health_formData.school_year}}</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li>
<!-- <li>
<div class="list_main" (click)="toggleGroup(1)" [ngClass]="{active:isGroupShown(1)}">
<div class="col floatLeft">
<p>Name</p>
<h3><strong>Medication Authorizations</strong></h3>
</div>
<div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>06/12/2019</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(1)">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of medicine</p>
<h3>Potassium Chloride</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>2 Days</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Tme of first medication</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Quantity Available</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li> -->
</ul>
</div>
</ion-content>
\ No newline at end of file
.nav_title{
width: calc(100% - 50px);
padding-left: 0px;
}
.list_wrapper{
ul{
margin:0px;
padding:10px;
li{
list-style: none;
margin-bottom: 10px;
.list_main{
padding: 10px;
background-color: #e8effa !important;
border-left:3px solid #1b4077;
background-image: url("../../assets/imgs/asset_drop_btn_right.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
padding-right: 40px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
margin-right: 10px;
border-right:1px solid #686868;
}
}
.active{
background: url("../../assets/imgs/asset_drop_btn.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
}
.list_sub{
padding: 10px;
background: #e8effa;
border-left:3px solid #1b4077;
border-top: 1px solid #c7c7c7;
.list_bar{
padding-bottom: 10px;
}
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
width: calc(50% - 10px);
margin-right: 10px;
border-right:1px solid #686868;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HealthcareforumPage } from './healthcareforum.page';
describe('HealthcareforumPage', () => {
let component: HealthcareforumPage;
let fixture: ComponentFixture<HealthcareforumPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HealthcareforumPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(HealthcareforumPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component,OnInit, ElementRef, NgZone, ViewChild} from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
@Component({
selector: 'app-healthcareforum',
templateUrl: './healthcareforum.page.html',
styleUrls: ['./healthcareforum.page.scss'],
})
export class HealthcareforumPage implements OnInit {
shownGroup = null;
health_formData:any
constructor() {
this.shownGroup = 0;
this.health_formData = {
"message":"success",
"name":"healthform201951012103181",
"school_year":"2016-2017",
"uploaded_by":"Admin Nuvento",
"uploaded":"10/6/19",
"uploaded_time":"12:10:00"
}
}
ngOnInit() {
}
isGroupShown(group) {
return this.shownGroup === group;
}
toggleGroup(group) {
if (this.isGroupShown(group)) {
this.shownGroup = null;
} else {
this.shownGroup = group;
}
}
get_healthformData() {
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { HealthhistoryPage } from './healthhistory.page';
const routes: Routes = [
{
path: '',
component: HealthhistoryPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [HealthhistoryPage]
})
export class HealthhistoryPageModule {}
<ion-header>
<!-- <button class="nav_btn nav_back floatLeft">
<ion-back-button>
</ion-back-button>
</button> -->
<div class="nav_title floatLeft">
<h4>Health History</h4>
</div>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul>
<li>
<div class="list_main" (click)="toggleGroup(0)" [ngClass]="{active:isGroupShown(0)}">
<div class="col floatLeft">
<p>File Name</p>
<h3><strong>3359_2019-03-27T11_08_40Z.pdf</strong></h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(0)">
<div class="list_bar">
<div class="col floatLeft">
<p>School Name</p>
<h3>Jabir Alil School </h3>
</div>
<div class="col floatLeft borderNone">
<p>First Name</p>
<h3>KelvinA</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Last Name</p>
<h3>Joseph</h3>
</div>
<div class="col floatLeft borderNone">
<p>Grade</p>
<h3>3</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li>
<!-- <li>
<div class="list_main" (click)="toggleGroup(1)" [ngClass]="{active:isGroupShown(1)}">
<div class="col floatLeft">
<p>Name</p>
<h3><strong>Medication Authorizations</strong></h3>
</div>
<div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>06/12/2019</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(1)">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of medicine</p>
<h3>Potassium Chloride</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>2 Days</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Tme of first medication</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Quantity Available</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li> -->
</ul>
</div>
</ion-content>
\ No newline at end of file
.nav_title{
width: calc(100% - 50px);
padding-left: 0px;
}
.list_wrapper{
ul{
margin:0px;
padding:10px;
li{
list-style: none;
margin-bottom: 10px;
.list_main{
padding: 10px;
background-color: #e8effa !important;
border-left:3px solid #1b4077;
background-image: url("../../assets/imgs/asset_drop_btn_right.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
padding-right: 40px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
margin-right: 10px;
border-right:1px solid #686868;
}
}
.active{
background: url("../../assets/imgs/asset_drop_btn.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
}
.list_sub{
padding: 10px;
background: #e8effa;
border-left:3px solid #1b4077;
border-top: 1px solid #c7c7c7;
.list_bar{
padding-bottom: 10px;
}
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
width: calc(50% - 10px);
margin-right: 10px;
border-right:1px solid #686868;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HealthhistoryPage } from './healthhistory.page';
describe('HealthhistoryPage', () => {
let component: HealthhistoryPage;
let fixture: ComponentFixture<HealthhistoryPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HealthhistoryPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(HealthhistoryPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-healthhistory',
templateUrl: './healthhistory.page.html',
styleUrls: ['./healthhistory.page.scss'],
})
export class HealthhistoryPage implements OnInit {
shownGroup = null;
constructor() {
this.shownGroup = 0;
}
ngOnInit() {
}
isGroupShown(group) {
return this.shownGroup === group;
}
toggleGroup(group) {
if (this.isGroupShown(group)) {
this.shownGroup = null;
} else {
this.shownGroup = group;
}
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { IonicModule } from '@ionic/angular';
import { RouterModule } from '@angular/router';
import { HomePage } from './home.page';
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild([
{
path: '',
component: HomePage
}
])
],
declarations: [HomePage]
})
export class HomePageModule {}
<ion-header>
<div class="nav_title floatLeft">
<h4>Students Details</h4>
</div>
<button class="nav_btn floatRight" (click)="logout()">
<ion-icon name="log-out" ></ion-icon>
</button>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul *ngIf="student_data">
<li (click)="goToPage('details','1')">
<div class="image_div">
<img src="../../assets/imgs/asset_img1.png">
</div>
<div class="other_details">
<div class="col_div">
<p>First Name</p>
<h3><strong>{{student_data[0].first_name}}</strong></h3>
<p>Last Name</p>
<h3>{{student_data[0].last_name}}</h3>
</div>
<div class="col_div borderNone">
<p>Student Number</p>
<h3>{{student_data[0].student_number}}</h3>
<p>School Name</p>
<h3>{{student_data[0].school_name}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</li>
<li (click)="goToPage('details','2')">
<div class="image_div">
<img src="../../assets/imgs/asset_img2.png">
</div>
<div class="other_details">
<div class="col_div">
<p>First Name</p>
<h3><strong>{{student_data[1].first_name}}</strong></h3>
<p>Last Name</p>
<h3>{{student_data[1].last_name}}</h3>
</div>
<div class="col_div borderNone">
<p>Student Number</p>
<h3>{{student_data[1].student_number}}</h3>
<p>School Name</p>
<h3>{{student_data[1].school_name}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</li>
<li (click)="goToPage('details','3')">
<div class="image_div">
<img src="../../assets/imgs/asset_img3.png">
</div>
<div class="other_details">
<div class="col_div">
<p>First Name</p>
<h3><strong>{{student_data[2].first_name}}</strong></h3>
<p>Last Name</p>
<h3>{{student_data[2].last_name}}</h3>
</div>
<div class="col_div borderNone">
<p>Student Number</p>
<h3>{{student_data[2].student_number}}</h3>
<p>School Name</p>
<h3>{{student_data[2].school_name}}</h3>
</div>
<div class="clear"></div>
</div>
<div class="clear"></div>
</li>
</ul>
</div>
</ion-content>
.nav_title{
width: calc(100% - 50px);
padding-left: 10px;
}
ion-icon{
color: #292929;
}
.list_wrapper{
padding: 15px;
padding-top: 0px;
ul
{
padding: 0px;
margin: 0px;
li{
list-style: none;
border-left:2px solid #1b4077;
background: #e8effa;
margin-bottom: 10px;
padding:10px;
.image_div{
width:70px;
height:70px;
border:2px solid #1b4077;
border-radius: 50%;
float: left;
img{
width:100%;
height: 100%;
object-fit: cover;
object-position: center;
border-radius: 50%;
}
}
.other_details{
width:calc(100% - 70px);
float: right;
.col_div{
width:50%;
float: left;
padding-left: 10px;
border-right:1px solid #cacfd8;
p{
margin:0px;
padding:0px;
color: #605f5f;
font-weight: 300;
font-size: 13px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
h3{
margin:0px;
padding:0px;
font-weight: 400;
font-size: 15px;
color: #0d0d0d;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 5px;
}
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HomePage } from './home.page';
describe('HomePage', () => {
let component: HomePage;
let fixture: ComponentFixture<HomePage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HomePage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(HomePage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component } from '@angular/core';
import { Router,ActivatedRoute } from '@angular/router';
import {MyserviceService} from '../myservice.service'
@Component({
selector: 'app-home',
templateUrl: 'home.page.html',
styleUrls: ['home.page.scss'],
})
export class HomePage {
student_data:any
constructor(
private router: Router,
private route: ActivatedRoute,
public myservice:MyserviceService
) {
this.get_students_data();
}
details
goToPage(path,data){
console.log(data)
//this.router.navigateByUrl(path);
this.router.navigateByUrl('/details/'+data);
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
get_students_data(){
var This= this
console.log('Homepage')
this.myservice.presentLoader()
this.myservice.load_get('student_data').subscribe (resp=> {
This.myservice.dismissLoader();
console.log(resp);
this.student_data = resp.data;
console.log(this.student_data);
});
}
logout() {
console.log('Logout')
this.router.navigateByUrl('/login',{replaceUrl: true});
document.body.scrollTop = document.documentElement.scrollTop = 0;
}
}
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { Routes, RouterModule } from '@angular/router';
import { IonicModule } from '@ionic/angular';
import { ImmunizationsPage } from './immunizations.page';
const routes: Routes = [
{
path: '',
component: ImmunizationsPage
}
];
@NgModule({
imports: [
CommonModule,
FormsModule,
IonicModule,
RouterModule.forChild(routes)
],
declarations: [ImmunizationsPage]
})
export class ImmunizationsPageModule {}
<ion-header>
<!-- <button class="nav_btn nav_back floatLeft">
<ion-back-button>
</ion-back-button>
</button> -->
<div class="nav_title floatLeft">
<h4>Add Immunization</h4>
</div>
<div class="clear"></div>
</ion-header>
<ion-content>
<div class="list_wrapper">
<ul *ngIf="immunization_data">
<li *ngFor="let immunization of immunization_data; let i=index ">
<div class="list_main" (click)="toggleGroup(i)" [ngClass]="{active:isGroupShown(i)}">
<div class="col floatLeft">
<p>Type</p>
<h3><strong>{{immunization.type}}</strong></h3>
</div>
<!-- <div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>06/12/2019</h3>
</div> -->
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(i)">
<div class="list_bar">
<div class="col floatLeft">
<p>Last Administered Date</p>
<h3>{{immunization.last_adminstered_date}}</h3>
</div>
<div class="col floatLeft borderNone">
<p>Status</p>
<h3>{{immunization.status}}</h3>
</div>
<div class="clear"></div>
</div>
<!-- <div class="list_bar">
<div class="col floatLeft">
<p>Tme of first medication</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Quantity Available</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div> -->
</div>
</li>
<!-- <li>
<div class="list_main" (click)="toggleGroup(1)" [ngClass]="{active:isGroupShown(1)}">
<div class="col floatLeft">
<p>Name</p>
<h3><strong>Medication Authorizations</strong></h3>
</div>
<div class="col floatLeft borderNone">
<p>Expiry Date</p>
<h3>06/12/2019</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_sub" *ngIf="isGroupShown(1)">
<div class="list_bar">
<div class="col floatLeft">
<p>Name of medicine</p>
<h3>Potassium Chloride</h3>
</div>
<div class="col floatLeft borderNone">
<p>Times Per Day</p>
<h3>2 Days</h3>
</div>
<div class="clear"></div>
</div>
<div class="list_bar">
<div class="col floatLeft">
<p>Tme of first medication</p>
<h3>06/11/2019 11:00 AM</h3>
</div>
<div class="col floatLeft borderNone">
<p>Quantity Available</p>
<h3>20</h3>
</div>
<div class="clear"></div>
</div>
</div>
</li> -->
</ul>
</div>
</ion-content>
\ No newline at end of file
.nav_title{
width: calc(100% - 50px);
padding-left: 0px;
}
.list_wrapper{
ul{
margin:0px;
padding:10px;
li{
list-style: none;
margin-bottom: 10px;
.list_main{
padding: 10px;
background-color: #e8effa !important;
border-left:3px solid #1b4077;
background-image: url("../../assets/imgs/asset_drop_btn_right.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
padding-right: 40px;
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
margin-right: 10px;
border-right:1px solid #686868;
}
}
.active{
background: url("../../assets/imgs/asset_drop_btn.png");
background-position: right 15px top 17px;
background-repeat: no-repeat;
background-size: 20px;
}
.list_sub{
padding: 10px;
background: #e8effa;
border-left:3px solid #1b4077;
border-top: 1px solid #c7c7c7;
.list_bar{
padding-bottom: 10px;
}
p{
margin:0px;
padding:0px;
color: #0d0d0d;
font-weight: 300;
padding-bottom: 5px;
font-size: 13px;
}
h3{
margin:0px;
padding:0px;
color: #0d0d0d;
font-size: 14px;
font-weight: 400;
}
.col{
padding-right: 10px;
width: calc(50% - 10px);
margin-right: 10px;
border-right:1px solid #686868;
}
}
}
}
}
\ No newline at end of file
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { ImmunizationsPage } from './immunizations.page';
describe('ImmunizationsPage', () => {
let component: ImmunizationsPage;
let fixture: ComponentFixture<ImmunizationsPage>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ImmunizationsPage ],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(ImmunizationsPage);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import {Component,OnInit, ElementRef, NgZone, ViewChild} from '@angular/core';
import { trigger, transition, animate, style } from '@angular/animations';
import {MyserviceService} from '../myservice.service'
@Component({
selector: 'app-immunizations',
templateUrl: './immunizations.page.html',
styleUrls: ['./immunizations.page.scss'],
})
export class ImmunizationsPage implements OnInit {
shownGroup= null;
immunization_data:any;
constructor(private myservice:MyserviceService) {
this.shownGroup = 0;
this.immunization_data = {
"message":"success",
"data" : [
{
"type":"HIB",
"last_adminstered_date":"05/14/2019",
"status":"Deficient",
},
{
"type":"MMR",
"last_adminstered_date":"05/14/2019",
"status":"Deficient",
}
]
};
this.get_immunization();
}
ngOnInit() {
}
isGroupShown(group) {
return this.shownGroup === group;
}
toggleGroup(group) {
if (this.isGroupShown(group)) {
this.shownGroup = null;
} else {
this.shownGroup = group;
}
}
get_immunization() {
this.immunization_data = this.myservice.ObjArray(this.immunization_data.data);
}
}
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment