Merge branch 'a-kawaguchi' of https://gitea.it-college.co.jp/2026_09_5H_Spring_KIZAKI/ShareBooks_new into s-tajihi
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Insert title here</title>
|
||||
<title>社内図書一覧</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" action="bookLend">
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
<button type="submit" class="btn-login">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" y1="12" x2="3" y2="12"/></svg>
|
||||
画面遷移テスト
|
||||
貸出
|
||||
</button>
|
||||
</form>
|
||||
|
||||
|
||||
@@ -2,10 +2,31 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Insert title here</title>
|
||||
<title>図書貸出処理</title>
|
||||
</head>
|
||||
<body>
|
||||
成功
|
||||
図書貸出処理
|
||||
<form id="loanForm"action="bookLendConfirmation" method="post">
|
||||
<div class="button-area">
|
||||
|
||||
<div class="right-buttons">
|
||||
<button type="button" class="btn btn-primary"
|
||||
onclick="submitLoan()">貸出する</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
function submitLoan() {
|
||||
|
||||
if (confirm('この図書を貸出しますか?')) {
|
||||
// OK選択時にフォーム送信を実行し、BookLendReturnControllerに処理を投げる
|
||||
document.getElementById('loanForm').submit();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user