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/dash
|
||||||
ionic generate page users/schedule
|
ionic generate page users/schedule
|
||||||
|
ionic generate page users/settings
|
||||||
|
|
||||||
ionic generate component CardTiles
|
ionic generate component CardTiles
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,10 @@ const routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: 'encounter',
|
path: 'encounter',
|
||||||
loadChildren: () => import('./users/encounter/encounter.module').then( m => m.EncounterPageModule)
|
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'],
|
styleUrls: ['./footer-menu.component.scss'],
|
||||||
})
|
})
|
||||||
export class FooterMenuComponent implements OnInit {
|
export class FooterMenuComponent implements OnInit {
|
||||||
|
|
||||||
constructor(public router: Router) {}
|
constructor(public router: Router) {}
|
||||||
|
|
||||||
ngOnInit() {}
|
ngOnInit() {}
|
||||||
@@ -25,7 +26,7 @@ export class FooterMenuComponent implements OnInit {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'SETTINGS':
|
case 'SETTINGS':
|
||||||
this.router.navigate(['/schedule']);
|
this.router.navigate(['/settings']);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { IonicModule } from '@ionic/angular';
|
|||||||
import { EncounterPageRoutingModule } from './encounter-routing.module';
|
import { EncounterPageRoutingModule } from './encounter-routing.module';
|
||||||
|
|
||||||
import { EncounterPage } from './encounter.page';
|
import { EncounterPage } from './encounter.page';
|
||||||
|
import { FooterMenuComponent } from '../../component/footer-menu/footer-menu.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -15,6 +16,6 @@ import { EncounterPage } from './encounter.page';
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
EncounterPageRoutingModule
|
EncounterPageRoutingModule
|
||||||
],
|
],
|
||||||
declarations: [EncounterPage]
|
declarations: [EncounterPage,FooterMenuComponent]
|
||||||
})
|
})
|
||||||
export class EncounterPageModule {}
|
export class EncounterPageModule {}
|
||||||
|
|||||||
@@ -5,35 +5,34 @@
|
|||||||
</ion-header>
|
</ion-header>
|
||||||
|
|
||||||
<ion-content>
|
<ion-content>
|
||||||
|
|
||||||
<ion-item detail="true">
|
<ion-item detail="true">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h3>Text Item</h3>
|
<h3>Text Item</h3>
|
||||||
<p>Detail set to true - detail arrow displays on both modes</p>
|
<p>Detail set to true - detail arrow displays on both modes</p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
<ion-item button>
|
<ion-item button>
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h3>Button Item</h3>
|
<h3>Button Item</h3>
|
||||||
<p>Default detail - detail arrow displays on iOS only</p>
|
<p>Default detail - detail arrow displays on iOS only</p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
<ion-item button detail="true">
|
<ion-item button detail="true">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h3>Button Item</h3>
|
<h3>Button Item</h3>
|
||||||
<p>Detail set to true - detail arrow displays on both modes</p>
|
<p>Detail set to true - detail arrow displays on both modes</p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
<ion-item button detail="false">
|
<ion-item button detail="false">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h3>Button Item</h3>
|
<h3>Button Item</h3>
|
||||||
<p>Detail set to false - detail arrow hidden on both modes</p>
|
<p>Detail set to false - detail arrow hidden on both modes</p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
<ion-item button detail="true" detail-icon="caret-forward-outline">
|
<ion-item button detail="true" detail-icon="caret-forward-outline">
|
||||||
<ion-label>
|
<ion-label>
|
||||||
<h3>Button Item</h3>
|
<h3>Button Item</h3>
|
||||||
@@ -41,5 +40,8 @@
|
|||||||
<p>Detail icon set to caret-forward-outline</p>
|
<p>Detail icon set to caret-forward-outline</p>
|
||||||
</ion-label>
|
</ion-label>
|
||||||
</ion-item>
|
</ion-item>
|
||||||
|
|
||||||
</ion-content>
|
</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 { SchedulePageRoutingModule } from './schedule-routing.module';
|
||||||
|
|
||||||
import { SchedulePage } from './schedule.page';
|
import { SchedulePage } from './schedule.page';
|
||||||
|
import { FooterMenuComponent } from '../../component/footer-menu/footer-menu.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
@@ -15,6 +16,6 @@ import { SchedulePage } from './schedule.page';
|
|||||||
IonicModule,
|
IonicModule,
|
||||||
SchedulePageRoutingModule
|
SchedulePageRoutingModule
|
||||||
],
|
],
|
||||||
declarations: [SchedulePage]
|
declarations: [SchedulePage,FooterMenuComponent]
|
||||||
})
|
})
|
||||||
export class SchedulePageModule {}
|
export class SchedulePageModule {}
|
||||||
|
|||||||
@@ -7,3 +7,7 @@
|
|||||||
<ion-content>
|
<ion-content>
|
||||||
|
|
||||||
</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