Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
hdastageeri
hft_awado_app
Commits
14f24a4e
Commit
14f24a4e
authored
Nov 28, 2019
by
Priyanka Upadhye
Browse files
bike details page formated with ptoper display
parent
8bdaf3a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/home/home.page.html
View file @
14f24a4e
...
...
@@ -48,10 +48,8 @@
<div
class=
"bike-details-container"
*ngIf=
"isDetailsVisible"
>
<div
class=
"inner"
>
<div
class=
"bike_name"
>
{{selectedBike.name}}
</div>
<div
class=
"battery-info"
>
<!-- <div class="battery-info">
<div>
<ion-icon class="battery-icon" name="battery-charging"></ion-icon>
</div>
...
...
@@ -60,9 +58,43 @@
<div class="address-info">
<div class="disance">{{selectedBike.distance + "m"}}</div>
<div class="address">{{selectedBike.address}}</div>
</div>
</div>
-->
<div
class=
"button-container"
>
<ion-grid>
<ion-row>
<ion-col>
Bike Name
</ion-col>
<ion-col>
{{selectedBike.name}}
</ion-col>
</ion-row>
<ion-row>
<ion-col>
Battery Level
</ion-col>
<ion-col>
<ion-icon
class=
"battery-icon"
name=
"battery-charging"
></ion-icon>
{{selectedBike.batteryPercentage + " %"}}
</ion-col>
</ion-row>
<ion-row>
<ion-col>
Bike Location
</ion-col>
<ion-col>
{{selectedBike.address}}
</ion-col>
</ion-row>
<ion-row>
<ion-col>
Bike Distance
</ion-col>
<ion-col>
{{selectedBike.distance + "m"}}
</ion-col>
</ion-row>
<ion-row>
<ion-col>
<ion-button
size=
"medium"
expand=
"block"
(click)=
"reserveBike()"
>
Reserve
</ion-button>
...
...
src/app/home/home.page.ts
View file @
14f24a4e
...
...
@@ -231,4 +231,5 @@ export class HomePage {
this
.
selectedBike
=
bike
;
this
.
isDetailsVisible
=
true
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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