setting.rank.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. global $myUser;
  3. User::check_access('rank','configure');
  4. ?>
  5. <div class="row">
  6. <div class="col-md-12">
  7. <br>
  8. <h3>Rangs & Accès</h3>
  9. <hr>
  10. <div class="panel panel-default">
  11. <table id="ranks" class="table table-striped">
  12. <thead class="bg-secondary text-white">
  13. <tr>
  14. <th>#</th>
  15. <th>Libellé</th>
  16. <th>Description</th>
  17. <th style="width: 100px;"></th>
  18. </tr>
  19. <tr id="rankForm" data-action="core_rank_save">
  20. <th class="py-1 align-middle"></th>
  21. <th class="py-1 align-middle"><input id="label" class="form-control form-control-sm" placeholder="Libellé" type="text"></th>
  22. <th class="py-1 align-middle"><input id="description" class="form-control form-control-sm" placeholder="Description" type="text"></th>
  23. <th class="py-1 align-middle"><div onclick="core_rank_save();" data-tooltip title="Enregistrer" class="btn btn-success w-100"><i class="fas fa-check"></i></div></th>
  24. </tr>
  25. </thead>
  26. <tbody>
  27. <tr data-id="{{id}}" class="hidden">
  28. <td>{{id}}</td>
  29. <td>{{label}}</td>
  30. <td>
  31. <span>{{description}}</span>
  32. <div class="rank-rights text-muted">
  33. <ul>
  34. {{#rights}}
  35. <li class="d-flex">
  36. <div class="mr-2">
  37. <span class="text-info font-weight-bold">{{firm}}</span>
  38. <code class="">{{scope}}</code>
  39. </div>
  40. <div>
  41. {{#read}}<i title="Lecture" class="text-dark far fa-eye"></i>{{/read}}
  42. {{#edit}}<i title="Edition" class="text-info fas fa-pencil-alt"></i>{{/edit}}
  43. {{#delete}}<i title="Suppression" class="text-danger far fa-trash-alt"></i>{{/delete}}
  44. {{#configure}}<i title="Configuration" class="text-warning fas fa-wrench"></i>{{/configure}}
  45. </div>
  46. </li>
  47. {{/rights}}
  48. </ul>
  49. </div>
  50. </td>
  51. <td class="option option-3 text-center">
  52. {{#configure}}<a href="setting.php?section=right&amp;rank={{id}}" class="btn btn-primary btn-squarred btn-mini" title="Voir les droits du rang"><i class="fas fa-lock"></i></a>{{/configure}}
  53. {{#edit}}<div onclick="core_rank_edit(this)" class="btn btn-info btn-squarred btn-mini" title="Éditer le rang"><i class="fas fa-pencil-alt"></i></div>{{/edit}}
  54. {{#delete}}<div onclick="core_rank_delete(this)" class="btn btn-danger btn-squarred btn-mini" title="Supprimer le rang"><i class="fas fa-times"></i></div>{{/delete}}
  55. </td>
  56. </tr>
  57. </tbody>
  58. </table>
  59. </div>
  60. </div>
  61. </div>