user-edit.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!-- show details of a User -->
  2. <div class="container">
  3. <div class="panel panel-primary table-striped">
  4. <div class="panel-heading">
  5. <h1>
  6. {{user.username}}
  7. <span ng-if="user.email">&nbsp;&lt;{{user.email}}&gt;</span>
  8. &nbsp;-&nbsp;{{'update user information' | translate}}
  9. </h1>
  10. </div>
  11. <div class="panel-body">
  12. <form method="POST">
  13. <div class="input-group input-group-lg top10">
  14. <span class="input-group-addon min150">{{'Email' | translate}}</span>
  15. <input type="email" id="new-email" name="new-email" ng-model="updateUserInfo.email" class="form-control">
  16. </div>
  17. <div class="input-group input-group-lg top10">
  18. <span class="input-group-addon min150">{{'Old password' | translate}}</span>
  19. <input type="password" id="old-password" name="old-password" ng-model="updateUserInfo.old_password" class="form-control">
  20. <span class="input-group-addon min150">{{'New password' | translate}}</span>
  21. <input type="password" id="new-password" name="new-password" ng-model="updateUserInfo.new_password" class="form-control">
  22. </div>
  23. <div class="checkbox">
  24. <label>
  25. <input type="checkbox" ng-model="updateUserInfo.isAdmin"> {{'is admin' | translate}}
  26. </label>
  27. </div>
  28. <button type="submit" ng-click="updateUser()" class="btn btn-success top10">{{'update' | translate}}</button>
  29. </form>
  30. </div>
  31. </div>
  32. <div class="panel panel-primary table-striped top5">
  33. <div class="panel-heading"><h1>{{'Tickets' | translate}}</h1></div>
  34. <div class="panel-body">
  35. <form class="form-inline">
  36. <div class="form-group">
  37. <label for="query-tickets">{{'Search:' | translate}}</label>
  38. <input eventman-focus type="text" id="query-tickets" class="form-control" placeholder="{{'Name' | translate}}" ng-model="userQuery" ng-model-options="{debounce: 350}">
  39. </div>
  40. </form>
  41. <uib-pagination ng-model="userCurrentPage" total-items="userFilteredLength" items-per-page="userItemsPerPage"
  42. direction-links="false" boundary-links="true" boundary-link-numbers="true" max-size="userMaxPaginationSize">
  43. </uib-pagination>
  44. <table class="table">
  45. <thead>
  46. <tr>
  47. <th class="text-right nowrap">#</th>
  48. <th>{{'Ticket' | translate}}</th>
  49. <th>{{'Event' | translate}}</th>
  50. <th class="text-center">{{'Attended' | translate}}</th>
  51. </tr>
  52. </thead>
  53. <tbody>
  54. <tr ng-repeat="ticket in userShownItems">
  55. <td class="text-right">{{$index + 1 + ((userCurrentPage-1)*userItemsPerPage)}}</td>
  56. <td>
  57. <strong>
  58. <a ui-sref="event.ticket.edit({id: ticket.event_id, ticket_id: ticket._id})">
  59. <span ng-if="ticket.name || ticket.surname || ticket.email">
  60. {{ticket.name}} {{ticket.surname}}<span ng-if="ticket.email">&nbsp;&lt;{{ticket.email}}&gt;</span>
  61. </span>
  62. <span ng-if="!(ticket.name || ticket.surname || ticket.email)">{{ticket.event_title}}</span>
  63. </a>
  64. </strong>
  65. </td>
  66. <td><strong>{{ticket.event_title}}</strong></td>
  67. <td class="text-center">
  68. <span class="fa {{(ticket.attended) && 'fa-check-circle text-success' || 'fa-times-circle text-danger'}}"></span>
  69. </td>
  70. </tr>
  71. </tbody>
  72. </table>
  73. <uib-pagination ng-model="userCurrentPage" total-items="userFilteredLength" items-per-page="userItemsPerPage"
  74. direction-links="false" boundary-links="true" boundary-link-numbers="true" max-size="userMaxPaginationSize">
  75. </uib-pagination>
  76. </div>
  77. </div>
  78. </div>