setting.plugin.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  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. <li>Pré-requis : <ul>{{#require}}<li>{{key}} - <span class="label label-info">{{value}}</span></li>{{/require}}</ul></li>
  24. </ul>
  25. <label class="btn activator {{#state}}btn-danger{{##state}}{{^state}}btn-info{{##state}}">
  26. <input {{#state}}checked{{##state}} type="checkbox" class="toggle" autocomplete="off" name="plugin-{{id}}" id="plugin-{{id}}" data-type="checkbox">
  27. {{#state}}Désactiver{{##state}}{{^state}}Activer{{##state}}
  28. </label>
  29. </li>
  30. </ul>
  31. </div>
  32. </div>
  33. <br>