Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : 아티스트 성별 중 혼성 추가 #66

Merged
merged 1 commit into from
Aug 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package com.example.artist.vo;

public enum ArtistGenderApiType {
MAN, WOMAN
MAN, WOMAN, MIXED
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ <h2 class="text-center">추가할 아티스트</h2>
<option value="">성별 선택</option>
<option value="MAN">남성</option>
<option value="WOMAN">여성</option>
<option value="MIXED">혼성</option>
</select>
</div>
<div class="mb-3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ <h2 class="text-center">아티스트 수정</h2>
<select name="artistGenderApiType" id="artistGenderApiType" class="form-control">
<option value="MAN" th:selected="${artist.artistGenderApiType} == 'MAN'">남성</option>
<option value="WOMAN" th:selected="${artist.artistGenderApiType} == 'WOMAN'">여성</option>
<option value="WOMAN" th:selected="${artist.artistGenderApiType} == 'MIXED'">혼성</option>
</select>
</div>
<div class="form-group mb-3">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ <h2 class="text-center">아티스트 목록</h2>
<div th:switch="${artist.artistGenderApiType.name()}">
<span th:case="'MAN'" th:text="'남성'"></span>
<span th:case="'WOMAN'" th:text="'여성'"></span>
<span th:case="'MIXED'" th:text="'혼성'"></span>
</div>
</td>
<td>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package org.example.vo;

public enum ArtistGender {
MAN, WOMAN
MAN, WOMAN, MIXED
}
Loading