Add check entity

This commit is contained in:
Anton Romanov 2021-04-13 16:52:10 +04:00
parent 1cd785ee41
commit 0b0b8193b4
2 changed files with 4 additions and 2 deletions

View File

@ -67,6 +67,7 @@ public class GitFilteringController {
filterForm.setRepositoryUrl(notEmptyRepositoryUrl);
filterForm.setAuthor(author.orElse(null));
filterForm.setFilter(filter.orElse(null));
filterForm.setEntity(entity.orElse(false));
model.addAttribute("filterForm", filterForm);
model.addAttribute("authors", filteringService.getRepositoryAuthors(
notEmptyRepositoryUrl,

View File

@ -77,7 +77,7 @@
Содержит сущность:
</div>
<div class="form-group form-check">
<input type="checkbox" class="form-check-input" th:field="*{entity}">
<input type="checkbox" class="form-check-input" th:field="*{entity}" th:checked="*{entity}"/>
</div>
<div class="col-md-4 col-sm-12">
<input type="submit" class="btn btn-outline-success w-100" value="Применить фильтр"/>
@ -117,7 +117,8 @@
repositoryUrl=${filterForm.repositoryUrl},
branchName=${filterForm.branchName},
author=${filterForm.author},
filter=${filterForm.filter})}"
filter=${filterForm.filter},
entity=${filterForm.entity})}"
th:text=${pageNumber}
th:class="${pageNumber == filterForm.commitsPage.number} ? active"></a>
</div>