setting.plugin.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. global $myUser;
  3. User::check_access('plugin','configure');
  4. ?>
  5. <div class="row">
  6. <div class="col-md-12">
  7. <br>
  8. <h3>Plugins</h3>
  9. <hr/>
  10. <p>Liste des plugins installés sur l'ERP :</p>
  11. <ul id="plugins" class="list-group">
  12. <li class="list-group-item hidden" data-id="{{id}}">
  13. <h4 class="list-group-item-heading">{{name}} <span class="label label-info">v{{version}}</span></h4>
  14. <p class="list-group-item-text">{{description}}</p>
  15. <a class="pointer btn-link" onclick="$(this).next('ul').toggleClass('hidden');"><i class="fas fa-search"></i> + d'Infos</a>
  16. <ul class="hidden">
  17. <li>ID : {{id}}</li>
  18. <li>Auteur : <span class="label label label-default">{{author.name}}</span></li>
  19. <li>Licence : {{#licence.url}}<a href="{{licence.url}}">{{/licence.url}}{{licence.name}}{{#licence.url}}</a>{{/licence.url}}</li>
  20. <li>Version : <code>{{version}}</code></li>
  21. <li>Site web : <a href="{{url}}">{{url}}</a></li>
  22. <li>Dossier : {{folder.path}}</li>
  23. {{#require}}
  24. <li>Pré-requis :
  25. <ul>{{#required}}
  26. <li>{{id}} - <code>{{version}}</code></li>
  27. {{/required}}</ul>
  28. </li>
  29. {{/require}}
  30. </ul>
  31. <label class="btn activator {{#state}}btn-danger{{##state}}{{^state}}btn-info{{##state}}">
  32. <input {{#state}}checked{{##state}} type="checkbox" class="toggle" autocomplete="off" name="plugin-{{id}}" id="plugin-{{id}}" data-type="checkbox">
  33. {{#state}}Désactiver{{##state}}{{^state}}Activer{{##state}}
  34. </label>
  35. </li>
  36. </ul>
  37. </div>
  38. </div>
  39. <br>