2019-05-12 23:27:19 +04:00

30 lines
1.3 KiB
HTML

<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head th:fragment="headerfiles">
<meta charset="UTF-8"/>
</head>
<body>
<div th:fragment="grantLine (grant)" class="row text-left grant-row" style="background-color: white;">
<div class="col">
<span th:replace="grants/fragments/grantStatusFragment :: grantStatus(grantStatus=${grant.status})"/>
<a th:href="@{'grant?id='+${grant.id}}">
<span class="h6" th:text="${grant.title}"/>
<span class="text-muted" th:text="${grant.authorsString}"/>
</a>
<a th:each="paper, rowStat : *{grant.papers}">
<span th:if="${paper.status.name() == 'COMPLETED'}">
<i class="fa fa-circle" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
<span th:unless="${paper.status.name() == 'COMPLETED'}">
<i class="fa fa-circle-o" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
</a>
<input class="id-class" type="hidden" th:value="${grant.id}"/>
<a class="remove-paper pull-right d-none" th:href="@{'/grants/delete/'+${grant.id}}"
data-confirm="Удалить грант?">
<i class="fa fa-trash" aria-hidden="true"></i>
</a>
</div>
</div>
</body>
</html>