page.list.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. if(!$myUser->can('navigation','read')) throw new Exception("Vous n'avez pas la permission pour executer cette fonctionnalité",403);
  3. require_once('MenuItem.class.php');
  4. ?>
  5. <div class="row">
  6. <!-- search results -->
  7. <div class="col-xl-12">
  8. <table id="menuitems" class="table table-striped " data-entity-search="navigation_menuitem_search">
  9. <thead>
  10. <tr>
  11. <th>#</th>
  12. <th>Icône</th>
  13. <th>Libellé</th>
  14. <th>URL</th>
  15. <th>Couleur</th>
  16. <th>Ordre</th>
  17. <th>Parent</th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. <tr data-id="{{id}}" class="hidden">
  22. <td></td>
  23. <td>{{icon}}</td>
  24. <td>{{label}}</td>
  25. <td>{{url}}</td>
  26. <td>{{color}}</td>
  27. <td>{{sort}}</td>
  28. <td>{{parent}}</td>
  29. <td>
  30. <div class="btn-group btn-group-sm" role="group">
  31. <a class="btn btn-info" href="index.php?module=navigation&page=sheet&id={{id}}"><i class="fas fa-pencil-alt"></i></a>
  32. <!-- <div class="btn btn-info " onclick="navigation_menuitem_edit(this);"><i class="fas fa-pencil-alt"></i></div> -->
  33. <div class="btn btn-danger " onclick="navigation_menuitem_delete(this);"><i class="far fa-trash-alt"></i></div>
  34. </div>
  35. </td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. </div>