Some checks failed
CI fuzzy controller / container-test-job (push) Failing after 1m39s
60 lines
2.5 KiB
HTML
60 lines
2.5 KiB
HTML
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
|
||
<html
|
||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.w3.org/1999/xhtml"
|
||
layout:decorate="~{default}">
|
||
<head>
|
||
<title>Редактирование правила</title>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||
<script></script>
|
||
</head>
|
||
<div class="container" layout:fragment="content">
|
||
<h3>Редактирование правила:</h3>
|
||
<form th:action="@{/rule/save}" th:object="${fuzzyRuleForm}" method="post">
|
||
<input type="hidden" id="projectId" th:field="*{projectId}">
|
||
<input type="hidden" th:field="*{id}">
|
||
<div class="form-group">
|
||
<input th:field="*{content}"
|
||
id="ruleContent"
|
||
type="text"
|
||
required
|
||
class="form-control d-none"
|
||
placeholder="Правило">
|
||
<p th:if="${#fields.hasErrors('content')}"
|
||
th:class="${#fields.hasErrors('content')}? error">
|
||
Не может быть пустым
|
||
</p>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col col-md-1 m-2">Если</label>
|
||
<div id="rulesAntecedent"></div>
|
||
<div>
|
||
<a href="#" class="btn btn-outline-dark"
|
||
th:onclick="addAntecedent($('#rulesAntecedent'), $('#projectId').val());">+</a>
|
||
</div>
|
||
<label class="col col-md-1 m-2">То</label>
|
||
<div id="rulesConsequent"></div>
|
||
<div>
|
||
<a href="#" class="btn btn-outline-dark"
|
||
th:onclick="addConsequent($('#rulesConsequent'), $('#projectId').val());">+</a>
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<button name="save" type="submit" class="btn btn-outline-dark">Сохранить</button>
|
||
<button name="delete"
|
||
type="submit"
|
||
class="btn btn-outline-dark"
|
||
onclick="return confirm('Удалить запись?')">
|
||
Удалить
|
||
</button>
|
||
<a th:href="@{'/project/edit/' + ${projectId}}" class="btn btn-outline-dark">Назад</a>
|
||
</div>
|
||
<script type="text/javascript" src="/js/fuzzyRule.js"></script>
|
||
<script type="text/javascript">
|
||
(async () => {
|
||
await initSelects();
|
||
})();
|
||
</script>
|
||
</form>
|
||
</div>
|
||
</html>
|