Geen omschrijving

manage_modules.html 6.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. {% extends "layouts/default.html" %}
  2. {% block title %} Manage Modules {% endblock title %}
  3. {% block stylesheets %}
  4. <link rel="stylesheet" href="/static/assets/css/suggestags.css">
  5. <link rel="stylesheet" href="/static/assets/css/dataTables.group.min.css">
  6. {% endblock stylesheets %}
  7. {% block content %}
  8. {% if current_user.is_authenticated %}
  9. <div class="page-inner">
  10. <div class="row">
  11. <div class="col-md-12">
  12. <div class="card">
  13. <div class="card-header">
  14. <div class="row">
  15. <div class="col">
  16. <div class="card-title">Modules management</div>
  17. {{ form.hidden_tag() }}
  18. </div>
  19. <div class="col">
  20. <button type="button" class="btn btn-sm btn-dark float-right ml-2" onclick="refresh_modules();">
  21. Refresh
  22. </button>
  23. <button class="btn btn-sm btn-dark float-right ml-2" onclick="add_module();">Add module</button>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="card-body">
  28. <div class="table-responsive" id="module_table_wrapper">
  29. <div class="selectgroup">
  30. <span id="table_buttons"></span>
  31. </div>
  32. <table class="table display table table-striped table-hover" width="100%"
  33. cellspacing="0" id="modules_table">
  34. <thead>
  35. <tr>
  36. <th>#ID</th>
  37. <th>Module name</th>
  38. <th>Has pipeline</th>
  39. <th>Module version</th>
  40. <th>Interface version</th>
  41. <th>Date added</th>
  42. <th>Added by</th>
  43. <th>Active</th>
  44. </tr>
  45. </thead>
  46. <tfoot>
  47. <tr>
  48. <th>#ID</th>
  49. <th>Module name</th>
  50. <th>Has pipeline</th>
  51. <th>Module version</th>
  52. <th>Interface version</th>
  53. <th>Date added</th>
  54. <th>Added by</th>
  55. <th>Active</th>
  56. </tr>
  57. </tfoot>
  58. </table>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div class="row">
  65. <div class="col-md-12">
  66. <div class="card">
  67. <div class="card-header">
  68. <div class="row">
  69. <div class="col">
  70. <div class="card-title">Registered hooks</div>
  71. </div>
  72. <div class="col">
  73. <button type="button" class="btn btn-sm btn-icon btn-round btn-outline-black float-right" onclick="refresh_modules_hooks();">
  74. <i class="fas fa-sync rotate"></i>
  75. </button>
  76. </div>
  77. </div>
  78. </div>
  79. <div class="card-body">
  80. <div class="table-responsive" id="hooks_table_wrapper">
  81. <div class="selectgroup">
  82. <span id="table_buttons"></span>
  83. </div>
  84. <table class="table display table table-striped table-hover" width="100%"
  85. cellspacing="0" id="hooks_table">
  86. <thead>
  87. <tr>
  88. <th>#ID</th>
  89. <th>Registrant module</th>
  90. <th>Hook name</th>
  91. <th>Hook description</th>
  92. <th>Automatic trigger</th>
  93. <th>Active</th>
  94. </tr>
  95. </thead>
  96. <tfoot>
  97. <tr>
  98. <th>#ID</th>
  99. <th>Registrant module</th>
  100. <th>Hook name</th>
  101. <th>Hook description</th>
  102. <th>Automatic trigger</th>
  103. <th>Active</th>
  104. </tr>
  105. </tfoot>
  106. </table>
  107. </div>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="modal" tabindex="-1" role="dialog" id="modal_add_module" data-backdrop="true">
  113. <div class="modal-xl modal-dialog modal-dialog-scrollable" role="document">
  114. <div class="modal-content" id="modal_add_module_content">
  115. </div><!-- /.modal-content -->
  116. </div><!-- /.modal-dialog -->
  117. </div>
  118. <div class="modal bg-shadow-gradient" tabindex="-1" role="dialog" id="modal_update_param" data-backdrop="true">
  119. <div class="modal-xl modal-dialog modal-dialog-centered modal-dialog-scrollable" role="document">
  120. <div class="modal-content shadow-lg p-3 mb-5 rounded" id="modal_update_param_content">
  121. </div><!-- /.modal-content -->
  122. </div><!-- /.modal-dialog -->
  123. </div>
  124. </div>
  125. {% endif %}
  126. {% endblock content %}
  127. {% block javascripts %}
  128. <script src="/static/assets/js/plugin/ace/src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
  129. <script src="/static/assets/js/plugin/ace/src-noconflict/ext-language_tools.js" type="text/javascript"
  130. charset="utf-8"></script>
  131. <script src="/static/assets/js/plugin/datatables/dataTables.group.min.js"></script>
  132. <script src="/static/assets/js/iris/manage.modules.js"></script>
  133. {% endblock javascripts %}