page.list.dynamic.form.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. global $myUser;
  3. User::check_access('dynamicform','read');
  4. require_once(__DIR__.SLASH.'DynamicForm.class.php');
  5. ?>
  6. <div class="row">
  7. <div class="col-md-12">
  8. <div class="d-flex my-2 w-100">
  9. <h4 class="d-inline-block my-auto mx-0 text-uppercase">Liste des formulaires</h4>
  10. <div class="my-auto ml-auto mr-0 noPrint">
  11. <?php if($myUser->can('dynamicform', 'edit')) : ?>
  12. <a href="index.php?module=dynamicform&page=sheet.dynamic.form" class="btn btn-success right"><i class="fas fa-plus"></i> Ajouter</a>
  13. <?php endif; ?>
  14. </div>
  15. </div>
  16. <div class="clear noPrint"></div>
  17. </div>
  18. </div>
  19. <h5 class="results-count"><span></span> Résultat(s)</h5>
  20. <div class="row">
  21. <!-- search results -->
  22. <div class="col-xl-12">
  23. <table id="dynamic-forms" class="table table-striped " data-entity-search="dynamicform_form_search">
  24. <thead>
  25. <tr>
  26. <th>#</th>
  27. <th>Libellé</th>
  28. <th>Identifiant technique</th>
  29. <th>Créateur</th>
  30. <th>Etablissement</th>
  31. <th></th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <tr data-id="{{id}}" class="hidden">
  36. <td class="align-middle">{{id}}</td>
  37. <td class="align-middle" style="border-left:5px solid {{color}}"> <i class="{{icon}}"></i> {{label}}</td>
  38. <td class="align-middle"><code>{{slug}}</code></td>
  39. <td class="align-middle">Par <span class="font-weight-bold text-muted">{{creator}}</span> le <span class="font-weight-bold text-muted">{{created}}</span></td>
  40. <td>{{firmLegend}}</td>
  41. <td class="align-middle text-right">
  42. <div class="btn-group btn-group-sm" role="group">
  43. <a class="btn text-info" title="Éditer dynamic_form" href="index.php?module=dynamicform&page=sheet.dynamic.form&id={{id}}"><i class="fas fa-pencil-alt"></i></a>
  44. <div class="btn text-danger" title="Supprimer dynamic_form" onclick="dynamicform_form_delete(this);"><i class="far fa-trash-alt"></i></div>
  45. </div>
  46. </td>
  47. </tr>
  48. </tbody>
  49. </table>
  50. <br>
  51. </div>
  52. </div>