From 7a6cc6b51ed5481e004b9cdebe598cc9ec2738c2 Mon Sep 17 00:00:00 2001 From: nau Date: Sat, 27 Aug 2016 18:27:11 +0200 Subject: [PATCH] offering travel model changed, adding askingtravel functionallity to the app --- app/www/css/style.css | 7 ++ app/www/img/asking.png | Bin 0 -> 8479 bytes app/www/img/collectivized.png | Bin 0 -> 1776 bytes app/www/img/localization.png | Bin 0 -> 891 bytes app/www/img/offering.png | Bin 0 -> 10002 bytes app/www/img/{box.png => package.png} | Bin app/www/img/telegram.png | Bin 0 -> 1013 bytes app/www/js/controllers.js | 35 +++++++--- app/www/templates/menu.html | 5 +- app/www/templates/newaskingtravel.html | 66 ++++++++++++++++++ ...{newtravel.html => newofferingtravel.html} | 20 ++++-- app/www/templates/travel.html | 14 +++- app/www/templates/travels.html | 7 +- server/controllers/travelController.js | 7 +- server/models/travelModel.js | 10 ++- 15 files changed, 148 insertions(+), 23 deletions(-) create mode 100644 app/www/img/asking.png create mode 100644 app/www/img/collectivized.png create mode 100644 app/www/img/localization.png create mode 100644 app/www/img/offering.png rename app/www/img/{box.png => package.png} (100%) create mode 100644 app/www/img/telegram.png create mode 100644 app/www/templates/newaskingtravel.html rename app/www/templates/{newtravel.html => newofferingtravel.html} (66%) diff --git a/app/www/css/style.css b/app/www/css/style.css index 2afdee5..ff2075d 100644 --- a/app/www/css/style.css +++ b/app/www/css/style.css @@ -13,3 +13,10 @@ .o-float-right{ float: right; } +.o-text-right{ + text-align: right; +} +.o-mini-text{ + font-size: 12px; + display: inline-block; +} diff --git a/app/www/img/asking.png b/app/www/img/asking.png new file mode 100644 index 0000000000000000000000000000000000000000..b7c8440b08c7cb209db01a66d69e2dd0b24cd143 GIT binary patch literal 8479 zcmcI}3p`X^+xOa|p&KRVP}Ec?=R@JnFcqa#PC4b+$RLFfGMHW6iKIe8#8l|y7)piF z9m#EEq63PVN)8!^&>+ly*L0tr=Xu}f``-8ceV_UH?Y*vbt?Tf=4r}eb6K(hISR$$@ z3IJHL)5^jg035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qm37E;Oi$MZR10i*_O@pjUTffKtBIkOL<0X zA?a>|LGZ{8z#3Kg)D<>NZd_?zww|@&E3>I0SeOo2`z3Oy*O#1dI_t+4Cn5CO46H7+ zxE1|#d^H1G%5K_DdaNT!SJ|IF|Teqd<4cxH8jqMn8=@bCT1$YWEUKeZJYa8zL#9%Nwkz9hKA&VFX-&|ZX` z`QR?RJFt-n-BHNEJawDB&+OHP=KDm@0cS#`T70o6(8f-*p#OGAteZDlz-?Rcn?TTW z%`FJsGXqmS{CPs9uUb6wO={NP=I@)CV7KONtXbUz-M-9}kpW+h&W@EO3LEv+K-NoL z|G+vv!5(27RjwX@tcC8v76`pN1AB3W;=RoX+E?ZKj1FvjT4+YG&&uM11gcxkZ9(ck zn};YYlL790p$z2T4)xvnRDQ3p!PJDl_x>=7geX{G%uk;%Qu>Y60TBC3O_=?S*7 z+oO4r1%VT}3cuh;?Dw?(qr&=ATZ)JVi~j=hkBI(>>z@Js_IQ5!i_a48TfYh-+`9HJ zo9J#C7*9XyntcW`t)FcR2A_OpOf#BUr#E;&C)y8h{Z}XG+|LXptf%bs22aS)aqfBt zPWMRl-j%WSD?7HYv}X~`qrP7*<@OPW3c9H0O%F87o6U9`9xg;)O9dLd@pl~90e6wQ z$K(s6eMANIv*gbE@8_%C(oU9iKT4ZkL|+P9;+RKdpxRg>4t@_+2cqb|xx%lrf~nt` z{vL?JTTw{;F#~T=oVT}t1V73ONbtMtKMw>l1jPUT^@k+&KNkHpfO_gQAQ2V|{J|T6 z=?CB^9C-af{9))n4gRfb|5KO$z(L^nKfC__%4LqF696&*4}T=Y7TEsFKtRVs>W>+C zOG19!$^ZfV9|nT80^;9Sbq8>M_uiX#H|c4j!gA;y=5)#Cdx3ZW{DpM{ApU>+mJYG` kufOoa==~oxPxWF#8Wu`-&mtd&p$M?ka<4_nR_~Ml0RR-hhyVZp literal 0 HcmV?d00001 diff --git a/app/www/img/collectivized.png b/app/www/img/collectivized.png new file mode 100644 index 0000000000000000000000000000000000000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00001 diff --git a/app/www/img/localization.png b/app/www/img/localization.png new file mode 100644 index 0000000000000000000000000000000000000000..3eaa343f343a8b5b7a2e01f21b4c01317edd2dda GIT binary patch literal 891 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyEa{HEjtmSN`?>!lvVtU&J%W50 z7^>757#dm_7=8hT8eT9klo~KFyh>nTu$sZZAYL$MSD+10;$(nNi0l9V|Gm8fJ^g~b z{erx}$iX4O%P-i=-ybLf6AT7Qg@%TD`3C`!r*8;QH;C;Qmytn&&5YWMO5Y6*06i*0CVfQtJCd-?`?27#Rf zG{Ha6!NCD2<>?F57zlP4kP+-21hESgH1_9hN`RDONswPKgHG+?`(HVx=w5OB@opFM z?NMQuIvvuqy-gK4m1dH z0QG2ix;TbdoUWaGd{L8ufGhjP+2v^Got}Wn8n5SS_@$alQ$w`9x`#jE4(!cl6#-a$;wXJsA6hPq5131@}AU z?;QpQ4hDP>sB~x%MIy zZlC?WW82HncQXEEm-N1|Z?%8(v{Wwi;fg)%+w_DoLv_?6Emqpj(ciLvjxAHn$^zE; zcUXi>@@k}Oe~Ldd>Ec9Eelh{jTxDV43rzwB#KRLU~4W+_CB zy<+T%LX&-8X5KUUKhO2N@Atje^*zt^nag$N-1j;6Ilp^5+k_bzXmO$i(EtEW9c>L0 z0Fdx25^QCK#k~LLRak8CIiq8?75?4WdMOmvw|Qw>`oQ*G%zwlg@g#pp6!6u&;A`rM z^Yy!U)fxEt`N>?yyZJa>^m3N*yy}uPc|s5X(I_2_(`NoXzx&w=ZLg)sdNq=Sx2qhC ze9F}>uvaVY&BBeyCIOKHyT*|^;&P9V>=!@JsUcy~F(x8h!Ox;Sgg_#0edDQayJ|Xi z;O?D6SfCzu>*1Nj-l|--7<7KViZ z2|^PG|5*VQlnzn;n}ykzsK|gHQl-sT%STy%7_`{NuCZW)Wvow`vdW~%$+=ZJE=qzz zmv5eV>-#^xPflq9R_=?l0vNI@3)vEp9-zx`Doq;|6+D4O=-ZsiIEB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Z@9*#O^!D=h`||eu z_WAw!`uq9&{rvs?{{H{||NsC0|LKg`bN~PVD|Av$Qve4D2@Ve!86YAgEG;`pe1w;n zvAV&-#>mRr-Q(u+^7Hfc_WAnz{r>*`hjD;}0004uNklKn+Xk({3`0{7njV0@2GKqWD38je@cw)GE;@#8!~`+yoeX9~l8 z55EL|u1zC^rT{feoH;<-55BOJo8dXaQ5T?wnX|}v;F(hVy69P!II08G$l>hr+A{t= z^LjTZKLv71m;haSZx}yKx(Bx@M>|X?4J<*@dcEZy*_AmOV?se_lMr@ZdJY*!9Zbko zlzBJgyOQ})6%(=)2X#J*(5g=o{EUM%#ZmVxpb60AC&DJeFnh00000NkvXXu0mjfzUnfC literal 0 HcmV?d00001 diff --git a/app/www/js/controllers.js b/app/www/js/controllers.js index d0cac2e..5b26447 100644 --- a/app/www/js/controllers.js +++ b/app/www/js/controllers.js @@ -61,26 +61,45 @@ angular.module('starter.controllers', []) $scope.newtravel={}; // Create the login modal that we will use later - $ionicModal.fromTemplateUrl('templates/newtravel.html', { + $ionicModal.fromTemplateUrl('templates/newofferingtravel.html', { scope: $scope }).then(function(modal) { - $scope.modal = modal; + $scope.modalOffering = modal; + }); + + // Create the login modal that we will use later + $ionicModal.fromTemplateUrl('templates/newaskingtravel.html', { + scope: $scope + }).then(function(modal) { + $scope.modalAsking = modal; }); + // Triggered in the login modal to close it - $scope.closeNewTravel = function() { - $scope.modal.hide(); + $scope.closeNewOfferingTravel = function() { + $scope.modalOffering.hide(); + }; + // Triggered in the login modal to close it + $scope.closeNewAskingTravel = function() { + $scope.modalAsking.hide(); }; // Open the login modal - $scope.showNewTravel = function() { - $scope.modal.show(); + $scope.showNewOfferingTravel = function() { + $scope.modalOffering.show(); }; + // Open the login modal + $scope.showNewAskingTravel = function() { + $scope.modalAsking.show(); + }; + // Perform the login action when the user submits the login form - $scope.doNewTravel = function() { + $scope.doNewOfferingTravel = function() { console.log('Doing new travel', $scope.newtravel); $scope.newtravel.icon="lorry"; $scope.newtravel.generateddate=$scope.newtravel.date; $scope.newtravel.owner="user"; + + $scope.newtravel.modality="offering"; console.log($scope.newtravel); $http({ url: 'http://localhost:3000/api/travels', @@ -101,7 +120,7 @@ angular.module('starter.controllers', []) // Simulate a login delay. Remove this and replace with your login // code if using a login system $timeout(function() { - $scope.closeNewTravel(); + $scope.closeNewOfferingTravel(); }, 1000); }; }) diff --git a/app/www/templates/menu.html b/app/www/templates/menu.html index 0f32aab..1d1ef50 100644 --- a/app/www/templates/menu.html +++ b/app/www/templates/menu.html @@ -30,16 +30,13 @@ Travels - + Transport material Available cars - - Ask for a car - Users diff --git a/app/www/templates/newaskingtravel.html b/app/www/templates/newaskingtravel.html new file mode 100644 index 0000000..f18f0dc --- /dev/null +++ b/app/www/templates/newaskingtravel.html @@ -0,0 +1,66 @@ + + + +

+ + New Asking Travel {{newtravel.title}} +

+
+ + + + + + + + + Can carry package + + + + + + + Collectivized car + + + + + +
+ +
+
diff --git a/app/www/templates/newtravel.html b/app/www/templates/newofferingtravel.html similarity index 66% rename from app/www/templates/newtravel.html rename to app/www/templates/newofferingtravel.html index 1b8dc2f..69296bb 100644 --- a/app/www/templates/newtravel.html +++ b/app/www/templates/newofferingtravel.html @@ -12,10 +12,12 @@ @@ -24,7 +26,10 @@ nºSeats - + + + Can carry package + + + + Collectivized car + - - diff --git a/app/www/templates/travel.html b/app/www/templates/travel.html index f222bdc..64c820e 100644 --- a/app/www/templates/travel.html +++ b/app/www/templates/travel.html @@ -1,12 +1,19 @@
- + + Collectivized

{{travel.title}}

{{travel.owner}}

-
{{travel.date | date:"dd/MM HH:mm a"}}
+
+
{{travel.date | date:"dd/MM HH:mm a"}}
+
+
[periodic travel]
+
+
can carry package
+

{{travel.from}} - {{travel.to}}

nº car seats: {{trave.seats}}

{{travel.description}}

@@ -14,6 +21,9 @@

{{travel.phone}}

+

+ {{travel.telegram}} +

Ask to join diff --git a/app/www/templates/travels.html b/app/www/templates/travels.html index 73e97a3..edb1019 100644 --- a/app/www/templates/travels.html +++ b/app/www/templates/travels.html @@ -2,11 +2,12 @@