page.list.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. if(!$myUser->can('notification','read')) throw new Exception("Vous n'avez pas la permission pour executer cette fonctionnalité",403);
  3. require_once('Notification.class.php');
  4. ?>
  5. <br>
  6. <div class="row notifications-list">
  7. <!-- search results -->
  8. <div class="col-xl-12">
  9. <div class="left-pane">
  10. <h3>Notifications :</h3>
  11. <!-- <ul class="notification-listing">
  12. <li>
  13. <span class="read-state-block">
  14. <i class="fas fa-bell"></i> Vous avez N notifications non lues
  15. </span>
  16. </li>
  17. <?php foreach(Notification::types() as $type): ?>
  18. <li>
  19. <span class="" style="color:<?php echo $type['color']; ?>" title="<?php echo $type['description']; ?>" ><i class="<?php echo $type['icon']; ?>"></i> <?php echo $type['label']; ?></span>
  20. </li>
  21. <?php endforeach; ?>
  22. </ul> -->
  23. </div>
  24. <!-- Voir pour mettre en place un lazy loading -->
  25. <ul id="notifications" class="mid-pane notifications">
  26. <li data-id="{{id}}" class="hidden notification-item {{class}}" >
  27. <h4>{{label}}</h4>
  28. {{{html}}}
  29. <div class="notification-options">
  30. <div class="btn-group btn-group-sm" role="group">
  31. <div class="btn btn-info" title="Marquer comme {{readState}}" onclick="notification_user_notification_toggle_read(this);"><i class="fas fa-eye"></i></div>
  32. <div class="btn btn-danger" title="Supprimer la notification" onclick="notification_user_notification_delete(this);"><i class="far fa-trash-alt"></i></div>
  33. </div>
  34. <small>{{{created-relative}}}</small>
  35. </div>
  36. </li>
  37. </ul>
  38. </div>
  39. </div>
  40. <br>