|
|
@ -154,6 +154,10 @@
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<div class="form-check form-check-inline">
|
|
|
|
|
|
|
|
<input name="status" value="D" type="radio" data-map="STTS" class="form-check-input"/>
|
|
|
|
|
|
|
|
<label class="form-check-label" for="removed">삭제</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</c:if>
|
|
|
|
</c:if>
|
|
|
|
<c:if test='${!currentUser.hasAuthorities("ROLE_ADMIN")}'>
|
|
|
|
<c:if test='${!currentUser.hasAuthorities("ROLE_ADMIN")}'>
|
|
|
|
<input name="status" type="hidden" data-map="STTS" class="form-control" placeholder="상태"/>
|
|
|
|
<input name="status" type="hidden" data-map="STTS" class="form-control" placeholder="상태"/>
|
|
|
@ -209,6 +213,14 @@ infoPrefixControl.setInfo = (obj) => {
|
|
|
|
$("#infoPrefix-form input[name='account']").prop("readonly", !create);
|
|
|
|
$("#infoPrefix-form input[name='account']").prop("readonly", !create);
|
|
|
|
$("#infoPrefix-form input[name='name']").prop("readonly", !create);
|
|
|
|
$("#infoPrefix-form input[name='name']").prop("readonly", !create);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(create){
|
|
|
|
|
|
|
|
$("#infoPrefix-form :radio[name='status'][value='D']").attr("hidden","hidden");
|
|
|
|
|
|
|
|
$("#infoPrefix-form label[for='removed']").attr("hidden","hidden");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("#infoPrefix-form :radio[name='status'][value='D']").removeAttr("hidden");
|
|
|
|
|
|
|
|
$("#infoPrefix-form label[for='removed']").removeAttr("hidden");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("#infoPrefix-form input[type='password']").each(function(){
|
|
|
|
$("#infoPrefix-form input[type='password']").each(function(){
|
|
|
|
let password = $(this).prop("required", create);
|
|
|
|
let password = $(this).prop("required", create);
|
|
|
|
let div = password.parent().parent().parent();
|
|
|
|
let div = password.parent().parent().parent();
|
|
|
@ -233,7 +245,15 @@ infoPrefixControl.setInfo = (obj) => {
|
|
|
|
mobilePhoneNoDiv.attr("hidden","hidden");
|
|
|
|
mobilePhoneNoDiv.attr("hidden","hidden");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$("#infoPrefix-form label[for='STTS']").html(obj.data.STTS == "P" ? "승인" : "신청");
|
|
|
|
let stts = "";
|
|
|
|
|
|
|
|
if(obj.data.STTS == "D"){
|
|
|
|
|
|
|
|
stts = "삭제";
|
|
|
|
|
|
|
|
} else if(obj.data.STTS == "P"){
|
|
|
|
|
|
|
|
stts = "승인";
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
stts = "신청";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$("#infoPrefix-form label[for='STTS']").html(stts);
|
|
|
|
|
|
|
|
|
|
|
|
$("#infoPrefix-form").find("input,select")
|
|
|
|
$("#infoPrefix-form").find("input,select")
|
|
|
|
.change(function() {
|
|
|
|
.change(function() {
|
|
|
|