| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <!DOCTYPE html>
- <html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml"
- layout:decorate="~{monitoring/layout}">
- <head>
- <title th:text="#{cas.viewconfig.pagetitle}"></title>
- </head>
- <body id="cas">
- <div id="container">
- <div layout:fragment="content">
- <link rel="stylesheet" th:href="@{#{webjars.jqueryui.themes.cupertino.jquery-ui.css}}"/>
- <link rel="stylesheet" th:href="@{#{webjars.datatables-plugins.jqueryui.css}}"/>
- <script type="text/javascript" th:inline="javascript">
- var urls = {
- getConfiguration: /*[[@{/status/config/getConfiguration}]]*/,
- updateConfiguration: /*[[@{/status/config/updateConfiguration}]]*/,
- };
- var updateEnabled = /*[[${enableUpdate}]]*/ === "true" ;
-
- function jqueryReady() {
- head.load(
- /*[[@{/js/viewConfig.js}]]*/
- );
- }
- </script>
- <div class="viewConfig">
- <div id="loadingMessage"><h3 th:text="#{cas.viewconfig.loading}"/></div>
- <div id="viewConfigError">
- <h2 th:text="#{cas.viewconfig.errormessage}"></h2>
- <div>
- <input class="btn btn-success" type="button" onclick="location.reload();" th:value="#{cas.viewconfig.button.refresh}"/>
- </div>
- </div>
-
- <div id="view-configuration">
- <div class="card">
- <div class="card-header">
- <h4 th:text="#{cas.viewconfig.pagetitle}">
- <span class="glyphicon glyphicon-cog" aria-hidden="true"/>
- </h4>
- </div>
- <div class="card-body">
- <div id="alertWrapper" style="display:none" class="alert alert-dismissible" role="alert">
- <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
- aria-hidden="true">×</span></button>
- <p id="resultText"></p>
- </div>
- <div id="containers-table" class="container-fluid">
- <table id="viewConfigsTable" class="table table-striped table-bordered">
- <thead>
- <tr>
- <th th:text="#{cas.viewconfig.table.column.key}"/>
- <th th:text="#{cas.viewconfig.table.column.value}"/>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td></td>
- <td></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- <div th:replace="monitoring/fragments/footerButtons"></div>
- <div th:if="${enableRefresh}">
- <form th:method="${refreshMethod}" th:action="${refreshEndpoint}" id="formRefreshCAS">
- <button class="btn btn-refresh"
- type="button"
- th:inline="text"
- th:attr="data-disabled=true,data-title=foo,data-message=bar">
- <i class="fa fa-refresh"></i> [[#{cas.dashboard.action.button.refresh}]]
- </button>
- </form>
- </div>
- <div layout:include="monitoring/fragments/modal :: modal(
- modalId='refreshModal',
- modalHeader=#{cas.dashboard.action.button.refresh.modal.title},
- modalButtons='true',
- modalTopClose=false,
- hideCancel=false
- )"
- th:remove="tag">
- <p layout:fragment="modal-content"><span
- th:text="#{cas.dashboard.action.button.refresh.modal.message}"></span></p>
- </div>
- </div>
- </div>
- </div>
- </body>
- </html>
|