Compare commits
6 Commits
2a55d9d83b
...
15458cd2cd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
15458cd2cd | ||
|
|
990814ee78 | ||
| d841bc52e4 | |||
| 4398b1554b | |||
| 970f47b8b2 | |||
|
|
d098a7bf9e |
@@ -0,0 +1,13 @@
|
||||
package com.example.demo.controller;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
@Controller
|
||||
public class ApprovalReceive {
|
||||
@GetMapping("/approvalReceive")
|
||||
public String approvalReceive() {
|
||||
return "approvalReceive";
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,15 @@
|
||||
package com.example.demo.controller;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
@Controller
|
||||
public class BookController {
|
||||
@GetMapping("/book")
|
||||
@PostMapping("/book")
|
||||
public String book() {
|
||||
return "book";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.example.demo.controller;
|
||||
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
|
||||
@Controller
|
||||
public class LendListController {
|
||||
@GetMapping("/lendList")
|
||||
public String lendList() {
|
||||
return "lendList";
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>寄贈申請 受信BOX</title>
|
||||
<meta charset="UTF-8">
|
||||
<title>寄贈申請 受信BOX</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>寄贈申請 受信BOX</h1>
|
||||
<!-- action先要修正 -->
|
||||
<form action="/approvalReceive" method="GET">
|
||||
<input type="submit" value="承認" class="btn">
|
||||
</form>
|
||||
|
||||
<!-- action先要修正 -->
|
||||
<form action="/approvalReceive" method="GET">
|
||||
<input type="submit" value="却下" class="btn">
|
||||
</form>
|
||||
|
||||
<!-- 新規登録画面へ遷移 -->
|
||||
<form action="/bookInsert" method="GET">
|
||||
<input type="submit" value="登録" class="btn">
|
||||
</form>
|
||||
|
||||
<!-- action先要修正 -->
|
||||
<form action="/approvalReceive" method="GET">
|
||||
<input type="submit" value="戻る" class="btn">
|
||||
</form>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
48
src/main/resources/templates/lendList.html
Normal file
48
src/main/resources/templates/lendList.html
Normal file
@@ -0,0 +1,48 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>貸出中図書一覧</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>貸出中図書一覧</h1>
|
||||
|
||||
<!-- action先要修正 -->
|
||||
<form action="/lendList" method="GET">
|
||||
<input type="submit" value="返却" class="btn">
|
||||
</form>
|
||||
|
||||
<!-- 以下ポップアップ -->
|
||||
<div id="registerModal" class="modal-overlay">
|
||||
|
||||
<div class="modal">
|
||||
|
||||
<div class="modal-message">
|
||||
返却処理が完了しました!
|
||||
</div>
|
||||
|
||||
<div class="modal-buttons">
|
||||
|
||||
<!-- OK -->
|
||||
<form method="get" action="/lendList">
|
||||
|
||||
<button type="submit" class="modal-btn">
|
||||
OK
|
||||
</button>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -9,21 +9,24 @@
|
||||
メインメニュー
|
||||
</h1>
|
||||
|
||||
|
||||
<!-- ===== 共通:社内図書一覧 ===== -->
|
||||
<a class="card" href="${pageContext.request.contextPath}/BookServlet">
|
||||
<form method="post" name="社内図書一覧" action="book">
|
||||
<a href="javascript:form1.submit()">リンク名</a>
|
||||
<button type="submit" class="btn-book">
|
||||
|
||||
<h3>社内図書一覧</h3>
|
||||
<h3>社内図書一覧</h3>
|
||||
|
||||
<p>
|
||||
登録されている図書の<br> 一覧を表示します。
|
||||
</p>
|
||||
</a>
|
||||
|
||||
<hr> <!--区切り線-->
|
||||
<p>
|
||||
登録されている図書の<br> 一覧を表示します。
|
||||
</p>
|
||||
</button>
|
||||
</form>
|
||||
<hr> <!--区切り線-->
|
||||
|
||||
<!-- ===== 共通:寄贈申請 ===== -->
|
||||
|
||||
<a class="card" href="${pageContext.request.contextPath}/employee">
|
||||
<a class="card" href="/bookApproval">
|
||||
|
||||
<h3>寄贈申請</h3>
|
||||
|
||||
@@ -48,7 +51,7 @@
|
||||
<hr>
|
||||
|
||||
|
||||
<a class="card" href="${pageContext.request.contextPath}/lendList">
|
||||
<a class="card" href="/lendList">
|
||||
|
||||
<h3>貸出中図書一覧</h3>
|
||||
|
||||
@@ -59,7 +62,7 @@
|
||||
|
||||
<hr>
|
||||
|
||||
<a class="card" href="${pageContext.request.contextPath}/bookApproval-list">
|
||||
<a class="card" href="/approvalReceive">
|
||||
|
||||
<h3>寄贈申請受信BOX</h3>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user