setting.plugin.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. global $myUser;
  3. User::check_access('plugin','configure');
  4. ?>
  5. <div class="row">
  6. <div class="col-md-12">
  7. <h3>Plugins</h3>
  8. <hr/>
  9. <ul id="plugins" class="list-group plugins">
  10. <li class="list-group-item hidden item" data-id="{{id}}" style="{{#color}}border-left:2px solid {{color}};{{/color}}">
  11. <h5 class="list-group-item-heading">{{#icon}}<i class="{{icon}}"></i>{{/icon}} {{name}} ({{id}}) <span class="label label-info">v{{version}}</span></h5>
  12. <p class="list-group-item-text text-muted mb-0">{{description}} <a class="pointer btn btn-link btn-small" title="Afficher les informations du plugin" data-tooltip onclick="$(this).parent().next('ul').toggleClass('hidden');"><i class="fas fa-search"></i> + d'Infos</a></p>
  13. <ul class="hidden">
  14. <li>ID : {{id}}</li>
  15. <li>Auteur : <span class="label label label-default">{{author.name}}</span></li>
  16. <li>Licence : {{#licence.url}}<a href="{{licence.url}}">{{/licence.url}}{{licence.name}}{{#licence.url}}</a>{{/licence.url}}</li>
  17. <li>Version : <code>{{version}}</code></li>
  18. <li>Site web : <a href="{{url}}">{{url}}</a></li>
  19. <li>Dossier : {{folder.path}}</li>
  20. {{#require}}
  21. <li>Pré-requis :
  22. <ul>{{#required}}
  23. <li>{{id}} - <code>{{version}}</code></li>
  24. {{/required}}</ul>
  25. </li>
  26. {{/require}}
  27. </ul>
  28. <div class="plugin-firm-block">
  29. Activer pour les établissements :
  30. <ul class="list-style-type-none">
  31. {{#firms}}
  32. <li class="firm-item" data-id="{{id}}"><label class="pointer"><input type="checkbox" class="firm-toggle" onclick="core_firm_plugin_save(this)" data-value="{{value}}" data-type="checkbox"> {{label}}</label></li>
  33. {{/firms}}
  34. </ul>
  35. </div>
  36. <label class="btn activator {{#state}}text-success{{##state}}{{^state}}text-muted{{##state}}">
  37. <input {{#state}}checked{{##state}} type="checkbox" class="toggle" autocomplete="off" name="plugin-{{id}}" id="plugin-{{id}}" data-type="checkbox">
  38. {{#state}}Désactiver{{/state}}{{^state}}Activer{{/state}}
  39. </label>
  40. </li>
  41. </ul>
  42. </div>
  43. </div>
  44. <br>