-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
item-service/src/main/resources/templates/basic/addForm.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!DOCTYPE HTML> | ||
<html xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link href="../css/bootstrap.min.css" | ||
th:href="@{/css/bootstrap.min.css}" rel="stylesheet"> | ||
<style> | ||
.container { | ||
max-width: 560px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="py-5 text-center"> | ||
<h2>상품 등록 폼</h2> | ||
</div> | ||
<h4 class="mb-3">상품 입력</h4> | ||
<form action="item.html" th:action method="post"> | ||
<div> | ||
<label for="itemName">상품명</label> | ||
<input type="text" id="itemName" name="itemName" class="formcontrol" placeholder="이름을 입력하세요"> | ||
</div> | ||
<div> | ||
<label for="price">가격</label> | ||
<input type="text" id="price" name="price" class="form-control" | ||
placeholder="가격을 입력하세요"> | ||
</div> | ||
<div> | ||
<label for="quantity">수량</label> | ||
<input type="text" id="quantity" name="quantity" class="formcontrol" placeholder="수량을 입력하세요"> | ||
</div> | ||
<hr class="my-4"> | ||
<div class="row"> | ||
<div class="col"> | ||
<button class="w-100 btn btn-primary btn-lg" type="submit">상품 | ||
등록</button> | ||
</div> | ||
<div class="col"> | ||
<button class="w-100 btn btn-secondary btn-lg" | ||
onclick="location.href='items.html'" | ||
th:onclick="|location.href='@{/basic/items}'|" | ||
type="button">취소</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> <!-- /container --> | ||
</body> | ||
</html> |