Skip to content
Snippets Groups Projects

Resolve "Archive button gone"

All threads resolved!
3 files
+ 11
11
Compare changes
  • Side-by-side
  • Inline

Files

@@ -10,9 +10,9 @@
<body>
<section layout:fragment="subcontent" th:with="currentDateTime=${T(java.time.LocalDateTime).now()}">
<div class="page-sub-header">
<h3>Archive</h3>
<h3 class="font-500 mb-5">Archive edition</h3>
</div>
<p th:if="${currentDateTime < edition.endDate}">
<p th:if="${currentDateTime < edition.endDate}" class="mb-5">
The edition has
<strong>not yet finished</strong>
. It will finish on
@@ -23,20 +23,18 @@
<strong th:text="|${edition.course.name} (${edition.name})|"></strong>
?
</p>
<p th:if="${currentDateTime >= edition.endDate}">
<p th:if="${currentDateTime >= edition.endDate}" class="mb-5">
The edition has finished. Are you sure you want to archive
<strong th:text="|${edition.course.name} (${edition.name})|"></strong>
?
</p>
<form action="#" th:action="@{/edition/{id}/archive(id=${edition.id})}" class="form-horizontal" method="post">
<div class="text-center">
<button type="submit" class="btn btn-danger">Archive</button>
<small>
or
<a th:href="@{/edition/{id}(id=${edition.id})}">go back</a>
</small>
</div>
<form th:action="@{/edition/{id}/archive(id=${edition.id})}" method="post">
<button type="submit" class="button" data-type="error">Archive</button>
<small>
or
<a class="link" th:href="@{/edition/{id}(id=${edition.id})}">go back</a>
</small>
</form>
</section>
</body>
Loading