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.

111 lines
5.0 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">User profile</h3>
  7. </div>
  8. <div class="panel-body">
  9. <div class="list-group">
  10. <a class="list-group-item">
  11. <div class="row-picture">
  12. <img class="circle" ng-src="{{user.avatar}}" alt="icon">
  13. </div>
  14. <div class="row-content">
  15. <h4 class="list-group-item-heading">
  16. {{user.username}}
  17. <span ng-show="user.validated" class="badge badge-secondary c_deepPurple300">Validated</span>
  18. </h4>
  19. <p class="list-group-item-text">{{user.description}}</p>
  20. </div>
  21. </a>
  22. </div>
  23. <p>
  24. {{user.email}}
  25. </p>
  26. <p>
  27. {{user.telegram}}
  28. </p>
  29. <p>
  30. {{user.phone}}
  31. </p>
  32. </div>
  33. </div>
  34. <div class="panel">
  35. <div class="panel-heading c_deepPurple300">
  36. <h3 class="panel-title">User received likes ({{user.likes.length}})</h3>
  37. </div>
  38. <div class="panel-body">
  39. <div class="list-group">
  40. <a ng-repeat="user in likes" ng-href="#!/user/{{user._id}}" class="list-group-item">
  41. <div class="row-picture">
  42. <img class="circle" ng-src="{{user.avatar}}" alt="icon">
  43. </div>
  44. <div class="row-content">
  45. <h4 class="list-group-item-heading">{{user.username}}</h4>
  46. <p class="list-group-item-text">{{user.description}}</p>
  47. </div>
  48. <div class="list-group-separator"></div>
  49. </a>
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="col-sm-6">
  55. <div class="panel">
  56. <div class="panel-heading c_deepPurple300">
  57. <h3 class="panel-title">User travels</h3>
  58. </div>
  59. <div class="panel-body">
  60. <table class="table table-striped table-hover ">
  61. <thead>
  62. <tr>
  63. <th>Type</th>
  64. <th>Title</th>
  65. <th>Date</th>
  66. <th>User</th>
  67. <th>nºJoins</th>
  68. <th></th>
  69. </tr>
  70. </thead>
  71. <tbody>
  72. <tr ng-repeat="travel in user.travels">
  73. <td>
  74. <i ng-show="travel.type=='offering'" class="fa fa-car fa-2x"></i>
  75. <i ng-show="travel.type=='asking'" class="fa fa-question fa-2x"></i>
  76. <i ng-show="travel.type=='package'" class="fa fa-archive fa-2x"></i>
  77. </td>
  78. <td>{{travel.title}}</td>
  79. <td>{{travel.date | date}}</td>
  80. <td>
  81. <a ng-href="#!/user/{{travel.user._id}}">
  82. {{travel.user.username}}
  83. </a>
  84. </td>
  85. <td>{{travel.joins.length}}</td>
  86. <td><a ng-href="#!/travel/{{travel._id}}">View</a></td>
  87. </tr>
  88. </tbody>
  89. </table>
  90. </div>
  91. </div>
  92. </div>
  93. <div class="col-sm-2">
  94. <div class="panel">
  95. <div class="panel-heading c_deepPurple500">
  96. <h3 class="panel-title">Admin actions</h3>
  97. </div>
  98. <div class="panel-body">
  99. <!--<div class="btn btn-block btn-sm c_orange300">Ban user</div>-->
  100. <div ng-show="!user.validated" ng-click="validateUser()" class="btn btn-block btn-sm c_deepPurple300">Validate User</div>
  101. <div ng-show="user.validated" ng-click="unvalidateUser()" class="btn btn-block btn-sm c_red200">Unvalidate User</div>
  102. <div ng-click="deleteUser()" class="btn btn-block btn-sm c_red300">Delete user</div>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. </div>