Compare commits
2 Commits
e73b98e76d
...
61e89fc36f
| Author | SHA1 | Date | |
|---|---|---|---|
| 61e89fc36f | |||
| 10182adc6d |
@@ -30,8 +30,8 @@
|
||||
<td th:text="${r.isbn}"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>書籍名</th>
|
||||
<td th:text="${r.nmBook}" style="width: 700px;"></td>
|
||||
<th>書籍名</th>
|
||||
<td th:text="${r.nmBook}" style="width: 700px;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>出版社</th>
|
||||
@@ -50,31 +50,34 @@
|
||||
<td th:text="${r.dateScheduledReturn}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div class="buttonSection" style="margin-top: 20px;">
|
||||
|
||||
<form th:action="@{/admin/applications/{id}/approve(id=${r.idRequest})}" method="post"
|
||||
style="display: inline;">
|
||||
<button type="submit">承認</button>
|
||||
</form>
|
||||
<div class="buttonSection" style="margin-top: 20px;">
|
||||
|
||||
<form th:action="@{/admin/applications/{id}/approve(id=${r.idRequest})}" method="post"
|
||||
style="display: inline;">
|
||||
<button type="submit">承認</button>
|
||||
</form>
|
||||
|
||||
|
||||
<form th:action="@{/admin/applications/{id}/reject(id=${r.idRequest})}" method="post"
|
||||
style="display: inline; margin-left: 10px;">
|
||||
<button type="submit" class="sub">却下</button>
|
||||
</form>
|
||||
</div>
|
||||
<form th:action="@{/admin/applications/{id}/reject(id=${r.idRequest})}" method="post"
|
||||
style="display: inline; margin-left: 10px;">
|
||||
<button type="submit" class="sub">却下</button>
|
||||
</form>
|
||||
<a th:href="@{/admin/applications}" style="text-decoration: none; margin-left: 10px;">
|
||||
<button type="button" class="sub">承認待ち一覧に戻る</button>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<a th:href="@{/admin/applications}">承認待ち一覧へ戻る</a>
|
||||
|
||||
<script>
|
||||
function logoutSubmit() {
|
||||
if (confirm("ログアウトしますか?")) {
|
||||
window.location.href = "/logout";
|
||||
|
||||
|
||||
<script>
|
||||
function logoutSubmit() {
|
||||
if (confirm("ログアウトしますか?")) {
|
||||
window.location.href = "/logout";
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
@@ -72,13 +72,14 @@
|
||||
<input type="hidden" th:field="*{flgAdmin}">
|
||||
|
||||
<!-- ボタン:左に戻る、右に登録 -->
|
||||
<div style="display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
margin-top: 20px;">
|
||||
<!-- <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}">
|
||||
社員情報入力に戻る
|
||||
@@ -88,8 +89,8 @@
|
||||
<button type="submit" class="btn">
|
||||
登録
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</p>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
@@ -1,121 +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}">
|
||||
<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>
|
||||
<!-- 共通ヘッダー -->
|
||||
<div th:replace="~{fragments/header :: header}"></div>
|
||||
|
||||
<main>
|
||||
<h2>社員登録</h2>
|
||||
<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="error" th:if="${errors != null and !errors.isEmpty()}">
|
||||
<p th:each="error : ${errors}" th:text="${error}">
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- 社員登録フォーム -->
|
||||
<div class="card">
|
||||
<!-- 社員登録フォーム -->
|
||||
<div class="card">
|
||||
|
||||
<form th:action="@{/admin/employees/new/confirm}"
|
||||
th:object="${form}"
|
||||
method="post">
|
||||
<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="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="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="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>
|
||||
<!-- パスワード -->
|
||||
<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><button type="submit">登録確認</button>
|
||||
<a class="btn sub" th:href="@{/menu}">メニューへ戻る</a>
|
||||
</p>
|
||||
|
||||
<!-- 権限:枠線なし・横並び -->
|
||||
<div style="border: none;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 25px;
|
||||
margin: 15px 0 25px;">
|
||||
<!-- 権限:枠線なし・横並び -->
|
||||
<!-- <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="1">-->
|
||||
<!-- 管理者-->
|
||||
<!-- </label>-->
|
||||
|
||||
<label style="display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
white-space: nowrap;">
|
||||
<input type="radio"
|
||||
th:field="*{flgAdmin}"
|
||||
value="0">
|
||||
一般ユーザー
|
||||
</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>-->
|
||||
|
||||
<!-- ボタン:左に戻る・右に確認 -->
|
||||
<div style="display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
margin-top: 20px;">
|
||||
<!-- ボタン:左に戻る・右に確認 -->
|
||||
<!-- <div style="display: flex;-->
|
||||
<!-- justify-content: space-between;-->
|
||||
<!-- align-items: center;-->
|
||||
<!-- width: 100%;-->
|
||||
<!-- margin-top: 20px;">-->
|
||||
|
||||
<a class="btn sub"
|
||||
th:href="@{/menu}">
|
||||
メニューに戻る
|
||||
</a>
|
||||
<!-- <a class="btn sub"-->
|
||||
<!-- th:href="@{/menu}">-->
|
||||
<!-- メニューに戻る-->
|
||||
<!-- </a>-->
|
||||
|
||||
<button type="submit" class="btn">
|
||||
確認
|
||||
</button>
|
||||
<!-- <button type="submit" class="btn">-->
|
||||
<!-- 確認-->
|
||||
<!-- </button>-->
|
||||
|
||||
</div>
|
||||
<!-- </div>-->
|
||||
|
||||
</form>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user