Compare commits
2 Commits
3e0be17cef
...
9db673abb8
| Author | SHA1 | Date | |
|---|---|---|---|
| 9db673abb8 | |||
| b9036465f2 |
@@ -101,7 +101,7 @@ public class AdminLoanController {
|
||||
try {
|
||||
loanService.returnBook(id, admin);
|
||||
ra.addFlashAttribute("message", "書籍の返却が完了しました。");
|
||||
return "redirect:/admin/return/complete";
|
||||
return "returnComplete";
|
||||
} catch (BusinessException e) {
|
||||
ra.addFlashAttribute("errorMessage", e.getMessage());
|
||||
return "redirect:/admin/lendings";
|
||||
|
||||
@@ -4,27 +4,18 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>書籍貸出申請</title>
|
||||
<link rel="stylesheet" th:href="@{/css/style.css}">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>
|
||||
|
||||
<div class="rightSection">
|
||||
<span class="loginInfo">ログイン者名:<span th:text="${session.loginUser.nmEmployee}"></span></span>
|
||||
<button class="logoutButton" onclick="logoutSubmit()">ログアウト</button>
|
||||
</div>
|
||||
</h1>
|
||||
<h2>書籍貸出申請を承認しました。</h2>
|
||||
<div th:replace="~{fragments/header :: header}"></div>
|
||||
<h1>完了</h1>
|
||||
<div class="info" th:text="${message} ?:'書籍貸出申請を承認しました。'"></div>
|
||||
|
||||
|
||||
<form action="returnComplete" method="post" >
|
||||
|
||||
<div class="msgBox error" th:if="${messageError} != null">
|
||||
<span class="error" th:text="${messageError.message}"></span>
|
||||
</div>
|
||||
</form>
|
||||
<a th:href="@{/admin/applications}">承認待ち一覧に戻る</a>
|
||||
<a href="showMenu">メニューに戻る</a>
|
||||
<p>
|
||||
<a class="btn" th:href="@{/admin/applications}">承認待ち一覧に戻る</a>
|
||||
<a class="btn sub" th:href="@{/menu}">メニューに戻る</a>
|
||||
</p>
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
@@ -4,16 +4,14 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>書籍貸出承認確認</title>
|
||||
|
||||
<link rel="stylesheet" th:href="@{/css/style.css}">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div th:replace="~{fragments/header :: header}"></div>
|
||||
<h1>
|
||||
書籍貸出承認確認
|
||||
<div class="rightSection">
|
||||
<span class="loginInfo">ログイン者名:<span th:text="${session.loginUser.nmEmployee}"></span></span>
|
||||
<button class="logoutButton" onclick="logoutSubmit()">ログアウト</button>
|
||||
</div>
|
||||
|
||||
</h1>
|
||||
|
||||
|
||||
|
||||
@@ -4,27 +4,19 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>書籍貸出申請</title>
|
||||
<link rel="stylesheet" th:href="@{/css/style.css}">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>
|
||||
|
||||
<div class="rightSection">
|
||||
<span class="loginInfo">ログイン者名:<span th:text="${session.loginUser.nmEmployee}"></span></span>
|
||||
<button class="logoutButton" onclick="logoutSubmit()">ログアウト</button>
|
||||
</div>
|
||||
</h1>
|
||||
<h2>書籍貸出申請を却下しました。</h2>
|
||||
<div th:replace="~{fragments/header :: header}"></div>
|
||||
<h1>却下</h1>
|
||||
<div class="info" th:text="${message} ?: '書籍貸出申請を却下しました。'"></div>
|
||||
|
||||
<p>
|
||||
<a class="btn" th:href="@{/admin/applications}">承認待ち一覧に戻る</a>
|
||||
<a class="btn sub" th:href="@{/menu}">メニューに戻る</a>
|
||||
</p>
|
||||
|
||||
<form action="returnRejected" method="post">
|
||||
|
||||
<div class="msgBox error" th:if="${messageError} != null">
|
||||
<span class="error" th:text="${messageError.message}"></span>
|
||||
</div>
|
||||
</form>
|
||||
<a th:href="@{/admin/applications}">承認待ち一覧に戻る</a>
|
||||
<a href="showMenu">メニューに戻る</a>
|
||||
|
||||
</body>
|
||||
|
||||
|
||||
21
book-rent/src/main/resources/templates/returnComplete.html
Normal file
21
book-rent/src/main/resources/templates/returnComplete.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>書籍返却完了</title>
|
||||
<link rel="stylesheet" th:href="@{/css/style.css}">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div th:replace="~{fragments/header :: header}"></div>
|
||||
<h1>返却完了</h1>
|
||||
<div class="info" th:text="${message} ?: '書籍の返却が完了しました。'"></div>
|
||||
|
||||
<p>
|
||||
<a class="btn" th:href="@{/admin/lendings}">貸出中書籍一覧に戻る</a>
|
||||
<a class="btn sub" th:href="@{/menu}">メニューに戻る</a>
|
||||
</p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user