setting page
This commit is contained in:
@@ -21,7 +21,7 @@ git remote add origin https://gitlab.chiefsoft.net/IONIC/eRx.git
|
||||
|
||||
ionic generate page users/dash
|
||||
ionic generate page users/schedule
|
||||
|
||||
ionic generate page users/settings
|
||||
|
||||
ionic generate component CardTiles
|
||||
|
||||
|
||||
@@ -30,6 +30,10 @@ const routes: Routes = [
|
||||
{
|
||||
path: 'encounter',
|
||||
loadChildren: () => import('./users/encounter/encounter.module').then( m => m.EncounterPageModule)
|
||||
},
|
||||
{
|
||||
path: 'settings',
|
||||
loadChildren: () => import('./users/settings/settings.module').then( m => m.SettingsPageModule)
|
||||
},
|
||||
|
||||
];
|
||||
|
||||
@@ -7,6 +7,7 @@ import { Component, OnInit } from '@angular/core';
|
||||
styleUrls: ['./footer-menu.component.scss'],
|
||||
})
|
||||
export class FooterMenuComponent implements OnInit {
|
||||
|
||||
constructor(public router: Router) {}
|
||||
|
||||
ngOnInit() {}
|
||||
@@ -25,7 +26,7 @@ export class FooterMenuComponent implements OnInit {
|
||||
break;
|
||||
|
||||
case 'SETTINGS':
|
||||
this.router.navigate(['/schedule']);
|
||||
this.router.navigate(['/settings']);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import { IonicModule } from '@ionic/angular';
|
||||
import { EncounterPageRoutingModule } from './encounter-routing.module';
|
||||
|
||||
import { EncounterPage } from './encounter.page';
|
||||
import { FooterMenuComponent } from '../../component/footer-menu/footer-menu.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
@@ -15,6 +16,6 @@ import { EncounterPage } from './encounter.page';
|
||||
IonicModule,
|
||||
EncounterPageRoutingModule
|
||||
],
|
||||
declarations: [EncounterPage]
|
||||
declarations: [EncounterPage,FooterMenuComponent]
|
||||
})
|
||||
export class EncounterPageModule {}
|
||||
|
||||
@@ -5,35 +5,34 @@
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
|
||||
<ion-item detail="true">
|
||||
<ion-label>
|
||||
<h3>Text Item</h3>
|
||||
<p>Detail set to true - detail arrow displays on both modes</p>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
||||
|
||||
<ion-item button>
|
||||
<ion-label>
|
||||
<h3>Button Item</h3>
|
||||
<p>Default detail - detail arrow displays on iOS only</p>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
||||
|
||||
<ion-item button detail="true">
|
||||
<ion-label>
|
||||
<h3>Button Item</h3>
|
||||
<p>Detail set to true - detail arrow displays on both modes</p>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
||||
|
||||
<ion-item button detail="false">
|
||||
<ion-label>
|
||||
<h3>Button Item</h3>
|
||||
<p>Detail set to false - detail arrow hidden on both modes</p>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
||||
|
||||
<ion-item button detail="true" detail-icon="caret-forward-outline">
|
||||
<ion-label>
|
||||
<h3>Button Item</h3>
|
||||
@@ -41,5 +40,8 @@
|
||||
<p>Detail icon set to caret-forward-outline</p>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
|
||||
</ion-content>
|
||||
|
||||
<ion-footer>
|
||||
<app-footer-menu></app-footer-menu>
|
||||
</ion-footer>
|
||||
|
||||
@@ -7,6 +7,7 @@ import { IonicModule } from '@ionic/angular';
|
||||
import { SchedulePageRoutingModule } from './schedule-routing.module';
|
||||
|
||||
import { SchedulePage } from './schedule.page';
|
||||
import { FooterMenuComponent } from '../../component/footer-menu/footer-menu.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
@@ -15,6 +16,6 @@ import { SchedulePage } from './schedule.page';
|
||||
IonicModule,
|
||||
SchedulePageRoutingModule
|
||||
],
|
||||
declarations: [SchedulePage]
|
||||
declarations: [SchedulePage,FooterMenuComponent]
|
||||
})
|
||||
export class SchedulePageModule {}
|
||||
|
||||
@@ -7,3 +7,7 @@
|
||||
<ion-content>
|
||||
|
||||
</ion-content>
|
||||
|
||||
<ion-footer>
|
||||
<app-footer-menu></app-footer-menu>
|
||||
</ion-footer>
|
||||
@@ -0,0 +1,17 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { SettingsPage } from './settings.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: SettingsPage
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class SettingsPageRoutingModule {}
|
||||
@@ -0,0 +1,21 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { SettingsPageRoutingModule } from './settings-routing.module';
|
||||
|
||||
import { SettingsPage } from './settings.page';
|
||||
import { FooterMenuComponent } from '../../component/footer-menu/footer-menu.component';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
SettingsPageRoutingModule
|
||||
],
|
||||
declarations: [SettingsPage,FooterMenuComponent]
|
||||
})
|
||||
export class SettingsPageModule {}
|
||||
@@ -0,0 +1,12 @@
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-title>settings</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
|
||||
</ion-content>
|
||||
<ion-footer>
|
||||
<app-footer-menu></app-footer-menu>
|
||||
</ion-footer>
|
||||
@@ -0,0 +1,24 @@
|
||||
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { SettingsPage } from './settings.page';
|
||||
|
||||
describe('SettingsPage', () => {
|
||||
let component: SettingsPage;
|
||||
let fixture: ComponentFixture<SettingsPage>;
|
||||
|
||||
beforeEach(waitForAsync(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ SettingsPage ],
|
||||
imports: [IonicModule.forRoot()]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(SettingsPage);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,15 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-settings',
|
||||
templateUrl: './settings.page.html',
|
||||
styleUrls: ['./settings.page.scss'],
|
||||
})
|
||||
export class SettingsPage implements OnInit {
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user