-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feature/allow-user-select-multiple-addresses): Add sidenav links and…
… select address containers
- Loading branch information
Showing
13 changed files
with
1,074 additions
and
964 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ const routes: Routes = [ | |
path: '**', | ||
pathMatch: 'full', | ||
redirectTo: '' | ||
} | ||
}, | ||
]; | ||
|
||
@NgModule({ | ||
|
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
26 changes: 26 additions & 0 deletions
26
shop/mobile-ionic/src/app/pages/user-locations/user-locations.module.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,26 @@ | ||
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 { UserLocationsPage } from './user-locations.page'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path: '', | ||
component: UserLocationsPage | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule, | ||
FormsModule, | ||
IonicModule, | ||
RouterModule.forChild(routes) | ||
], | ||
declarations: [UserLocationsPage] | ||
}) | ||
export class UserLocationsPageModule {} |
7 changes: 7 additions & 0 deletions
7
shop/mobile-ionic/src/app/pages/user-locations/user-locations.page.css
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,7 @@ | ||
ion-item-group#address-info { | ||
margin-bottom: 20px; | ||
} | ||
|
||
ion-button#save { | ||
margin-bottom: 10px; | ||
} |
49 changes: 49 additions & 0 deletions
49
shop/mobile-ionic/src/app/pages/user-locations/user-locations.page.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,49 @@ | ||
<ion-header> | ||
<ion-toolbar color="primary"> | ||
<ion-buttons slot="start"> | ||
<ion-menu-button autoHide="false"></ion-menu-button> | ||
</ion-buttons> | ||
<ion-title>Location Settings</ion-title> | ||
</ion-toolbar> | ||
</ion-header> | ||
|
||
<ion-content> | ||
<ion-card> | ||
<ion-card-header> | ||
<ion-card-title>Add new address</ion-card-title> | ||
</ion-card-header> | ||
<ion-card-content> | ||
<ion-item-group id="address-info"> | ||
<ion-row> | ||
<ion-col size="12"> | ||
<ion-item> | ||
<ion-input placeholder="City"></ion-input> | ||
</ion-item> | ||
</ion-col> | ||
<ion-col size="12"> | ||
<ion-item> | ||
<ion-input placeholder="Street"></ion-input> | ||
</ion-item> | ||
</ion-col> | ||
<ion-col size="6"> | ||
<ion-item> | ||
<ion-input placeholder="House"></ion-input> | ||
</ion-item> | ||
</ion-col> | ||
<ion-col size="6"> | ||
<ion-item> | ||
<ion-input placeholder="Apartment"></ion-input> | ||
</ion-item> | ||
</ion-col> | ||
</ion-row> | ||
</ion-item-group> | ||
<ion-button id="save" color="secondary" expand="full"> | ||
<ion-ripple-effect type="unbounded"></ion-ripple-effect> | ||
SAVE | ||
</ion-button> | ||
<ion-item lines="none"> | ||
<ion-icon name="compass"></ion-icon>Use Current Location | ||
</ion-item> | ||
</ion-card-content> | ||
</ion-card> | ||
</ion-content> |
27 changes: 27 additions & 0 deletions
27
shop/mobile-ionic/src/app/pages/user-locations/user-locations.page.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,27 @@ | ||
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { UserLocationsPage } from './user-locations.page'; | ||
|
||
describe('UserLocationsPage', () => { | ||
let component: UserLocationsPage; | ||
let fixture: ComponentFixture<UserLocationsPage>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ UserLocationsPage ], | ||
schemas: [CUSTOM_ELEMENTS_SCHEMA], | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(UserLocationsPage); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
15 changes: 15 additions & 0 deletions
15
shop/mobile-ionic/src/app/pages/user-locations/user-locations.page.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,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'e-cu-user-locations', | ||
templateUrl: './user-locations.page.html', | ||
styleUrls: ['./user-locations.page.css'], | ||
}) | ||
export class UserLocationsPage implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
Oops, something went wrong.