diff --git a/src/main/java/com/example/demo/controller/BookApprovalController.java b/src/main/java/com/example/demo/controller/BookApprovalController.java new file mode 100644 index 0000000..3333ce7 --- /dev/null +++ b/src/main/java/com/example/demo/controller/BookApprovalController.java @@ -0,0 +1,23 @@ +package com.example.demo.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.SessionAttributes; + +@Controller +@SessionAttributes("bookApprovalForm") //セッションに保存 +public class BookApprovalController { + + @GetMapping("/bookApproval") + public String bookApproval() { + return "bookApproval"; + } + + @PostMapping("/bookApprovalConfirm") + public String bookApprovalConfirm() { + return "bookApprovalConfirm"; + } +} + + diff --git a/src/main/java/com/example/demo/controller/BookInsertConfirmController.java b/src/main/java/com/example/demo/controller/BookInsertConfirmController.java new file mode 100644 index 0000000..d3e6cc1 --- /dev/null +++ b/src/main/java/com/example/demo/controller/BookInsertConfirmController.java @@ -0,0 +1,14 @@ +package com.example.demo.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; + +@Controller +public class BookInsertConfirmController { + @GetMapping("/bookInsertConfirm") + public String bookInsertConfirm() { + return "bookInsertConfirm"; + + } + +} diff --git a/src/main/java/com/example/demo/controller/BookInsertController.java b/src/main/java/com/example/demo/controller/BookInsertController.java new file mode 100644 index 0000000..d066d30 --- /dev/null +++ b/src/main/java/com/example/demo/controller/BookInsertController.java @@ -0,0 +1,13 @@ +package com.example.demo.controller; + +import org.springframework.stereotype.Controller; +import org.springframework.web.bind.annotation.GetMapping; + +@Controller +public class BookInsertController { + @GetMapping("bookInsert") + public String bookInsert() { + return "bookInsert"; + + } +} diff --git a/src/main/java/com/example/demo/controller/LoginController.java b/src/main/java/com/example/demo/controller/LoginController.java new file mode 100644 index 0000000..7961482 --- /dev/null +++ b/src/main/java/com/example/demo/controller/LoginController.java @@ -0,0 +1,24 @@ +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 LoginController { + + @GetMapping("/login") + public String showLogin() { + return "login"; + } + + @PostMapping("/doLogin") + public String doLogin() { + return "redirect:/topmenu"; + } + + @GetMapping("/topmenu") + public String showTopMenu() { + return "topmenu"; + } +} \ No newline at end of file diff --git a/src/main/resources/templates/bookApproval.html b/src/main/resources/templates/bookApproval.html new file mode 100644 index 0000000..bfaba5f --- /dev/null +++ b/src/main/resources/templates/bookApproval.html @@ -0,0 +1,1203 @@ + + + + + + + + 寄贈申請フォーム + + + + + + + + + +
+ + + +
+ + + + + + + +
+ +
+ + + + +
+ + + + + + + + + +
+ + + + + + + + + +

+ 寄贈申請フォーム +

+ + + + +
+ 図書の寄贈を希望する方は、以下のフォームに入力し、 + 「確認」ボタンを押してください。 +
+ + + + +
+ (※)は必須項目です。 +
+ + + + +
+ + +
+ +
+ + + + +
+ 申請者情報(ログイン中のアカウント情報) +
+ + +
+ + + + +
+ + + +
+ + + +
+ +
+ + + + +
+ + + +
+ + + +
+ +
+ + + + +
+ + + +
+ + + +
+ +
+ +
+ + +
+ +
+ +
+ + + + +
+ 本の情報(必須項目) +
+ + +
+ + + + +
+ + + +
+ + + +
+ +
+ + + + +
+ + + +
+ + + +
+ +
+ + + + +
+ + + +
+ + + +
+ +
+ +
+ + + + +
+ + +
+ 本の情報(任意項目) +
+ + +
+ + + + +
+ + + +
+ + + +
+ +
+ + + + +
+ + + +
+ + + +
+ +
+ +
+ +
+ + + + +
+ + + +
+ + + +
+ ※出版日が分かる場合に入力してください。 +
+ +
+ +
+ + + + +
+ + + +
+ + + +
+ 0 / 300 +
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + + + +
+ + + + + + + + + +
+ + + + + + + + + + + + +
+ +
+ + +
+ + + + + + + +
+ +
+ + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/templates/bookApprovalConfirm.html b/src/main/resources/templates/bookApprovalConfirm.html new file mode 100644 index 0000000..0ef1357 --- /dev/null +++ b/src/main/resources/templates/bookApprovalConfirm.html @@ -0,0 +1,856 @@ + + + + + + +寄贈申請内容確認 + + + + + + +
+ + + +
+ + + + + + + +
+ +
+ + +
+ + + + + + + + +
+ + + +

+ 寄贈申請内容確認 +

+ +
+ 入力した内容に間違いがないかご確認ください。よろしければ「申請する」ボタンを押してください。 +
+ +
+ (※)は必須項目です。 +
+ + +
+ +
+ +
+ + + +
+ 申請者情報(ログイン中のアカウント情報) +
+ +
+ +
+ + + +
+ + + +
+ +
+ + +
+ + + +
+ + + +
+ +
+ + +
+ + + +
+ + + +
+ +
+ +
+ + +
+ +
+ +
+ + + + +
+ 本の情報(必須項目) +
+ +
+ + + +
+ + + +
+ + + +
+ +
+ + + + +
+ + + +
+ + + +
+ +
+ + + + +
+ + + +
+ + + +
+ +
+ +
+ + + + +
+ +
+ 本の情報(任意項目) +
+ + +
+ + + +
+ + + +
+ + + +
+ +
+ + + + +
+ + + +
+ + + +
+ +
+ +
+ +
+ + + +
+ + + +
+ + + +
+ ※出版日が分かる場合に入力してください。 +
+ +
+ +
+ + + + +
+ + + +
+ + + +
+ 0 / 300 +
+ +
+ +
+ +
+ +
+ +
+ +
+ + + + +
+ + + + +
+ + + + + +
+ +
+ +
+ + + + +
+ +
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/bookInsert.html b/src/main/resources/templates/bookInsert.html new file mode 100644 index 0000000..41ae8a2 --- /dev/null +++ b/src/main/resources/templates/bookInsert.html @@ -0,0 +1,15 @@ + + + + + + 新規図書登録 + + + +

新規図書登録入力

+
+ + + + \ No newline at end of file diff --git a/src/main/resources/templates/bookInsertConfirm.html b/src/main/resources/templates/bookInsertConfirm.html new file mode 100644 index 0000000..1fe86a5 --- /dev/null +++ b/src/main/resources/templates/bookInsertConfirm.html @@ -0,0 +1,13 @@ + + + + + + 登録内容確認 + + + +

登録内容確認

+ + + \ No newline at end of file diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html new file mode 100644 index 0000000..06b4373 --- /dev/null +++ b/src/main/resources/templates/login.html @@ -0,0 +1,29 @@ + + + + +ログイン + + + +

ログイン

+ + +
+ +
+ + + + + +
+ + +
+
+ + + \ No newline at end of file diff --git a/src/main/resources/templates/topmenu.html b/src/main/resources/templates/topmenu.html new file mode 100644 index 0000000..65e2ed8 --- /dev/null +++ b/src/main/resources/templates/topmenu.html @@ -0,0 +1,72 @@ + + + + +トップメニュー + + +

+ メインメニュー +

+ + + + +

社内図書一覧

+ +

+ 登録されている図書の
一覧を表示します。 +

+
+ +
+ + + + + +

寄贈申請

+ +

+ 寄贈申請フォームの
入力を行います。 +

+
+ +
+ + + + + +

新規図書登録

+ +

+ 図書の登録申請を
行います。 +

+
+ +
+ + + + +

貸出中図書一覧

+ +

+ 貸出中図書の
一覧を表示します。 +

+
+ +
+ + + +

寄贈申請受信BOX

+ +

+ 寄贈申請の
受信一覧を確認します。 +

+
+ + + \ No newline at end of file