Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
Ecsite
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shoei.kanno
Ecsite
Commits
fa37214b
Commit
fa37214b
authored
Oct 19, 2020
by
keita.onoguchi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'カート機能' into 'master'
カートルーティング追加 See merge request
!31
parents
08483dad
c949e8a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
EcsiteController.java
src/main/java/com/example/web/EcsiteController.java
+7
-0
cart.html
src/main/resources/templates/cart.html
+3
-3
index.html
src/main/resources/templates/index.html
+1
-1
No files found.
src/main/java/com/example/web/EcsiteController.java
View file @
fa37214b
...
@@ -114,4 +114,11 @@ public class EcsiteController {
...
@@ -114,4 +114,11 @@ public class EcsiteController {
model
.
addAttribute
(
"logDetails"
,
list
);
model
.
addAttribute
(
"logDetails"
,
list
);
return
"logDetails"
;
return
"logDetails"
;
}
}
@GetMapping
(
"cart"
)
public
String
Cart
(
Model
model
,
@AuthenticationPrincipal
LoginUser
userDetails
){
User
user
=
userDetails
.
getUser
();
model
.
addAttribute
(
"user"
,
user
);
return
"Cart"
;
}
}
}
src/main/resources/templates/cart.html
View file @
fa37214b
...
@@ -78,8 +78,8 @@
...
@@ -78,8 +78,8 @@
</div>
</div>
<div id="submit-form">
<div id="submit-form">
<input type="submit" class="login" id="btn" value="Login"/>
<input type="submit" class="login" id="btn" value="Login"/>
<!-- 会員登録ボタン -->
会員登録ボタン
<
!--<
button class="js-modal-open" id="sign-up">Sign Up</button>
<button class="js-modal-open" id="sign-up">Sign Up</button>
</div>
</div>
</form>-->
</form>-->
...
@@ -90,7 +90,7 @@
...
@@ -90,7 +90,7 @@
<tr
class=
"row"
id=
"theadTr"
>
<tr
class=
"row"
id=
"theadTr"
>
<th
class=
"th col-xl-4"
id=
"imageTh"
>
Image
</th>
<th
class=
"th col-xl-4"
id=
"imageTh"
>
Image
</th>
<th
class=
"th col-xl-4"
id=
"productNameTh"
>
Product Name
</th>
<th
class=
"th col-xl-4"
id=
"productNameTh"
>
Product Name
</th>
<th
class=
"th col-xl-4"
id=
"priceTh"
>
Price
</th>
<th
class=
"th col-xl-4"
id=
"priceTh"
>
Price
</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
...
...
src/main/resources/templates/index.html
View file @
fa37214b
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<!-- 履歴ページへ遷移 -->
<!-- 履歴ページへ遷移 -->
<li><a
th:href=
"@{/limited/log/{id}(id=${user.id})}"
>
My Purchase Log
</a></li>
<li><a
th:href=
"@{/limited/log/{id}(id=${user.id})}"
>
My Purchase Log
</a></li>
<!-- カートページへ遷移 -->
<!-- カートページへ遷移 -->
<li><a
th:href=
"@{
/cart/{id}(id=${user.id})
}"
>
Cart
</a></li>
<li><a
th:href=
"@{
cart
}"
>
Cart
</a></li>
<!-- ログアウト -->
<!-- ログアウト -->
<li><form
th:action=
"@{/logout}"
method=
"post"
><input
type=
"submit"
value=
"logout"
style=
"border:none;background-color:transparent;text-decoration:none;"
class=
"logoutBtn"
/></form></li>
<li><form
th:action=
"@{/logout}"
method=
"post"
><input
type=
"submit"
value=
"logout"
style=
"border:none;background-color:transparent;text-decoration:none;"
class=
"logoutBtn"
/></form></li>
</ul>
</ul>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment