You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
4.5 KiB

  1. <div class="container">
  2. <div class="row">
  3. <div class="col-sm-4">
  4. <div ng-include="'views/travelCardTemplate.html'"></div>
  5. <br>
  6. <div class="panel">
  7. <div class="panel-heading c_deepPurpleG500to300">
  8. <h3 class="panel-title">Actions</h3>
  9. </div>
  10. <div class="panel-body">
  11. <p class='text-right'>
  12. <div ng-show="userHasJoined(travel.joinPetitions, storageuser._id)==-1">
  13. <div ng-show="userHasJoined(travel.joins, storageuser._id)==-1">
  14. <a ng-show="travel.type=='offering'" ng-click="joinTravel()" class="btn btn-raised c_deepPurple300">Ask to join</a>
  15. <a ng-show="travel.type=='asking'" ng-click="joinTravel()" class="btn btn-raised c_deepPurple300">Offer car</a>
  16. <a ng-show="travel.type=='package'" ng-click="joinTravel()" class="btn btn-raised c_deepPurple300">Offer car</a>
  17. </div>
  18. </div>
  19. <div ng-show="userHasJoined(travel.joinPetitions, storageuser._id)>-1">
  20. <a ng-show="travel.type=='offering'" ng-click="unjoinTravel()" class="btn btn-raised c_red300">Unjoin</a>
  21. <a ng-show="travel.type=='asking'" ng-click="unjoinTravel()" class="btn btn-raised c_red300">Unoffer car</a>
  22. <a ng-show="travel.type=='package'" ng-click="unjoinTravel()" class="btn btn-raised c_red300">Unoffer car</a>
  23. </div>
  24. <div ng-show="userHasJoined(travel.joins, storageuser._id)>-1">
  25. You are in this travel!
  26. <a ng-show="travel.type=='offering'" ng-click="leaveTravel()" class="btn btn-raised c_red300">Leave</a>
  27. </div>
  28. </p>
  29. </div>
  30. </div>
  31. <br>
  32. <div class="panel">
  33. <div class="panel-heading c_deepPurpleG500to300">
  34. <h3 class="panel-title">{{travel.joinPetitions.length}} Pendent joins</h3>
  35. </div>
  36. <div class="panel-body">
  37. <div class="list-group">
  38. <a ng-repeat="user in travel.joinPetitions" ng-href="#!/user/{{user._id}}" class="list-group-item">
  39. <div class="row-picture">
  40. <img class="circle" ng-src="{{user.avatar}}" alt="icon">
  41. </div>
  42. <div class="row-content">
  43. <h4 class="list-group-item-heading">{{user.username}}</h4>
  44. <p class="list-group-item-text">{{user.description}}</p>
  45. </div>
  46. <div class="list-group-separator"></div>
  47. </a>
  48. </div>
  49. </div>
  50. </div>
  51. <div class="panel">
  52. <div class="panel-heading c_deepPurpleG500to300">
  53. <h3 class="panel-title">Accepted users {{travel.joins.length}}/{{travel.seats}}</h3>
  54. </div>
  55. <div class="panel-body">
  56. <div class="list-group">
  57. <a ng-repeat="user in travel.joins" ng-href="#!/user/{{user._id}}" class="list-group-item">
  58. <div class="row-picture">
  59. <img class="circle" ng-src="{{user.avatar}}" alt="icon">
  60. </div>
  61. <div class="row-content">
  62. <h4 class="list-group-item-heading">{{user.username}}</h4>
  63. <p class="list-group-item-text">{{user.description}}</p>
  64. </div>
  65. <div class="list-group-separator"></div>
  66. </a>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. <div class="col-sm-8">
  72. <div class="panel">
  73. <div class="panel-heading c_deepPurpleG500to300">
  74. <h3 class="panel-title">Map</h3>
  75. </div>
  76. <div class="panel-body">
  77. <leaflet width="100%" height="500px" markers="markers" center="center" tiles="tiles" id="map-simple-map"></leaflet>
  78. </div>
  79. </div>
  80. </div>
  81. </div>