Anton Romanov 900cfdd036
Some checks failed
CI fuzzy controller / container-test-job (push) Failing after 52s
Merge branch 'master' into 3-parse-rule
# Conflicts:
#	src/main/java/ru/ulstu/fc/rule/controller/RuleController.java
#	src/main/java/ru/ulstu/fc/rule/model/Variable.java
#	src/main/java/ru/ulstu/fc/rule/repository/VariableRepository.java
#	src/main/java/ru/ulstu/fc/rule/service/FuzzyInferenceService.java
#	src/main/java/ru/ulstu/fc/rule/service/VariableService.java
#	src/main/resources/templates/default.html
#	src/main/resources/templates/listRules.html
2025-02-24 21:42:35 +04:00

55 lines
2.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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"/>
</head>
<div class="container" layout:fragment="content">
<h3>Редактирование терма:</h3>
<form th:action="@{/fuzzyTerm/save}" th:object="${fuzzyTermForm}" method="post">
<input type="hidden" th:field="*{projectId}">
<input type="hidden" th:field="*{variableId}">
<input type="hidden" th:field="*{id}">
<div class="form-group">
<label for="name">Терм</label>
<input th:field="*{description}"
id="description"
type="text"
required
class="form-control"
placeholder="Терм">
<p th:if="${#fields.hasErrors('description')}"
th:class="${#fields.hasErrors('description')} ? error">
Не может быть пустым
</p>
</div>
<div class="form-group">
<label for="name">Значение</label>
<input th:field="*{crispValue}"
id="crispValue"
type="number"
required
class="form-control"
placeholder="Терм">
<p th:if="${#fields.hasErrors('crispValue')}"
th:class="${#fields.hasErrors('crispValue')} ? error">
Не может быть пустым
</p>
</div>
<button name="save" type="submit" class="btn btn-outline-dark">Сохранить</button>
<button name="delete"
type="submit"
class="btn btn-outline-dark"
th:if="*{id != 0}"
onclick="return confirm('Удалить запись?')">
Удалить
</button>
<a th:href="@{'/variable/edit/' + ${projectId}+'/' + ${variableId}}" class="btn btn-outline-dark">Отмена</a>
</form>
</div>
</html>