git-extractor/src/main/resources/templates/newRepo.html

35 lines
1.3 KiB
HTML
Raw Normal View History

2021-03-17 12:19:03 +04:00
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
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">
2021-03-23 15:06:12 +04:00
<form action="#" th:action="@{/newRepo}" th:object="${repoForm}" method="post">
2021-03-17 12:19:03 +04:00
<p style="color:red" th:text="${error}"></p>
<p><b>Ваш git репозиторий:</b><br>
<input type="text" size="40" th:field="*{repo}">
</p>
<p>
2021-03-23 15:06:12 +04:00
<input type="submit" name="send" value="Отправить"/>
</p>
<p>Ветки:<br>
<select id="select-branch" class="selectpicker" data-live-search="true" th:field="*{branch}">
<option th:each="branch : ${branches}"
th:value="${branch.name}"
th:utext="${branch.name}"/>
</option>
</select>
</p>
<p>
<input type="submit" name="next" value="Продолжить"/>
2021-03-17 12:19:03 +04:00
</p>
</form>
</div>
2021-03-23 15:06:12 +04:00
<script>
$('#select-branch').selectpicker('refresh');
</script>
2021-03-17 12:19:03 +04:00
</html>