#44 finish with papers

This commit is contained in:
T-Midnight 2019-05-13 16:29:33 +04:00
parent c612e35ad9
commit 395cf57cc1

View File

@ -11,14 +11,32 @@
<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>
<span th:each="paper, rowStat : *{grant.papers}">
<th:block th:switch="${paper.status.name()}">
<span th:case="'ATTENTION'">
<i class="fa fa-circle text-warning" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
<span th:case="'DRAFT'">
<i class="fa fa-circle text-draft" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
<span th:case="'ON_PREPARATION'">
<i class="fa fa-circle text-primary" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
<span th:case="'ON_REVIEW'">
<i class="fa fa-circle text-review" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
<span th:case="'ACCEPTED'">
<i class="fa fa-circle text-success" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
<span th:case="'NOT_ACCEPTED'">
<i class="fa fa-circle text-not-accepted" aria-hidden="true"
th:title="'Статья: ' + ${paper.title}"></i>
</span>
<span th:case="'FAILED'">
<i class="fa fa-circle text-failed" aria-hidden="true" th:title="'Статья: ' + ${paper.title}"></i>
</span>
</th:block>
</span>
<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="Удалить грант?">