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.

101 lines
4.4 KiB

  1. <div class="container">
  2. <div class="row">
  3. <div class="col-sm-4">
  4. <div class="panel">
  5. <div class="panel-heading c_deepPurple300">
  6. <h3 class="panel-title">{{travel.title}}</h3>
  7. </div>
  8. <div class="panel-body">
  9. <div class="list-group">
  10. <a ng-href="#!/user/{{user._id}}" class="list-group-item">
  11. <div class="row-picture">
  12. <img class="circle" ng-src="{{travel.user.avatar}}" alt="icon">
  13. </div>
  14. <div class="row-content">
  15. <h4 class="list-group-item-heading">{{travel.user.username}}</h4>
  16. <p class="list-group-item-text">@{{travel.user.telegram}}</p>
  17. <p class="list-group-item-text">{{travel.user.phone}}</p>
  18. </div>
  19. <div class="list-group-separator"></div>
  20. </a>
  21. </div>
  22. <p>
  23. From: <b>{{travel.from.name}}</b>
  24. </p>
  25. <p>
  26. To: <b>{{travel.from.name}}</b>
  27. </p>
  28. <p ng-show="travel.package">
  29. Can transport package
  30. </p>
  31. </div>
  32. </div>
  33. <div class="panel">
  34. <div class="panel-heading c_deepPurple300">
  35. <h3 class="panel-title">Map</h3>
  36. </div>
  37. <div class="panel-body">
  38. <leaflet width="100%" height="300px" markers="markers" center="center"
  39. tiles="tiles" id="map-simple-map"></leaflet>
  40. </div>
  41. </div>
  42. </div>
  43. <div class="col-sm-3">
  44. <div class="panel">
  45. <div class="panel-heading c_deepPurple300">
  46. <h3 class="panel-title">{{travel.joinPetitions.length}} Pendent joins</h3>
  47. </div>
  48. <div class="panel-body">
  49. <div class="list-group">
  50. <a ng-repeat="user in travel.joinPetitions" ng-href="#!/user/{{user._id}}" class="list-group-item">
  51. <div class="row-picture">
  52. <img class="circle" ng-src="{{user.avatar}}" alt="icon">
  53. </div>
  54. <div class="row-content">
  55. <h4 class="list-group-item-heading">{{user.username}}</h4>
  56. <p class="list-group-item-text">{{user.description}}</p>
  57. </div>
  58. <div class="list-group-separator"></div>
  59. </a>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="col-sm-3">
  65. <div class="panel">
  66. <div class="panel-heading c_deepPurple300">
  67. <h3 class="panel-title">Accepted users {{travel.joins.length}}/{{travel.seats}}</h3>
  68. </div>
  69. <div class="panel-body">
  70. <div class="list-group">
  71. <a ng-repeat="user in travel.joins" ng-href="#!/user/{{user._id}}" class="list-group-item">
  72. <div class="row-picture">
  73. <img class="circle" ng-src="{{user.avatar}}" alt="icon">
  74. </div>
  75. <div class="row-content">
  76. <h4 class="list-group-item-heading">{{user.username}}</h4>
  77. <p class="list-group-item-text">{{user.description}}</p>
  78. </div>
  79. <div class="list-group-separator"></div>
  80. </a>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="col-sm-2">
  86. <div class="panel">
  87. <div class="panel-heading c_deepPurple500">
  88. <h3 class="panel-title">Admin actions</h3>
  89. </div>
  90. <div class="panel-body">
  91. <div class="btn btn-block btn-sm c_orange300">Ban travel</div>
  92. <div class="btn btn-block btn-sm c_red300">Delete travel</div>
  93. </div>
  94. </div>
  95. </div>
  96. </div>