#15 -- Fix bootstrap buttons, align inputs
This commit is contained in:
parent
aa21ce8705
commit
5bc65ea8d9
@ -19,14 +19,10 @@
|
|||||||
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||||
<ul class="navbar-nav mr-auto">
|
<ul class="navbar-nav mr-auto">
|
||||||
<li class="nav-item active">
|
|
||||||
<a class="nav-link" href="/" th:text="#{messages.menu.home}">Home</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="#" th:text="#{messages.menu.new-repo}">Link</a>
|
<a class="nav-link" href="/" th:text="#{messages.menu.new-repo}">Link</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a class="nav-link" href="#" th:text="#{messages.menu.indexed-repos}">Link</a>
|
<a class="nav-link" href="#" th:text="#{messages.menu.indexed-repos}">Link</a>
|
||||||
|
@ -3,32 +3,51 @@
|
|||||||
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
|
||||||
layout:decorate="~{default}">
|
layout:decorate="~{default}">
|
||||||
<head>
|
<head>
|
||||||
<title>Простая обработка формы на Spring MVC</title>
|
<title>Индексировать новый репозиторий</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||||
</head>
|
</head>
|
||||||
<div class="container" layout:fragment="content">
|
<div class="container" layout:fragment="content">
|
||||||
<form action="#" th:action="@{/newRepo}" th:object="${repoForm}" method="post">
|
<form action="#" th:action="@{/newRepo}" th:object="${repoForm}" method="post">
|
||||||
<p style="color:red" th:text="${error}"></p>
|
<p style="color:red" th:text="${error}"></p>
|
||||||
<p><b>Ваш git репозиторий:</b><br>
|
<div class="form-group">
|
||||||
<input type="text" size="40" th:field="*{repo}">
|
<label for="repoUrl">Ваш git репозиторий (https url):</label>
|
||||||
</p>
|
<div class="row">
|
||||||
<p>
|
<div class="col-md-8 col-sm-12">
|
||||||
<input type="submit" name="send" value="Отправить"/>
|
<input id="repoUrl" type="text" class="form-control" aria-label="Ваш git репозиторий (https url)"
|
||||||
</p>
|
th:field="*{repo}">
|
||||||
<p>Ветки:<br>
|
</div>
|
||||||
<select id="select-branch" class="selectpicker" data-live-search="true" th:field="*{branch}">
|
<div class="col-md-4 col-sm-12">
|
||||||
|
<input type="submit" class="btn btn-outline-primary w-100" name="send" value="Индексировать"/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group" th:if="${repoForm.repo != null}">
|
||||||
|
<label for="select-branch">Ветки:</label>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-8 col-sm-12">
|
||||||
|
<select id="select-branch" class="selectpicker" data-live-search="true" th:field="*{branch}"
|
||||||
|
data-width="90%">
|
||||||
<option th:each="branch : ${branches}"
|
<option th:each="branch : ${branches}"
|
||||||
th:value="${branch.name}"
|
th:value="${branch.name}"
|
||||||
th:utext="${branch.name}"/>
|
th:utext="${branch.name}"/>
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</p>
|
</div>
|
||||||
<p>
|
<div class="col-md-4 col-sm-12">
|
||||||
<input type="submit" name="next" value="Продолжить"/>
|
<input type="submit" class="btn btn-outline-success w-100" name="next" value="Продолжить"/>
|
||||||
</p>
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script language="JavaScript">
|
||||||
$('#select-branch').selectpicker('refresh');
|
$('#select-branch').selectpicker('refresh');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user