80 lines
3.5 KiB
HTML
80 lines
3.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>Простая обработка формы на Spring MVC</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
|
</head>
|
|
<div class="container" layout:fragment="content">
|
|
<form action="/listRule" th:action="${@route.ADD_RULE}" th:object="${addRuleForm}" method="post">
|
|
<div class="row">
|
|
<div class="col-md-2 col-sm-12">
|
|
Если
|
|
</div>
|
|
<div class="col-md-6 col-sm-12">
|
|
<select id="select-antecedent" class="selectpicker" data-live-search="true"
|
|
th:field="*{firstAntecedentId}"
|
|
data-width="90%">
|
|
<option th:each="antecedent : ${antecedents}"
|
|
th:value="${antecedent}"
|
|
th:utext="${antecedent.description}">
|
|
</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-md-2 col-sm-12">
|
|
имеет тенденцию
|
|
</div>
|
|
<div class="col-md-2 col-sm-12">
|
|
<select id="select-measures" class="selectpicker" data-live-search="true"
|
|
th:field="*{firstAntecedentValueId}"
|
|
data-width="100%">
|
|
<option th:each="antecedentValue : ${antecedentValues}"
|
|
th:value="${antecedentValue.id}"
|
|
th:utext="${antecedentValue.antecedentValue}">
|
|
</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-md-2 col-sm-12">
|
|
и
|
|
</div>
|
|
<div class="col-md-6 col-sm-12">
|
|
<select id="select-second-antecedent" class="selectpicker" data-live-search="true"
|
|
th:field="*{secondAntecedentId}"
|
|
data-width="90%">
|
|
<option th:each="antecedent : ${antecedents}"
|
|
th:value="${antecedent}"
|
|
th:utext="${antecedent.description}">
|
|
</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-md-2 col-sm-12">
|
|
имеет тенденцию
|
|
</div>
|
|
<div class="col-md-2 col-sm-12">
|
|
<select id="select-second-measures" class="selectpicker" data-live-search="true"
|
|
th:field="*{secondAntecedentValueId}"
|
|
data-width="100%">
|
|
<option th:each="antecedentValue : ${antecedentValues}"
|
|
th:value="${antecedentValue.id}"
|
|
th:utext="${antecedentValue.antecedentValue}">
|
|
</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-md-2 col-sm-12">
|
|
то:
|
|
</div>
|
|
<div class="col-md-6 col-sm-12">
|
|
<input type="text" class="form-control" th:field="*{consequent}">
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-4 col-sm-12"></div>
|
|
<div class="col-md-4 col-sm-12">
|
|
<input type="submit" class="btn btn-outline-success" value="Создать правило"/>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</html>
|