events-list.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!-- show the list of Events -->
  2. <div class="container">
  3. <h1>{{'Events' | translate}}
  4. <button ng-click="$state.go('event.new')" class="btn btn-success">
  5. <span class="glyphicon glyphicon-plus-sign"></span>
  6. {{'Add event' | translate}}
  7. </button>
  8. </h1>
  9. <div class="panel panel-primary table-striped top5">
  10. <div class="panel-heading">{{'Events' | translate}}</div>
  11. <div class="panel-body">
  12. <form class="form-inline">
  13. <div class="form-group">
  14. <label for="query-events">Search:</label>
  15. <input type="text" id="query-events" class="form-control" placeholder="{{'Event title' | translate}}" ng-model="query">
  16. </div>
  17. <div class="form-group">
  18. <label for="events-order">Sort by:</label>
  19. <select id="events-order" class="form-control" ng-model="orderProp">
  20. <option value="title">Alphabetical</option>
  21. <option value="begin-datetime">Date</option>
  22. </select>
  23. </div>
  24. </form>
  25. <table class="table table-striped">
  26. <thead>
  27. <tr>
  28. <td><strong>{{'Event' | translate}}</strong></td>
  29. <td><strong>{{'Actions' | translate}}</strong></td>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. <tr ng-repeat="event in events | filter:query | orderBy:orderProp">
  34. <td>
  35. <span><strong><a ui-sref="event.info({id: event._id})">{{event.title}}</a></strong></span>
  36. <p>{{'Begins:' | translate}} {{event['begin-date']}}<br/>
  37. {{'Ends:' | translate}} {{event['end-date']}}</p>
  38. </td>
  39. <td>
  40. <button ng-click="remove(event._id)" type="button" class="btn btn-link glyphicon glyphicon-trash"></button>
  41. </td>
  42. </tr>
  43. </tbody>
  44. </table>
  45. </div>
  46. </div>
  47. </div>