26 Commits

Author SHA1 Message Date
m-shimizu
9c591c9ff2 登録確認ボタン_配置修正 2026-10-22 09:56:34 +09:00
61e89fc36f 承認画面のレイアウト変更しました 2026-10-22 09:54:49 +09:00
10182adc6d layout Edit 2026-10-22 09:29:36 +09:00
m-shimizu
e73b98e76d Merge branch 't-eguchi' of https://gitea.it-college.co.jp/2026_0910_AI_5G_Java_MUN/last-group-delevelopment-team2 into m_shimizu 2026-10-21 16:27:14 +09:00
m-shimizu
b36bce38e1 FR-09 2026-10-21 16:26:55 +09:00
da41c781df レイアウト変更を行いました 2026-10-21 16:22:56 +09:00
103acf1106 Merge branch 'm_shimizu' of https://gitea.it-college.co.jp/2026_0910_AI_5G_Java_MUN/last-group-delevelopment-team2 into h-hein2 2026-10-21 14:28:51 +09:00
m-shimizu
7d5d038a9e FR-09 2026-10-21 14:27:40 +09:00
m-shimizu
7362f58c4f Merge branch 'h-hein2' of https://gitea.it-college.co.jp/2026_0910_AI_5G_Java_MUN/last-group-delevelopment-team2 into m_shimizu 2026-10-21 10:02:58 +09:00
m-shimizu
9ef18e73ed Merge branch 'm-ozawa' of https://gitea.it-college.co.jp/2026_0910_AI_5G_Java_MUN/last-group-delevelopment-team2 into m_shimizu 2026-10-20 16:31:18 +09:00
m-shimizu
45eff1634e FR-09_全体反映なし 2026-10-20 16:10:15 +09:00
m-shimizu
136b18bfc7 FR-01 2026-10-20 16:08:03 +09:00
m-shimizu
9bba174df3 FR-01 2026-10-20 14:26:51 +09:00
m-shimizu
0bf7852ef9 FR-01 2026-10-20 14:25:38 +09:00
m-shimizu
cbb6495741 FR-01 2026-10-20 13:22:30 +09:00
m-shimizu
c612e9dac3 FR-01_全体反映なし 2026-10-20 13:17:15 +09:00
m-shimizu
0d582fee5c Merge branch 'h-hein2' of https://gitea.it-college.co.jp/2026_0910_AI_5G_Java_MUN/last-group-delevelopment-team2 into m_shimizu 2026-10-20 11:15:01 +09:00
m-shimizu
4a01b85ae9 全体反映なし_FR-01 2026-10-20 10:44:04 +09:00
m-shimizu
013bb72439 LoginController_途中経過 2026-10-20 09:36:57 +09:00
m-shimizu
f647eb6ef2 Merge branch 'main' of https://gitea.it-college.co.jp/2026_0910_AI_5G_Java_MUN/last-group-delevelopment-team2 into m_shimizu 2026-10-19 16:23:25 +09:00
m-shimizu
48477829fd Merge branch 'h-hein' of https://gitea.it-college.co.jp/2026_0910_AI_5G_Java_MUN/last-group-delevelopment-team2 into m_shimizu 2026-10-19 15:34:11 +09:00
m-shimizu
44ed4b3120 FR-01_修正・追記① 2026-10-19 15:33:39 +09:00
dc5f6494cf Merge branch 'm_shimizu' of https://gitea.it-college.co.jp/2026_0910_AI_5G_Java_MUN/last-group-delevelopment-team2 into h-hein 2026-10-19 14:26:11 +09:00
67f88c89a1 Merge branch 't-eguchi' of https://gitea.it-college.co.jp/2026_0910_AI_5G_Java_MUN/last-group-delevelopment-team2 into h-hein 2026-10-19 14:23:12 +09:00
e238c6b223 error check 2026-10-19 14:12:31 +09:00
63b7aba82a Setet one 2026-10-19 13:53:05 +09:00
14 changed files with 466 additions and 201 deletions

View File

@@ -43,17 +43,19 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId> <artifactId>spring-boot-starter-validation</artifactId>
</dependency> </dependency>
<!-- webmvcから通常のwebスターターに変更 -->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webmvc</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId> <artifactId>spring-boot-devtools</artifactId> <!-- ここを修正 -->
<scope>runtime</scope> <scope>runtime</scope>
<optional>true</optional> <optional>true</optional>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.mysql</groupId> <groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId> <artifactId>mysql-connector-j</artifactId>
@@ -69,28 +71,13 @@
<artifactId>spring-boot-starter-tomcat</artifactId> <artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webmvc-test</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
@@ -137,3 +124,4 @@
</build> </build>
</project> </project>

View File

@@ -70,4 +70,3 @@ public class LoginController {
return "redirect:/login"; return "redirect:/login";
} }
} }

View File

@@ -1,4 +1,5 @@
package com.example.demo.form; package com.example.demo.form;
/** 社員登録・編集フォーム */ /** 社員登録・編集フォーム */
public class EmployeeForm { public class EmployeeForm {
private Integer idEmployee; private Integer idEmployee;
@@ -10,24 +11,72 @@ public class EmployeeForm {
private String flgRetirement = "0"; private String flgRetirement = "0";
public void trim() { public void trim() {
nmEmployee = t(nmEmployee); knEmployee = t(knEmployee); mailAddress = t(mailAddress); nmEmployee = t(nmEmployee);
flgAdmin = t(flgAdmin); flgRetirement = t(flgRetirement); knEmployee = t(knEmployee);
if (password == null) password = ""; mailAddress = t(mailAddress);
flgAdmin = t(flgAdmin);
flgRetirement = t(flgRetirement);
if (password == null)
password = "";
} }
private static String t(String s) { return s == null ? "" : s.trim(); }
public Integer getIdEmployee() { return idEmployee; } private static String t(String s) {
public void setIdEmployee(Integer v) { this.idEmployee = v; } return s == null ? "" : s.trim();
public String getNmEmployee() { return nmEmployee; } }
public void setNmEmployee(String v) { this.nmEmployee = v; }
public String getKnEmployee() { return knEmployee; } public Integer getIdEmployee() {
public void setKnEmployee(String v) { this.knEmployee = v; } return idEmployee;
public String getMailAddress() { return mailAddress; } }
public void setMailAddress(String v) { this.mailAddress = v; }
public String getPassword() { return password; } public void setIdEmployee(Integer v) {
public void setPassword(String v) { this.password = v; } this.idEmployee = v;
public String getFlgAdmin() { return flgAdmin; } }
public void setFlgAdmin(String v) { this.flgAdmin = v; }
public String getFlgRetirement() { return flgRetirement; } public String getNmEmployee() {
public void setFlgRetirement(String v) { this.flgRetirement = v; } return nmEmployee;
}
public void setNmEmployee(String v) {
this.nmEmployee = v;
}
public String getKnEmployee() {
return knEmployee;
}
public void setKnEmployee(String v) {
this.knEmployee = v;
}
public String getMailAddress() {
return mailAddress;
}
public void setMailAddress(String v) {
this.mailAddress = v;
}
public String getPassword() {
return password;
}
public void setPassword(String v) {
this.password = v;
}
public String getFlgAdmin() {
return flgAdmin;
}
public void setFlgAdmin(String v) {
this.flgAdmin = v;
}
public String getFlgRetirement() {
return flgRetirement;
}
public void setFlgRetirement(String v) {
this.flgRetirement = v;
}
} }

View File

@@ -9,6 +9,7 @@
<body> <body>
<div th:replace="~{fragments/header :: header}"></div> <div th:replace="~{fragments/header :: header}"></div>
<main class="complete-container">
<h1>完了</h1> <h1>完了</h1>
<div class="info" th:text="${message} ?:'書籍貸出申請を承認しました。'"></div> <div class="info" th:text="${message} ?:'書籍貸出申請を承認しました。'"></div>
@@ -16,7 +17,7 @@
<a class="btn" th:href="@{/admin/applications}">承認待ち一覧に戻る</a> <a class="btn" th:href="@{/admin/applications}">承認待ち一覧に戻る</a>
<a class="btn sub" th:href="@{/menu}">メニューに戻る</a> <a class="btn sub" th:href="@{/menu}">メニューに戻る</a>
</p> </p>
</main>
</body> </body>
</html> </html>

View File

@@ -9,66 +9,67 @@
<body> <body>
<div th:replace="~{fragments/header :: header}"></div> <div th:replace="~{fragments/header :: header}"></div>
<h1> <main>
書籍貸出承認確認    <h1>書籍貸出承認確認</h1>
<div class="card">
</h1>
<table> <table>
<tr> <tr>
<th class="header">申請ID</th> <th>申請ID</th>
<td><input type="text" readonly="readonly" th:value="${r.idRequest}" /></td> <td th:text="${r.idRequest}"></td>
</tr> </tr>
<tr> <tr>
<th class="header">申請者名</th> <th>申請者名</th>
<td><input type="text" readonly="readonly" th:value="${r.nmApplicant}" /></td> <td th:text="${r.nmApplicant}"></td>
</tr> </tr>
<tr> <tr>
<th class="header">申請日</th> <th>申請日</th>
<td><input type="text" readonly="readonly" th:value="${r.dateRequest}" /></td> <td th:text="${r.dateRequest}"></td>
</tr> </tr>
<tr> <tr>
<th class="header">ISBN</th> <th>ISBN</th>
<td><input type="text" readonly="readonly" th:value="${r.isbn}" /></td> <td th:text="${r.isbn}"></td>
</tr> </tr>
<tr> <tr>
<th class="header">書籍名</th> <th>書籍名</th>
<td><input type="text" readonly="readonly" th:value="${r.nmBook}" style="width: 300px;" /></td> <td th:text="${r.nmBook}" style="width: 700px;"></td>
</tr> </tr>
<tr> <tr>
<th class="header">出版社</th> <th>出版社</th>
<td><input type="text" readonly="readonly" th:value="${r.publisher}" /></td> <td th:text="${r.publisher}"></td>
</tr> </tr>
<tr> <tr>
<th class="header">特記事項</th> <th>特記事項</th>
<td><input type="text" readonly="readonly" th:value="${r.note}" /></td> <td th:text="${r.note}"></td>
</tr> </tr>
<tr> <tr>
<th class="header">貸出日</th> <th>貸出日</th>
<td><input type="text" readonly="readonly" th:value="${r.dateBorrow}" /></td> <td th:text="${r.dateBorrow}"></td>
</tr> </tr>
<tr> <tr>
<th class="header">返却予定日</th> <th>返却予定日</th>
<td><input type="text" readonly="readonly" th:value="${r.dateScheduledReturn}" /></td> <td th:text="${r.dateScheduledReturn}"></td>
</tr> </tr>
</table> </table>
<div class="buttonSection" style="margin-top: 20px;"> <div class="buttonSection" style="margin-top: 20px;">
<form th:action="@{/admin/applications/{id}/approve(id=${r.idRequest})}" method="post" style="display: inline;"> <form th:action="@{/admin/applications/{id}/approve(id=${r.idRequest})}" method="post"
style="display: inline;">
<button type="submit">承認</button> <button type="submit">承認</button>
</form> </form>
<form th:action="@{/admin/applications/{id}/reject(id=${r.idRequest})}" method="post" <form th:action="@{/admin/applications/{id}/reject(id=${r.idRequest})}" method="post"
style="display: inline; margin-left: 10px;"> style="display: inline; margin-left: 10px;">
<button type="submit">却下</button> <button type="submit" class="sub">却下</button>
</form> </form>
<a th:href="@{/admin/applications}" style="text-decoration: none; margin-left: 10px;">
<button type="button" class="sub">承認待ち一覧に戻る</button>
</a>
</div> </div>
<br>
<a th:href="@{/admin/applications}">承認待ち一覧へ戻る</a>
<script> <script>
function logoutSubmit() { function logoutSubmit() {
@@ -77,6 +78,8 @@
} }
} }
</script> </script>
</div>
</main>
</body> </body>
</html> </html>

View File

@@ -9,6 +9,7 @@
<body> <body>
<div th:replace="~{fragments/header :: header}"></div> <div th:replace="~{fragments/header :: header}"></div>
<main class="complete-container">
<h1>却下</h1> <h1>却下</h1>
<div class="info" th:text="${message} ?: '書籍貸出申請を却下しました。'"></div> <div class="info" th:text="${message} ?: '書籍貸出申請を却下しました。'"></div>
@@ -17,7 +18,8 @@
<a class="btn sub" th:href="@{/menu}">メニューに戻る</a> <a class="btn sub" th:href="@{/menu}">メニューに戻る</a>
</p> </p>
</main>
</body> </body>
</html> </html>

View File

@@ -12,7 +12,7 @@
<div class="info" th:text="${message} ?: '処理が完了しました。'"></div> <div class="info" th:text="${message} ?: '処理が完了しました。'"></div>
<p> <p>
<a class="btn" th:href="@{${backUrl}}" th:text="${backLabel}">戻る</a> <a class="btn" th:href="@{${backUrl}}" th:text="${backLabel}">戻る</a>
<a class="btn sub" th:href="@{/menu}">メニューに戻る</a> <!-- <a class="btn sub" th:href="@{/menu}">メニューに戻る</a>-->
</p> </p>
</main> </main>
</body> </body>

View File

@@ -0,0 +1,101 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>社員登録確認</title>
<link rel="stylesheet" th:href="@{/css/style.css}">
</head>
<body>
<!-- 共通ヘッダー -->
<div th:replace="~{fragments/header :: header}"></div>
<main>
<h2>社員登録確認</h2>
<!-- エラーメッセージ -->
<div class="error"
th:if="${errors != null and !errors.isEmpty()}">
<p th:each="error : ${errors}"
th:text="${error}">
</p>
</div>
<!-- 登録内容確認 -->
<div class="card">
<p>以下の内容で登録します。内容を確認してください。</p>
<form th:action="@{/admin/employees/new/execute}"
th:object="${form}"
method="post">
<!-- 登録内容一覧 -->
<table>
<tbody>
<tr>
<th>社員名</th>
<td th:text="*{nmEmployee}"></td>
</tr>
<tr>
<th>社員名よみ</th>
<td th:text="*{knEmployee}"></td>
</tr>
<tr>
<th>メールアドレス</th>
<td th:text="*{mailAddress}"></td>
</tr>
<tr>
<th>パスワード</th>
<td>********</td>
</tr>
<tr>
<th>権限</th>
<td th:text="*{flgAdmin == '1' ? '管理者' : '一般'}"></td>
</tr>
</tbody>
</table>
<!-- 登録処理に必要な値を引き継ぐ -->
<input type="hidden" th:field="*{nmEmployee}">
<input type="hidden" th:field="*{knEmployee}">
<input type="hidden" th:field="*{mailAddress}">
<input type="hidden" th:field="*{password}">
<input type="hidden" th:field="*{flgAdmin}">
<!-- ボタン:左に戻る、右に登録 -->
<!-- <div style="display: flex;-->
<!-- justify-content: space-between;-->
<!-- align-items: center;-->
<!-- width: 100%;-->
<!-- margin-top: 20px;">-->
<!-- 社員情報入力に戻る -->
<p>
<a class="btn sub"
th:href="@{/admin/employees/new}">
社員情報入力に戻る
</a>
<!-- 登録 -->
<button type="submit" class="btn">
登録
</button>
</p>
</form>
</div>
</main>
</body>
</html>

View File

@@ -0,0 +1,117 @@
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>社員登録</title>
<link rel="stylesheet" th:href="@{/css/style.css}">
</head>
<body>
<!-- 共通ヘッダー -->
<div th:replace="~{fragments/header :: header}"></div>
<main>
<h2>社員登録</h2>
<!-- 入力エラー表示 -->
<div class="error" th:if="${errors != null and !errors.isEmpty()}">
<p th:each="error : ${errors}" th:text="${error}">
</p>
</div>
<!-- 社員登録フォーム -->
<div class="card">
<form th:action="@{/admin/employees/new/confirm}" th:object="${form}" method="post">
<!-- 社員名 -->
<div>
<label for="nmEmployee">社員名</label>
<input type="text" id="nmEmployee" th:field="*{nmEmployee}">
</div>
<!-- 社員名よみ -->
<div>
<label for="knEmployee">社員名よみ</label>
<input type="text" id="knEmployee" th:field="*{knEmployee}">
</div>
<!-- メールアドレス -->
<div>
<label for="mailAddress">メールアドレス</label>
<input type="email" id="mailAddress" th:field="*{mailAddress}">
</div>
<!-- パスワード -->
<div>
<label for="password">パスワード</label>
<input type="password" id="password" th:field="*{password}">
</div>
<label for="flgAdmin">管理者フラグ</label>
<select id="flgAdmin" name="flgAdmin">
<option value="0" th:selected="${form.flgAdmin == '0'}">0:一般</option>
<option value="1" th:selected="${form.flgAdmin == '1'}">1:管理者</option>
</select>
<p><a class="btn sub" th:href="@{/menu}">メニューへ戻る</a>
<button type="submit">登録確認</button>
</p>
<!-- 権限:枠線なし・横並び -->
<!-- <div style="border: none;-->
<!-- display: flex;-->
<!-- flex-direction: row;-->
<!-- align-items: center;-->
<!-- gap: 25px;-->
<!-- margin: 15px 0 25px;">-->
<!-- <label style="display: inline-flex;-->
<!-- align-items: center;-->
<!-- gap: 5px;-->
<!-- white-space: nowrap;">-->
<!-- <input type="radio"-->
<!-- th:field="*{flgAdmin}"-->
<!-- value="1">-->
<!-- 管理者-->
<!-- </label>-->
<!-- <label style="display: inline-flex;-->
<!-- align-items: center;-->
<!-- gap: 5px;-->
<!-- white-space: nowrap;">-->
<!-- <input type="radio"-->
<!-- th:field="*{flgAdmin}"-->
<!-- value="0">-->
<!-- 一般ユーザー-->
<!-- </label>-->
<!-- </div>-->
<!-- ボタン:左に戻る・右に確認 -->
<!-- <div style="display: flex;-->
<!-- justify-content: space-between;-->
<!-- align-items: center;-->
<!-- width: 100%;-->
<!-- margin-top: 20px;">-->
<!-- <a class="btn sub"-->
<!-- th:href="@{/menu}">-->
<!-- メニューに戻る-->
<!-- </a>-->
<!-- <button type="submit" class="btn">-->
<!-- 確認-->
<!-- </button>-->
<!-- </div>-->
</form>
</div>
</main>
</body>
</html>

View File

@@ -23,3 +23,6 @@
</main> </main>
</body> </body>
</html> </html>

View File

@@ -9,6 +9,7 @@
<body> <body>
<div th:replace="~{fragments/header :: header}"></div> <div th:replace="~{fragments/header :: header}"></div>
<main class="complete-container">
<h1>返却完了</h1> <h1>返却完了</h1>
<div class="info" th:text="${message} ?: '書籍の返却が完了しました。'"></div> <div class="info" th:text="${message} ?: '書籍の返却が完了しました。'"></div>
@@ -16,6 +17,7 @@
<a class="btn" th:href="@{/admin/lendings}">貸出中書籍一覧に戻る</a> <a class="btn" th:href="@{/admin/lendings}">貸出中書籍一覧に戻る</a>
<a class="btn sub" th:href="@{/menu}">メニューに戻る</a> <a class="btn sub" th:href="@{/menu}">メニューに戻る</a>
</p> </p>
</main>
</body> </body>
</html> </html>