mirror of
https://github.com/arnaucube/commonroutesApp.git
synced 2026-02-07 03:26:44 +01:00
travelListTemplate
This commit is contained in:
@@ -6,9 +6,9 @@
|
||||
// 'starter.controllers' is found in controllers.js
|
||||
|
||||
|
||||
//var urlapi = "http://localhost:3000/api/";
|
||||
var urlapi = "http://localhost:3000/api/";
|
||||
//var urlapi = "http://192.168.1.36:3000/api/";
|
||||
var urlapi = "http://51.255.193.106:3000/api/";
|
||||
//var urlapi = "http://51.255.193.106:3000/api/";
|
||||
|
||||
angular.module('starter', [
|
||||
'ionic',
|
||||
|
||||
@@ -18,6 +18,7 @@ angular.module('app.travels', ['pascalprecht.translate'])
|
||||
if (data.data.length < 1) {
|
||||
console.log("setting loadMorePagination to false");
|
||||
$scope.loadMorePagination = false;
|
||||
$scope.$broadcast('scroll.infiniteScrollComplete');
|
||||
}
|
||||
|
||||
}, function(data) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<ion-view view-title="{{'Ask_For_Car' | translate}}">
|
||||
<ion-view view-title="{{'Ask_for_Car' | translate}}">
|
||||
<ion-content>
|
||||
<div class="padding">
|
||||
<label class="item item-input">
|
||||
@@ -50,7 +50,7 @@
|
||||
</label>
|
||||
<p class="padding">
|
||||
<a ng-click="createTravel()" class="button o_purple400 o_floatRight">
|
||||
{{'Post_asking_car' | translate}}
|
||||
{{'Ask_for_Car' | translate}}
|
||||
</a>
|
||||
</p>
|
||||
</div><!-- end of padding -->
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<ion-view view-title="{{'Ask_For_Package' | translate}}">
|
||||
<ion-view view-title="{{'Ask_for_Package' | translate}}">
|
||||
<ion-content>
|
||||
<div class="padding">
|
||||
<label class="item item-input">
|
||||
@@ -50,7 +50,7 @@
|
||||
</label>
|
||||
<p class="padding">
|
||||
<a ng-click="createTravel()" class="button o_purple400 o_floatRight">
|
||||
{{'Ask_for_package' | translate}}
|
||||
{{'Ask_for_Package' | translate}}
|
||||
</a>
|
||||
</p>
|
||||
</div><!-- end of padding -->
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
|
||||
|
||||
<p>
|
||||
To <b>create a new publication</b>, just need to click the 'New Travel' button on the right of footer menu,
|
||||
To <b>create a new publication</b>, just need to click the 'New Travel' button on the right of top menu,
|
||||
and select wich type of publication is.
|
||||
|
||||
</p>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
</select>
|
||||
</label>
|
||||
<p>
|
||||
{{'version' | translate}}: CarsInCommon-v012
|
||||
{{'version' | translate}}: CarsInCommon-v0.1
|
||||
</p>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<ion-view view-title="{{'Travel' | translate}}">
|
||||
<ion-content class="has-footer">
|
||||
<ion-content>
|
||||
<ion-refresher
|
||||
pulling-text="{{'Pull_to_refresh' | translate}}..."
|
||||
on-refresh="doRefresh()">
|
||||
@@ -11,7 +11,7 @@
|
||||
<img class="o_userImgCircularMini" ng-src="{{travel.user.avatar}}"></img>
|
||||
{{travel.user.username}}
|
||||
</a>
|
||||
<p class="text-right">
|
||||
<p class="text-right">
|
||||
<a ng-click="deleteTravel()" class="button button-small o_bRed"
|
||||
ng-show="storageuser._id==travel.user._id">
|
||||
<i class="icon ion-trash-a"></i>
|
||||
@@ -90,7 +90,7 @@
|
||||
<!--<button class="o_floatRight button o_grey600" ng-show="travel.user._id==storageuser._id">
|
||||
<i class="icon ion-edit"></i>
|
||||
</button>-->
|
||||
<p>{{travel.joins.length}}/{{travel.seats}} {{'seats' | translate}}</p>
|
||||
<p ng-show="travel.seats>0">{{travel.joins.length}}/{{travel.seats}} {{'seats' | translate}}</p>
|
||||
<a ng-repeat="join in travel.joins" ng-href="#/app/users/{{join._id}}">
|
||||
<img class="o_userImgCircularMini" ng-src="{{join.avatar}}"></img>
|
||||
</a>
|
||||
|
||||
17
www/templates/travelListTemplate.html
Normal file
17
www/templates/travelListTemplate.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<div class="item-note text-right">
|
||||
{{travel.user.username}}
|
||||
</div>
|
||||
<i ng-show="travel.type=='offering'" class="icon ion-android-car o_text_grey700"></i>
|
||||
<i ng-show="travel.type=='asking'" class="icon ion-help o_text_grey700"></i>
|
||||
<i ng-show="travel.type=='package'" class="icon ion-ios-box o_text_grey700"></i>
|
||||
<h2 class="o_text_grey800">{{travel.title}}</h2>
|
||||
<div class="item-note text-right">
|
||||
<div class="o_text_purple300">{{travel.date | date:"dd/MM"}}</div>
|
||||
<div class="o_text_purple300">{{travel.date | date:"HH:mm"}}h</div>
|
||||
</div>
|
||||
<p>
|
||||
{{travel.from.name}}
|
||||
</p>
|
||||
<p>
|
||||
{{travel.to.name}}
|
||||
</p>
|
||||
@@ -1,5 +1,5 @@
|
||||
<ion-view view-title="{{'Travels' | translate}}">
|
||||
<ion-content class="has-footer">
|
||||
<ion-content>
|
||||
<ion-refresher
|
||||
pulling-text="{{'Pull_to_refresh' | translate}}..."
|
||||
on-refresh="paginationNext()">
|
||||
@@ -20,23 +20,7 @@
|
||||
</div>
|
||||
<a ng-repeat="travel in travels | orderBy: 'date' | filter: search"
|
||||
class="item item-icon-left" href="#/app/travels/{{travel._id}}">
|
||||
<div class="item-note text-right">
|
||||
{{travel.user.username}}
|
||||
</div>
|
||||
<i ng-show="travel.type=='offering'" class="icon ion-android-car o_text_grey700"></i>
|
||||
<i ng-show="travel.type=='asking'" class="icon ion-help o_text_grey700"></i>
|
||||
<i ng-show="travel.type=='package'" class="icon ion-ios-box o_text_grey700"></i>
|
||||
<h2 class="o_text_grey800">{{travel.title}}</h2>
|
||||
<div class="item-note text-right">
|
||||
<div class="o_text_purple300">{{travel.date | date:"dd/MM"}}</div>
|
||||
<div class="o_text_purple300">{{travel.date | date:"HH:mm"}}h</div>
|
||||
</div>
|
||||
<p>
|
||||
{{travel.from.name}}
|
||||
</p>
|
||||
<p>
|
||||
{{travel.to.name}}
|
||||
</p>
|
||||
<div ng-include="'templates/travelListTemplate.html'"></div>
|
||||
</a>
|
||||
</div>
|
||||
<!--<div class="button" ng-click="paginationNext()">
|
||||
|
||||
@@ -10,36 +10,14 @@
|
||||
</div>
|
||||
<a ng-repeat="travel in travels | orderBy: 'date'"
|
||||
class="item item-icon-left" href="#/app/travels/{{travel._id}}">
|
||||
<i class="icon ion-android-car o_text_grey700"></i>
|
||||
<h2 class="o_text_grey800">{{travel.title}}</h2>
|
||||
<div class="item-note text-right">
|
||||
<div class="o_text_purple300">{{travel.date | date:"dd/MM"}}</div>
|
||||
<div class="o_text_purple300">{{travel.date | date:"HH:mm"}}h</div>
|
||||
</div>
|
||||
<p>
|
||||
{{travel.from.name}}
|
||||
</p>
|
||||
<p>
|
||||
{{travel.to.name}}
|
||||
</p>
|
||||
<div ng-include="'templates/travelListTemplate.html'"></div>
|
||||
</a>
|
||||
<div class="item item-divider o_purple300" ng-show="joins[0]">
|
||||
{{'Travels_joining' | translate}}
|
||||
</div>
|
||||
<a ng-repeat="travel in joins | orderBy: 'date'"
|
||||
class="item item-icon-left" href="#/app/travels/{{travel._id}}">
|
||||
<i class="icon ion-android-car o_text_grey700"></i>
|
||||
<h2 class="o_text_grey800">{{travel.title}}</h2>
|
||||
<div class="item-note text-right">
|
||||
<div class="o_text_purple300">{{travel.date | date:"dd/MM"}}</div>
|
||||
<div class="o_text_purple300">{{travel.date | date:"HH:mm"}}h</div>
|
||||
</div>
|
||||
<p>
|
||||
{{travel.from.name}}
|
||||
</p>
|
||||
<p>
|
||||
{{travel.to.name}}
|
||||
</p>
|
||||
<div ng-include="'templates/travelListTemplate.html'"></div>
|
||||
</a>
|
||||
</div>
|
||||
</ion-content>
|
||||
|
||||
Reference in New Issue
Block a user