54 lines
3.0 KiB
HTML
54 lines
3.0 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="#" th:action="${@route.ADD_MARKUP}" method="post" th:object="${markupForm}">
|
||
<div class="row">
|
||
<div class="col-md-2 col-sm-12">
|
||
Репозиторий-ветка
|
||
</div>
|
||
<div class="col-md-6 col-sm-12">
|
||
<select id="select-branch" class="selectpicker" data-live-search="true" th:field="*{branchId}"
|
||
data-width="90%">
|
||
<option value="">Все ветки</option>
|
||
<option th:each="branch : ${branches}"
|
||
th:value="${branch.id}"
|
||
th:utext="${branch.gitRepository.url} + ' - '+ ${branch.name}">
|
||
</option>
|
||
</select>
|
||
<script th:inline="javascript">
|
||
$('#select-branch').val([[*{branchId}]]);
|
||
$('#select-branch').selectpicker('refresh');
|
||
</script>
|
||
</div>
|
||
<div class="col-md-4 col-sm-12">
|
||
<input type="submit" class="btn btn-outline-success w-100" th:formaction="@{/time-series-markup}"
|
||
value="Применить"/>
|
||
</div>
|
||
</div>
|
||
<h5 class="m-5" th:if="*{timeSeriesForMarkupList != null && #lists.size(timeSeriesForMarkupList) > 0}">
|
||
Охарактеризуйте периоды вашего проекта</h5>
|
||
<div class="form-group m-5" th:each="m, itemStat: *{timeSeriesForMarkupList}">
|
||
<div th:each="m2, itemStat2: *{timeSeriesForMarkupList[__${itemStat.index}__].timeSeriesTypes}">
|
||
<input type="hidden"
|
||
th:field="*{timeSeriesForMarkupList[__${itemStat.index}__].timeSeriesTypes[__${itemStat2.index}__]}">
|
||
</div>
|
||
<div th:each="m3, itemStat3: *{timeSeriesForMarkupList[__${itemStat.index}__].antecedentValues}">
|
||
<input type="hidden"
|
||
th:field="*{timeSeriesForMarkupList[__${itemStat.index}__].antecedentValues[__${itemStat3.index}__].antecedentValue}">
|
||
</div>
|
||
<label th:text="${#dates.format(m.dateFrom, 'dd.MM.yyyy HH:mm')} + ' - ' + ${#dates.format(m.dateTo, 'dd.MM.yyyy HH:mm')}"></label>
|
||
<textarea th:field="*{timeSeriesForMarkupList[__${itemStat.index}__].markup}"
|
||
class="form-control"></textarea>
|
||
</div>
|
||
<input type="submit" th:if="*{timeSeriesForMarkupList != null && #lists.size(timeSeriesForMarkupList) > 0}"
|
||
class="btn btn-outline-success m-5" value="Сгенерировать правила"/>
|
||
</form>
|
||
</div>
|
||
</html>
|