사용자 정보 화면 수정 - 상태 관련

main
mjkhan21 5 months ago
parent c007a1253a
commit 53a2f81a77

@ -155,6 +155,7 @@
<div class="row"> <div class="row">
<label class="col-sm-3 col-form-label text-sm-end" for="status">상태</label> <label class="col-sm-3 col-form-label text-sm-end" for="status">상태</label>
<div class="col-sm-9"> <div class="col-sm-9">
<c:if test='${currentUser.hasAuthorities("ROLE_ADMIN")}'>
<div class="form-check form-check-inline mt-3"> <div class="form-check form-check-inline mt-3">
<input name="status" value="P" type="radio" data-map="STTS" class="form-check-input"/> <input name="status" value="P" type="radio" data-map="STTS" class="form-check-input"/>
<label class="form-check-label" for="approved">승인</label> <label class="form-check-label" for="approved">승인</label>
@ -163,6 +164,11 @@
<input name="status" value="A" type="radio" data-map="STTS" class="form-check-input"/> <input name="status" value="A" type="radio" data-map="STTS" class="form-check-input"/>
<label class="form-check-label" for="applied">신청</label> <label class="form-check-label" for="applied">신청</label>
</div> </div>
</c:if>
<c:if test='${!currentUser.hasAuthorities("ROLE_ADMIN")}'>
<input name="status" type="hidden" data-map="STTS" class="form-control" placeholder="상태"/>
<label class="col-form-label" for=STTS></label>
</c:if>
</div> </div>
</div> </div>
</div> </div>
@ -201,6 +207,8 @@ infoPrefixControl.setInfo = obj => {
} else } else
div.attr("hidden","hidden"); div.attr("hidden","hidden");
}); });
$("label[for='STTS']").html(obj.data.STTS == "P" ? "승인" : "신청");
$("#infoPrefix-form").find("input,select") $("#infoPrefix-form").find("input,select")
.change(function() { .change(function() {
let input = $(this), let input = $(this),

Loading…
Cancel
Save