setting.rank.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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</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>{{description}}</td>
  40. <td class="option option-3 text-right">
  41. <a href="setting.php?section=right&amp;rank={{id}}" class="btn btn-primary btn-squarred btn-mini"><i class="fas fa-lock"></i></a>
  42. <div onclick="edit_rank(this)" class="btn btn-info btn-squarred btn-mini"><i class="fas fa-pencil-alt"></i></div>
  43. <div onclick="delete_rank(this)" class="btn btn-danger btn-squarred btn-mini"><i class="fas fa-times"></i></div>
  44. </td>
  45. </tr>
  46. </tbody>
  47. </table>
  48. </div>
  49. </div>
  50. </div>