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

dev
mjkhan21 5 months ago
parent b0e968a84d
commit 569a63cc7e

@ -121,6 +121,7 @@
<div class="row">
<label class="col-sm-3 col-form-label text-sm-end" for="status">상태</label>
<div class="col-sm-9">
<c:if test='${currentUser.hasAuthorities("ROLE_ADMIN")}'>
<div class="form-check form-check-inline mt-3">
<input name="status" value="P" type="radio" data-map="STTS" class="form-check-input"/>
<label class="form-check-label" for="approved">승인</label>
@ -129,6 +130,11 @@
<input name="status" value="A" type="radio" data-map="STTS" class="form-check-input"/>
<label class="form-check-label" for="applied">신청</label>
</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>
@ -160,6 +166,7 @@ infoPrefixControl.setInfo = obj => {
} else
div.hide();
});
$("label[for='STTS']").html(obj.data.STTS == "P" ? "승인" : "신청");
$("#infoPrefix-form input").onEnterPress(saveinfoPrefix);

Loading…
Cancel
Save