setting.rank.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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 id="rankForm" class="row" data-action="save_rank">
  11. <div class="col-md-4">
  12. <label for="label">Libellé :</label>
  13. <input id="label" class="form-control" placeholder="Libellé" type="text">
  14. </div>
  15. <div class="col-md-4">
  16. <label for="description">Description :</label>
  17. <input id="description" class="form-control" placeholder="Description" type="text">
  18. </div>
  19. <div class="col-md-4 text-right">
  20. <div onclick="save_rank();" class="btn btn-success noLabel"><i class="fas fa-check"></i> Enregistrer</div>
  21. </div>
  22. </div>
  23. <br/>
  24. <div class="panel panel-default">
  25. <div class="panel-heading">Rangs existants :</div><br>
  26. <table id="ranks" class="table table-striped">
  27. <thead>
  28. <tr>
  29. <th>#</th>
  30. <th>Libellé</th>
  31. <th>Description</th>
  32. <th></th>
  33. </tr>
  34. </thead>
  35. <tbody>
  36. <tr data-id="{{id}}" class="hidden">
  37. <td>{{id}}</td>
  38. <td>{{label}}</td>
  39. <td>
  40. <span>{{description}}</span>
  41. <div class="rank-rights text-muted">
  42. <ul>
  43. {{#rights}}
  44. <li class="d-flex">
  45. <div class="mr-2">
  46. <span class="text-info font-weight-bold">{{firm}}</span>
  47. <code class="">{{section}}</code>
  48. </div>
  49. <div>
  50. {{#read}}<i title="Lecture" class="text-dark far fa-eye"></i>{{/read}}
  51. {{#edit}}<i title="Edition" class="text-info fas fa-pencil-alt"></i>{{/edit}}
  52. {{#delete}}<i title="Suppression" class="text-danger far fa-trash-alt"></i>{{/delete}}
  53. {{#configure}}<i title="Configuration" class="text-warning fas fa-wrench"></i>{{/configure}}
  54. </div>
  55. </li>
  56. {{/rights}}
  57. </ul>
  58. </div>
  59. </td>
  60. <td class="option option-3 text-right">
  61. <a href="setting.php?section=right&amp;rank={{id}}" class="btn btn-primary btn-squarred btn-mini"><i class="fas fa-lock"></i></a>
  62. <div onclick="edit_rank(this)" class="btn btn-info btn-squarred btn-mini"><i class="fas fa-pencil-alt"></i></div>
  63. <div onclick="delete_rank(this)" class="btn btn-danger btn-squarred btn-mini"><i class="fas fa-times"></i></div>
  64. </td>
  65. </tr>
  66. </tbody>
  67. </table>
  68. </div>
  69. </div>
  70. </div>