Commit 684aab14 by Alen Jose

Merge branch 'alen' into 'master'

july-26 See merge request alen/CMC-driver!20
parents 5dc7d1df 037b8253
......@@ -25,8 +25,12 @@
<h6>{{filename}}</h6>
<h5 *ngIf="fileData?.fileStatus=='1'">Processing</h5>
</div>
<div class="jr_bottom_button_bay">
<button ion-button class="cab_footer_btn" (click)="upload()" *ngIf="fileData?.fileStatus=='0' || fileData?.fileStatus=='3'">DONE</button>
<button ion-button class="cab_footer_btn" (click)="view()" *ngIf="fileData?.fileStatus!='0'">view</button>
</div>
</ion-content>
<ion-footer padding>
<!-- <ion-footer padding>
<button ion-button class="theme_dark_bg btn_primary" (click)="upload()" *ngIf="fileData?.fileStatus=='0' || fileData?.fileStatus=='3'">DONE</button>
<button ion-button class="theme_dark_bg btn_primary" (click)="view()" *ngIf="fileData?.fileStatus!='0'">view</button>
</ion-footer>
</ion-footer> -->
......@@ -101,4 +101,7 @@ page-docupdate {
letter-spacing: 2px;
color:#f7941e;
}
.jr_bottom_button_bay{width:100%;position: fixed;bottom: 0px;padding:0px;left:0px;right:0px;text-align: center;}
.cab_footer_btn{width:100%;height:50px;font-weight: 300;letter-spacing: 2px;border-radius:0px !important;background: #f7941e;color:#FFF;text-align: center;font-size: 16px;margin:0px;text-transform: capitalize !important;}
}
......@@ -15,7 +15,7 @@ export class ForgotPage {
constructor(public navCtrl: NavController, public navParams: NavParams, private formbuilder: FormBuilder, private myservice: Myservice) {
this.forgotForm = this.formbuilder.group({
email: ['', Validators.compose([Validators.required, Validators.pattern("[a-zA-Z0-9.-_]{1,}@[a-zA-Z.-]{2,}[.]{1}[a-zA-Z]{2,}")])],
from:['doctor']
from:['driver']
})
}
......
......@@ -34,6 +34,8 @@ export class HomePage {
this.upcoming = response.data.upcoming
this.completed = response.data.completed
}
else
this.myservice.show_alert('',response.message)
})
}
})
......
......@@ -96,8 +96,10 @@
</div>
<br>
<button ion-button class="primary theme_dark_bg" (click)="updateProfile()">SAVE</button>
<!-- <button ion-button class="changepass_btn" (click)="changepass()">CHANGE PASSWORD</button> -->
<!-- <button ion-button class="primary theme_dark_bg" (click)="updateProfile()">SAVE</button> -->
<div class="jr_bottom_button_bay">
<button ion-button class="cab_footer_btn" (click)="updateProfile()">SAVE</button>
</div>
</div>
</form>
</div>
......
......@@ -107,28 +107,6 @@ page-myprofile {
text-align: left;
padding-top: 10px;
}
button{
width:100%;
border-radius: 20px;
height: 45px;
font-size: 16px;
letter-spacing: 2px;
}
.changepass_btn{
border:2px solid #282828;
height: 45px;
border-radius: 25px;
background: transparent;
color: #282828;
text-transform: uppercase;
font-size: 16px;
width: 100%;
font-weight:600;
letter-spacing: 2px;
}
}
}
......@@ -147,4 +125,6 @@ page-myprofile {
padding-top: 30px !important;
padding-bottom: 30px !important;
}
.jr_bottom_button_bay{width:100%;position: fixed;bottom: 0px;padding:0px;left:0px;right:0px;text-align: center;}
.cab_footer_btn{width:100%;height:50px;font-weight: 300;letter-spacing: 2px;border-radius:0px !important;background: #f7941e;color:#FFF;text-align: center;font-size: 16px;margin:0px;text-transform: capitalize !important;}
}
......@@ -68,6 +68,8 @@ export class MyprofilePage {
this.editForm.controls['gender'].setValue(resp.data.gender)
this.editForm.controls['license'].setValue(resp.data.license_no)
}
else
this.myservice.show_alert('',resp.message)
})
}
})
......
......@@ -43,9 +43,9 @@
<div class="jr_bottom_button_bay">
<button ion-button class="cab_footer_btn floatLeft accept" (click)="accept()" *ngIf="!pickUp">Accept</button>
<button ion-button class="cab_footer_btn floatRight reject" (click)="reject()" *ngIf="!pickUp">Reject</button>
<button ion-button class="cab_footer_btn width100" (click)="pick()" *ngIf="pickUp">Pick Up</button>
<button ion-button class="cab_footer_btn floatLeft accept" (click)="accept()">Accept</button>
<button ion-button class="cab_footer_btn floatRight reject" (click)="reject()">Reject</button>
<!-- <button ion-button class="cab_footer_btn width100" (click)="pick()" *ngIf="pickUp">Pick Up</button> -->
</div>
</div>
......
......@@ -44,6 +44,8 @@ export class QuickridePage {
this.data.setrideData(this.rideDetail)
}
else
this.myservice.show_alert('',resp.message)
})
}
......
......@@ -25,6 +25,8 @@ export class UploaddocPage {
if(resp.status == 'success'){
this.docs = resp.data
}
else
this.myservice.show_alert('',resp.message)
})
})
}
......
......@@ -34,6 +34,7 @@ export class UserlocationPage {
lastPos: any;
count: number = 0;
tempPos: any;
destmarker: any;
constructor(public navCtrl: NavController, public navParams: NavParams, private geolocation: Geolocation, private db: AngularFireDatabase, private storage: Storage, private myservice: Myservice, private menu: MenuController, private data: dataService, public events: Events) {
this.loadMap()
......@@ -124,13 +125,22 @@ export class UserlocationPage {
if (This.markers)
This.markers.setMap(null)
if (This.destmarker)
This.destmarker.setMap(null)
var marker = new google.maps.Marker({
position: driverLoc,
map: This.map,
icon: dimage
});
var marker2 = new google.maps.Marker({
position: destLoc,
map: This.map,
})
This.markers = marker
This.destmarker = marker2
var cur = new google.maps.LatLng(myloc[0], myloc[0])
var lastPosn = new google.maps.LatLng(This.lastPos[0], This.lastPos[0])
......@@ -250,6 +260,8 @@ export class UserlocationPage {
This.ride = response.data
This.data.setrateData(This.ride)
}
else
this.myservice.show_alert('',response.message)
})
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment