Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
allo-app
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nabil Sadki
allo-app
Commits
52a15477
Commit
52a15477
authored
Oct 08, 2019
by
Nabil Sadki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Offres : filters
parent
bbbe39b7
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
129 additions
and
0 deletions
+129
-0
offres-carte-filters.module.ts
...odals/offres-carte-filters/offres-carte-filters.module.ts
+26
-0
offres-carte-filters.page.html
...odals/offres-carte-filters/offres-carte-filters.page.html
+56
-0
offres-carte-filters.page.scss
...odals/offres-carte-filters/offres-carte-filters.page.scss
+0
-0
offres-carte-filters.page.spec.ts
...ls/offres-carte-filters/offres-carte-filters.page.spec.ts
+27
-0
offres-carte-filters.page.ts
.../modals/offres-carte-filters/offres-carte-filters.page.ts
+20
-0
No files found.
src/app/modals/offres-carte-filters/offres-carte-filters.module.ts
0 → 100644
View file @
52a15477
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
{
OffresCarteFiltersPage
}
from
'./offres-carte-filters.page'
;
const
routes
:
Routes
=
[
{
path
:
''
,
component
:
OffresCarteFiltersPage
}
];
@
NgModule
({
imports
:
[
CommonModule
,
FormsModule
,
IonicModule
,
RouterModule
.
forChild
(
routes
)
],
declarations
:
[
OffresCarteFiltersPage
]
})
export
class
OffresCarteFiltersPageModule
{}
src/app/modals/offres-carte-filters/offres-carte-filters.page.html
0 → 100644
View file @
52a15477
<ion-header>
<ion-toolbar
color=
"primary"
>
<ion-title>
Filtres
</ion-title>
<ion-button
size=
"small"
color=
"light"
fill=
"outline"
(
click
)="
modalController
.
dismiss
()"
slot=
"end"
class=
"ion-margin-horizontal"
>
X
</ion-button>
</ion-toolbar>
</ion-header>
<ion-content>
<ion-list>
<ion-item>
<ion-label>
Catégories
</ion-label>
<ion-select
class=
"wide-select"
value=
"all"
okText=
"Valider"
cancelText=
"Annuler"
(
ionChange
)="
_TRIP
.
filterList
($
event
.
detail
.
value
)"
>
<ion-select-option
value=
"all"
>
Toutes
</ion-select-option>
<ion-select-option
*
ngFor=
"let cat of _TRIP.cats"
value=
"{{cat.id}}"
>
{{cat.label}}
</ion-select-option>
</ion-select>
</ion-item>
<ion-item>
<ion-label>
Partenaires
</ion-label>
<ion-select
class=
"wide-select"
value=
"all"
okText=
"Valider"
cancelText=
"Annuler"
(
ionChange
)="
_TRIP
.
filterByBrandId
($
event
.
detail
.
value
)"
>
<ion-select-option
value=
"all"
>
Tous
</ion-select-option>
<ion-select-option
*
ngFor=
"let brand of _TRIP.brands"
value=
"{{brand.id}}"
>
{{brand.label}}
</ion-select-option>
</ion-select>
</ion-item>
<ion-item>
<ion-grid
no-padding
>
<ion-row>
<ion-col
no-padding
>
<ion-label
margin-vertical
>
Type
</ion-label>
</ion-col>
</ion-row>
<ion-row>
<ion-col
no-padding
>
<ion-segment
mode=
"ios"
margin-bottom
>
<ion-segment-button
mode=
"ios"
value=
"all"
>
<ion-label>
Tout
</ion-label>
</ion-segment-button>
<ion-segment-button
mode=
"ios"
value=
"offres"
>
<ion-label>
Offres
</ion-label>
</ion-segment-button>
<ion-segment-button
mode=
"ios"
value=
"reductions"
>
<ion-label>
Réductions
</ion-label>
</ion-segment-button>
</ion-segment>
</ion-col>
</ion-row>
</ion-grid>
</ion-item>
</ion-list>
</ion-content>
<ion-footer>
<ion-toolbar>
<ion-button
slot=
"end"
color=
"dark"
size=
"small"
(
click
)="
_TRIP
.
resetData
();
modalController
.
dismiss
();"
>
Réinitialiser
</ion-button>
</ion-toolbar>
</ion-footer>
\ No newline at end of file
src/app/modals/offres-carte-filters/offres-carte-filters.page.scss
0 → 100644
View file @
52a15477
src/app/modals/offres-carte-filters/offres-carte-filters.page.spec.ts
0 → 100644
View file @
52a15477
import
{
CUSTOM_ELEMENTS_SCHEMA
}
from
'@angular/core'
;
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
OffresCarteFiltersPage
}
from
'./offres-carte-filters.page'
;
describe
(
'OffresCarteFiltersPage'
,
()
=>
{
let
component
:
OffresCarteFiltersPage
;
let
fixture
:
ComponentFixture
<
OffresCarteFiltersPage
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
OffresCarteFiltersPage
],
schemas
:
[
CUSTOM_ELEMENTS_SCHEMA
],
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
OffresCarteFiltersPage
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/modals/offres-carte-filters/offres-carte-filters.page.ts
0 → 100644
View file @
52a15477
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
TripService
}
from
'../../services/trip-service'
;
import
{
ToastController
,
IonInfiniteScroll
,
ModalController
}
from
'@ionic/angular'
;
@
Component
({
selector
:
'app-offres-carte-filters'
,
templateUrl
:
'./offres-carte-filters.page.html'
,
styleUrls
:
[
'./offres-carte-filters.page.scss'
],
})
export
class
OffresCarteFiltersPage
implements
OnInit
{
constructor
(
public
modalController
:
ModalController
,
public
_TRIP
:
TripService
)
{
}
ngOnInit
()
{
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment