Add check entity
This commit is contained in:
parent
1cd785ee41
commit
0b0b8193b4
@ -67,6 +67,7 @@ public class GitFilteringController {
|
|||||||
filterForm.setRepositoryUrl(notEmptyRepositoryUrl);
|
filterForm.setRepositoryUrl(notEmptyRepositoryUrl);
|
||||||
filterForm.setAuthor(author.orElse(null));
|
filterForm.setAuthor(author.orElse(null));
|
||||||
filterForm.setFilter(filter.orElse(null));
|
filterForm.setFilter(filter.orElse(null));
|
||||||
|
filterForm.setEntity(entity.orElse(false));
|
||||||
model.addAttribute("filterForm", filterForm);
|
model.addAttribute("filterForm", filterForm);
|
||||||
model.addAttribute("authors", filteringService.getRepositoryAuthors(
|
model.addAttribute("authors", filteringService.getRepositoryAuthors(
|
||||||
notEmptyRepositoryUrl,
|
notEmptyRepositoryUrl,
|
||||||
|
@ -77,7 +77,7 @@
|
|||||||
Содержит сущность:
|
Содержит сущность:
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group form-check">
|
<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>
|
||||||
<div class="col-md-4 col-sm-12">
|
<div class="col-md-4 col-sm-12">
|
||||||
<input type="submit" class="btn btn-outline-success w-100" value="Применить фильтр"/>
|
<input type="submit" class="btn btn-outline-success w-100" value="Применить фильтр"/>
|
||||||
@ -117,7 +117,8 @@
|
|||||||
repositoryUrl=${filterForm.repositoryUrl},
|
repositoryUrl=${filterForm.repositoryUrl},
|
||||||
branchName=${filterForm.branchName},
|
branchName=${filterForm.branchName},
|
||||||
author=${filterForm.author},
|
author=${filterForm.author},
|
||||||
filter=${filterForm.filter})}"
|
filter=${filterForm.filter},
|
||||||
|
entity=${filterForm.entity})}"
|
||||||
th:text=${pageNumber}
|
th:text=${pageNumber}
|
||||||
th:class="${pageNumber == filterForm.commitsPage.number} ? active"></a>
|
th:class="${pageNumber == filterForm.commitsPage.number} ? active"></a>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user