-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3900bb2
commit 892c015
Showing
12 changed files
with
144 additions
and
105 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{"app_id":"bd6495de","api_key":"f0c6880aca6038a5b00883ea2a366ba528c0b015522d66c5"} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"name": "stackoverflow-says-what", | ||
"app_id": "" | ||
} | ||
"app_id": "bd6495de" | ||
} |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#flightDetails { | ||
margin-right: 40%; | ||
} | ||
|
||
#priceButton { | ||
margin-left: 20%; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
IonicApp.controller('outGoingFlightsCtrl', function($scope, FlightSrv,$location) { | ||
|
||
/*function getOutFlights(){ | ||
flightSrv.getOutFlights(function(result){ | ||
$scope.outflights = result; | ||
}); | ||
}; | ||
function getInFlights(){ | ||
flightSrv.getInFlights(function(result){ | ||
$scope.inflights = result; | ||
}); | ||
}; | ||
*/ | ||
// $scope.test = "bate5"; | ||
$scope.bookOutgoing = function (flight,price,seatClass){ | ||
//$scope.test = "potato"; | ||
flightSrv.setOutgoingFlight(flight); | ||
flightSrv.setPriceOutgoingFlight(price); | ||
flightSrv.setOutgoingFlightClass(seatClass); | ||
if (flightSrv.getType() === 'OneWay') | ||
$location.url(""); //todo | ||
else | ||
$location.url(""); //todo | ||
}; | ||
|
||
$scope.bookIngoing = function (flight,price,seatClass){ | ||
flightSrv.setIngoingFlight(flight); | ||
flightSrv.setPriceIngoingFlight(price); | ||
flightSrv.setIngoingFlightClass(seatClass); | ||
$location.url(""); //todo | ||
}; | ||
|
||
|
||
/* | ||
getOutFlights(); | ||
if (flightSrv.getType() != 'OneWay') | ||
getInFlights(); | ||
*/ | ||
}); |
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,31 @@ | ||
<link href="css/outGoingFlights.css" rel="stylesheet"> | ||
<ion-navbar *navbar hideBackButton class="show-navbar"> | ||
<ion-title>INGOING FLIGHTS</ion-title> | ||
</ion-navbar> | ||
|
||
<ion-content> | ||
<ion-list> | ||
<ion-item ng-click = "bookOutgoing();"> | ||
<div class="row"> | ||
<div class="col"> | ||
<ion-thumbnail item-left> | ||
<img src="/../../img/favicon.png"> | ||
</ion-thumbnail> | ||
</div> | ||
<div class="col" id="flightDetails"> | ||
<h2> Airline: {{ flight.airline }}</h2> | ||
<p> Flight Number: {{ flight.flightNumber }}</p> | ||
<p> Origin: {{ flight.origin }}</p> | ||
<p> Destination: {{ flight.destination }}</p> | ||
<p> Departure Date: {{ flight.departureDateTime | date:'yyyy-MM-dd hh:mm' }}</p> | ||
<p> Arrival Date: {{ flight.arrivalDateTime | date:'yyyy-MM-dd hh:mm' }}</p> | ||
<p> Cost: $ {{ flight.cost }}</p> | ||
</div> | ||
<!-- <div class="col"> | ||
<button clear item-right type="button" class="btn btn-success" id="priceButton"> $ {{ flight.cost }}</button> | ||
</div> --> | ||
</div> | ||
</ion-item> | ||
|
||
</ion-list> | ||
</ion-content> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<link href="css/outGoingFlights.css" rel="stylesheet"> | ||
<ion-navbar *navbar hideBackButton class="show-navbar"> | ||
<ion-title>OUTGOING FLIGHTS</ion-title> | ||
</ion-navbar> | ||
|
||
<ion-content> | ||
<ion-list> | ||
<ion-item ng-click = "bookOutgoing();"> | ||
<div class="row"> | ||
<div class="col"> | ||
<ion-thumbnail item-left> | ||
<img src="/../../img/favicon.png"> | ||
</ion-thumbnail> | ||
</div> | ||
<div class="col" id="flightDetails"> | ||
<h2> Airline: {{ flight.airline }}</h2> | ||
<p> Flight Number: {{ flight.flightNumber }}</p> | ||
<p> Origin: {{ flight.origin }}</p> | ||
<p> Destination: {{ flight.destination }}</p> | ||
<p> Departure Date: {{ flight.departureDateTime | date:'yyyy-MM-dd hh:mm' }}</p> | ||
<p> Arrival Date: {{ flight.arrivalDateTime | date:'yyyy-MM-dd hh:mm' }}</p> | ||
<p> Cost: $ {{ flight.cost }}</p> | ||
</div> | ||
<!-- <div class="col"> | ||
<button clear item-right type="button" class="btn btn-success" id="priceButton"> $ {{ flight.cost }}</button> | ||
</div> --> | ||
</div> | ||
</ion-item> | ||
|
||
</ion-list> | ||
</ion-content> |