66 lines
3.4 KiB
HTML
66 lines
3.4 KiB
HTML
<!--
|
|
~ Copyright (C) 2021 Anton Romanov - All Rights Reserved
|
|
~ You may use, distribute and modify this code, please write to: romanov73@gmail.com.
|
|
-->
|
|
|
|
<!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}">
|
|
<div class="container" layout:fragment="content">
|
|
<form action="#" th:action="${@route.INDEXING_NEW_REPOSITORY}" th:object="${repoForm}" method="post">
|
|
<button class="btn btn-outline-dark dropdown-toggle" type="button" data-toggle="collapse"
|
|
data-target="#collapseOne" aria-expanded="false" aria-controls="collapseExample"
|
|
th:if="${repoForm.repo != '' && repoForm.repo != null && (error == '' || error == null)}"
|
|
th:text="${repoForm.repo == '' || repoForm.repo == null ? 'Репозиторий' : repoForm.repo}">
|
|
Button with data-target
|
|
</button>
|
|
<div id="collapseOne"
|
|
th:class="${repoForm.repo == '' || repoForm.repo == null || (error != '' && error != null) ? 'collapse show' : 'collapse'}"
|
|
aria-labelledby="headingOne">
|
|
<div class="card-body">
|
|
<div class="form-group">
|
|
<label for="repoUrl">Ваш git репозиторий (https url):</label>
|
|
<div class="row">
|
|
<div class="col-md-8 col-sm-12">
|
|
<input id="repoUrl" type="text" class="form-control"
|
|
aria-label="Ваш git репозиторий (https url)"
|
|
th:field="*{repo}">
|
|
</div>
|
|
<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>
|
|
</div>
|
|
<div id="collapseTwo" class="collapse show" aria-labelledby="headingOne"
|
|
th:if="${repoForm.repo != '' && repoForm.repo != null && (error == '' || error == null) }">
|
|
<div class="card-body">
|
|
<div class="form-group">
|
|
<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}"
|
|
th:value="${branch.name}"
|
|
th:utext="${branch.name}"/>
|
|
</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-md-4 col-sm-12">
|
|
<input type="submit" class="btn btn-outline-success w-100" name="next" value="Продолжить"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<script language="JavaScript">
|
|
$('#select-branch').selectpicker('refresh');
|
|
</script>
|
|
</html>
|