All checks were successful
CI fuzzy controller / container-test-job (push) Successful in 1m32s
78 lines
3.3 KiB
HTML
78 lines
3.3 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">
|
||
<label for="ruleContent">Правило</label>
|
||
<input th:field="*{content}"
|
||
id="ruleContent"
|
||
type="text"
|
||
required
|
||
class="form-control"
|
||
placeholder="Правило">
|
||
<p th:if="${#fields.hasErrors('content')}"
|
||
th:class="${#fields.hasErrors('content')}? error">
|
||
Не может быть пустым
|
||
</p>
|
||
</div>
|
||
<div class="form-group" id="rules">
|
||
<label class="col col-md-1">Если</label>
|
||
</div>
|
||
<hr/>
|
||
<div class="form-group">
|
||
<label class="col col-md-1">Если</label>
|
||
<select id="select-variable" class="selectpicker inputVar m-2" data-live-search="true" data-width="70%"
|
||
onchange="createRule()">
|
||
<option>Скорость</option>
|
||
</select>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col col-md-1">есть</label>
|
||
<select id="select-val" class="selectpicker inputVal m-2" data-live-search="true" data-width="70%"
|
||
onchange="createRule()">
|
||
<option>Высокая</option>
|
||
</select>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col col-md-1">то</label>
|
||
<select id="select-val1" class="selectpicker m-2" data-live-search="true" data-width="70%"
|
||
onchange="createRule()">
|
||
<option>Действие</option>
|
||
</select>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col col-md-1">есть</label>
|
||
<select id="select-val4" class="selectpicker m-2" data-live-search="true" data-width="70%"
|
||
onchange="createRule()">
|
||
<option>Сливать воду</option>
|
||
</select>
|
||
</div>
|
||
|
||
<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>
|
||
<script type="text/javascript" src="/js/fuzzyRule.js"></script>
|
||
<script>
|
||
/*<![CDATA[*/
|
||
addAntecedent($('#rules'), [[${projectId}]]);
|
||
/*]]>*/
|
||
</script>
|
||
</form>
|
||
</div>
|
||
</html>
|