-
Notifications
You must be signed in to change notification settings - Fork 1
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
8 changed files
with
82 additions
and
7 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
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
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
1 change: 1 addition & 0 deletions
1
src/main/java/ac/kr/deu/connect/luck/image/ImageRestController.java
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
6 changes: 0 additions & 6 deletions
6
src/main/java/ac/kr/deu/connect/luck/image/ImageUrlResponse.java
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
src/main/java/ac/kr/deu/connect/luck/image/dto/ImageUrlResponse.kt
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,9 @@ | ||
package ac.kr.deu.connect.luck.image.dto | ||
|
||
data class ImageUrlResponse( | ||
val imageUrl: String | ||
) { | ||
override fun toString(): String { | ||
return "ImageUrlResponse(imageUrl='$imageUrl')" | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/resources/templates/food_truck/review_edit_form.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,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="ko" layout:decorate="layout/default_layout" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" xmlns:th="http://www.thymeleaf.org"> | ||
<th:block layout:fragment="content"> | ||
|
||
<div class="container mt-5"> | ||
<h1>리뷰 수정</h1> | ||
<form th:action="@{'/food-truck/' + ${id} + '/review/' + ${reviewId} + '/edit'}" method="post" th:object="${review}"> | ||
<div class="form-group"> | ||
<label for="content">내용</label> | ||
<textarea class="form-control" id="content" name="content" rows="3" th:text="${review.content}"></textarea> | ||
</div> | ||
<div class="form-group"> | ||
<label for="rating">평점</label> | ||
<input type="number" class="form-control" id="rating" name="rating" th:value="${review.rating}"> | ||
</div> | ||
<button type="submit" class="btn btn-primary">수정</button> | ||
</form> | ||
</div> | ||
</th:block> | ||
</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