viewConfig.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <!DOCTYPE html>
  2. <html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml"
  3. layout:decorate="~{monitoring/layout}">
  4. <head>
  5. <title th:text="#{cas.viewconfig.pagetitle}"></title>
  6. </head>
  7. <body id="cas">
  8. <div id="container">
  9. <div layout:fragment="content">
  10. <link rel="stylesheet" th:href="@{#{webjars.jqueryui.themes.cupertino.jquery-ui.css}}"/>
  11. <link rel="stylesheet" th:href="@{#{webjars.datatables-plugins.jqueryui.css}}"/>
  12. <script type="text/javascript" th:inline="javascript">
  13. var urls = {
  14. getConfiguration: /*[[@{/status/config/getConfiguration}]]*/,
  15. updateConfiguration: /*[[@{/status/config/updateConfiguration}]]*/,
  16. };
  17. var updateEnabled = /*[[${enableUpdate}]]*/ === "true" ;
  18. function jqueryReady() {
  19. head.load(
  20. /*[[@{/js/viewConfig.js}]]*/
  21. );
  22. }
  23. </script>
  24. <div class="viewConfig">
  25. <div id="loadingMessage"><h3 th:text="#{cas.viewconfig.loading}"/></div>
  26. <div id="viewConfigError">
  27. <h2 th:text="#{cas.viewconfig.errormessage}"></h2>
  28. <div>
  29. <input class="btn btn-success" type="button" onclick="location.reload();" th:value="#{cas.viewconfig.button.refresh}"/>
  30. </div>
  31. </div>
  32. <div id="view-configuration">
  33. <div class="card">
  34. <div class="card-header">
  35. <h4 th:text="#{cas.viewconfig.pagetitle}">
  36. <span class="glyphicon glyphicon-cog" aria-hidden="true"/>
  37. </h4>
  38. </div>
  39. <div class="card-body">
  40. <div id="alertWrapper" style="display:none" class="alert alert-dismissible" role="alert">
  41. <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
  42. aria-hidden="true">&times;</span></button>
  43. <p id="resultText"></p>
  44. </div>
  45. <div id="containers-table" class="container-fluid">
  46. <table id="viewConfigsTable" class="table table-striped table-bordered">
  47. <thead>
  48. <tr>
  49. <th th:text="#{cas.viewconfig.table.column.key}"/>
  50. <th th:text="#{cas.viewconfig.table.column.value}"/>
  51. </tr>
  52. </thead>
  53. <tbody>
  54. <tr>
  55. <td></td>
  56. <td></td>
  57. </tr>
  58. </tbody>
  59. </table>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. <div th:replace="monitoring/fragments/footerButtons"></div>
  65. <div th:if="${enableRefresh}">
  66. <form th:method="${refreshMethod}" th:action="${refreshEndpoint}" id="formRefreshCAS">
  67. <button class="btn btn-refresh"
  68. type="button"
  69. th:inline="text"
  70. th:attr="data-disabled=true,data-title=foo,data-message=bar">
  71. <i class="fa fa-refresh"></i> [[#{cas.dashboard.action.button.refresh}]]
  72. </button>
  73. </form>
  74. </div>
  75. <div layout:include="monitoring/fragments/modal :: modal(
  76. modalId='refreshModal',
  77. modalHeader=#{cas.dashboard.action.button.refresh.modal.title},
  78. modalButtons='true',
  79. modalTopClose=false,
  80. hideCancel=false
  81. )"
  82. th:remove="tag">
  83. <p layout:fragment="modal-content"><span
  84. th:text="#{cas.dashboard.action.button.refresh.modal.message}"></span></p>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </body>
  90. </html>