ui/src/main/resources/templates/udmetric_topic_offset_increase.html (59 lines of code) (raw):
<!--
* Copyright 2020 EPAM Systems
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy
* of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
-->
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{templates :: header(~{},~{},~{})}">
</head>
<body>
<div th:replace="~{templates :: navbar}"></div>
<div class="main-content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<ul th:if="${udm != null AND udm.hasErrors()}" class="list-group">
<li class="list-group-item list-group-item-danger" th:each="error : ${udm.errors}" th:text="${error}"></li>
</ul>
<form th:action="@{/udmetrics/topic_offset_increase/{name}(name=${topicName})}" method="post">
<div class="card mb-3">
<div class="card-header">Topic Offset Increase</div>
<div class="card-body">
<p>
<b>Name:</b>
<span th:text="${udm != null ? udm.name : 'New'}"></span>
</p>
<p>
<b>Topic:</b>
<a
th:if="${topic != null}"
th:href="@{/topics/{name}(name=${topicName})}">
<span th:text="${topicName}"></span>
</a>
<a
th:if="${topic == null}"
th:classappend="text-danger"
href="#">
<span th:text="${topicName}"></span>
<i class="fa fa-minus info"></i>
</a>
<input
type="text"
name="topicName"
th:value="${topicName}"
hidden="true" />
</p>
<p>
<button
type="submit"
class="btn btn-primary"
th:disabled="${topic == null}">
Save
</button>
</p>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div th:replace="~{templates :: footer}"></div>
</body>
</html>