setting.firmPlugin.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. $firms = Firm::loadAll();
  3. $firms[] = Firm::anonymous_firm();
  4. ?>
  5. <br>
  6. <h3>Établissement / Plugins</h3>
  7. <hr/>
  8. <div class="row">
  9. <div class="col-md-12 firm-plugin-header">
  10. <label>Établissement concerné :</label>
  11. <select onchange="search_firm_plugin();" class="form-control" id="firm">
  12. <option value="0">Tous</option>
  13. <?php foreach ($firms as $firm) : ?>
  14. <option value="<?php echo $firm->id; ?>"><?php echo $firm->label; ?></option>
  15. <?php endforeach; ?>
  16. </select>
  17. </div>
  18. </div>
  19. <br/>
  20. <table class="table table-striped table-bordered table-hover" id="firmplugins" data->
  21. <thead class="bg-secondary text-white">
  22. <tr>
  23. <th>Plugin</th>
  24. <th>Description</th>
  25. <th class="text-center">Activé</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. <tr class="hidden" data-id="{{id}}">
  30. <td>{{name}} <br><small class="text-muted">{{id}}</small></td>
  31. <td>{{description}}</td>
  32. <td class="text-center">
  33. <input value="1" data-result={{state}} onchange="toggle_firm_plugin(this)" type="checkbox" autocomplete="off" name="plugin-{{id}}" id="plugin-{{id}}" data-type="checkbox">
  34. </td>
  35. </tr>
  36. </tbody>
  37. </table>