page.list.workflow.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. global $myUser;
  3. User::check_access('workflow','read');
  4. require_once(__DIR__.SLASH.'Workflow.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 workflows</h4>
  10. <div class="my-auto ml-auto mr-0 noPrint">
  11. <?php if($myUser->can('workflow', 'edit')) : ?>
  12. <a href="index.php?module=workflow&page=sheet.workflow" 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. <!-- Moteur de recherche -->
  19. <div class="col-md-8">
  20. <select id="filters" data-type="filter" data-label="Recherche" data-function="workflow_workflow_search"></select>
  21. </div>
  22. </div>
  23. <hr>
  24. <h5 class="results-count"><span></span> Résultat(s)</h5>
  25. <div class="row">
  26. <!-- Liste des workflow créés -->
  27. <div class="col-xl-12">
  28. <ul id="workflows" class="workflows-list" data-entity-search="workflow_workflow_search">
  29. <li data-id="{{id}}" class="hidden" style="border-color:{{color}};">
  30. <a class="btn text-info" title="Éditer workflow" href="index.php?module=workflow&page=sheet.workflow&id={{id}}">
  31. <i class="{{icon}}" ></i><br>
  32. <h6>#{{id}} - {{label}}</h6>
  33. <small>{{type.label}} {{#entity}}({{entity}}){{/entity}}</small>
  34. <div class="workflow-menu">
  35. <div class="btn-group btn-group-sm" role="group">
  36. <div class="btn "><i class="fas fa-pencil-alt"></i></div>
  37. <div class="btn text-danger" title="Supprimer workflow" onclick="workflow_workflow_delete(this,event);"><i class="far fa-trash-alt"></i></div>
  38. </div>
  39. </div>
  40. </a>
  41. </li>
  42. </ul><br>
  43. <!-- Pagination (data-range définit le nombre de pages max affichées avant et après la page courante) -->
  44. <ul class="pagination justify-content-center" data-range="5">
  45. <li class="page-item hidden" data-value="{{value}}" title="Voir la page {{label}}" onclick="$(this).parent().find('li').removeClass('active');$(this).addClass('active');workflow_workflow_search();">
  46. <span class="page-link">{{label}}</span>
  47. </li>
  48. </ul>
  49. </div>
  50. </div>