115 lines
4.5 KiB
Plaintext
115 lines
4.5 KiB
Plaintext
<%@ page contentType="text/html;charset=UTF-8"%>
|
|
<%@ include file="/WEB-INF/include/taglib.jsp"%>
|
|
<html>
|
|
<head>
|
|
<title><spring:message code="${cfgName}"></spring:message></title>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$("input[type=checkbox]").bootstrapSwitch();
|
|
$("input[type=checkbox]").each(function(){
|
|
$(this).on("switchChange.bootstrapSwitch",function(event,state){
|
|
if(state){
|
|
$(this).val(1);
|
|
}else{
|
|
$(this).val(0);
|
|
}
|
|
})
|
|
});
|
|
$("#cfgFrom").validate({
|
|
errorPlacement: function(error,element){
|
|
$(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error);
|
|
},
|
|
submitHandler: function(form){
|
|
loading('onloading...');
|
|
form.submit();
|
|
},
|
|
errorContainer: "#messageBox",
|
|
});
|
|
$("#cancel").on("click",function(){
|
|
window.history.back();
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="page-content">
|
|
<h3 class="page-title">
|
|
<c:forEach items="${regionList}" var="region">
|
|
<c:if test="${_cfg.functionId eq region.functionId}">
|
|
<spring:message code="${region.configRegionValue}"></spring:message>
|
|
</c:if>
|
|
</c:forEach>
|
|
</h3>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="portlet box blue">
|
|
<div class="portlet-title">
|
|
<div class="caption">
|
|
<i class="fa fa-gift"></i>
|
|
</div>
|
|
</div>
|
|
<div class="portlet-body form">
|
|
<sys:message content="${message}" />
|
|
<!-- BEGIN FORM-->
|
|
<form id="cfgFrom" action="${ctx}/ntc/av/sample/auditAvSignSample" method="post" class="form-horizontal">
|
|
<input type="hidden" name="functionId" value="${functionId }">
|
|
<div class="form-body">
|
|
<div class="row">
|
|
<c:forEach items="${cfgs}" var="_cfg"
|
|
varStatus="status">
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<label class="control-label col-md-3">
|
|
<c:forEach items="${fns:getDictList('SERVICE_ACTION') }" var="dict">
|
|
<c:if test="${dict.itemCode eq _cfg.action }">
|
|
<spring:message code="${dict.itemValue }"/>
|
|
</c:if>
|
|
</c:forEach>
|
|
</label>
|
|
<input type="hidden" name="cfgs[${status.index }].cfgId" value="${_cfg.cfgId }">
|
|
<input type="hidden" name="cfgs[${status.index }].serviceId" value="${_cfg.serviceId }">
|
|
<input type="hidden" name="cfgs[${status.index }].compileId" value="${_cfg.compileId}">
|
|
<input type="hidden" name="cfgs[${status.index }].isValidOld" value="${_cfg.isValid}">
|
|
<div class="col-md-6">
|
|
<div class="bootstrap-switch">
|
|
<input type="checkbox" data-on="danger"
|
|
data-off="primary"
|
|
data-on-label="<spring:message code="on"/>"
|
|
data-off-label="<spring:message code="off"/>"
|
|
name="cfgs[${status.index }].isValid"
|
|
value="${_cfg.isValid }"
|
|
<c:if test="${_cfg.isValid eq 1}">
|
|
checked
|
|
</c:if>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</c:forEach>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="form-actions">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="row">
|
|
<div class="col-md-offset-3 col-md-8">
|
|
<button id="save" type="submit" class="btn green"><spring:message code="submit"/></button>
|
|
<button id="cancel" type="button" class="btn default"><spring:message code="cancel"/></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6"> </div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<!-- END FORM-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |