1.完善一些提示的国际化配置
2.欺骗ip权限控制调整
This commit is contained in:
@@ -305,7 +305,7 @@ $(function(){
|
||||
<div class="col-md-6">
|
||||
<div class="row">
|
||||
<div class="col-md-offset-3 col-md-8">
|
||||
<shiro:hasPermission name="ip:cfg:edit">
|
||||
<shiro:hasPermission name="cfg:dnsip:edit">
|
||||
<input id="submitBtn" type="submit" class="btn btn-circle blue" value=<spring:message code="submit"></spring:message>>
|
||||
</shiro:hasPermission>
|
||||
<button id="cancel" type="button" class="btn btn-circle grey-salsa btn-outline" onclick="history.go(-1)"><spring:message code="cancel"></spring:message></button>
|
||||
|
||||
@@ -52,9 +52,9 @@
|
||||
function edit() {
|
||||
var checkboxes = $(".child-checks:checked");
|
||||
if (checkboxes.length == 0) {
|
||||
alertx("请选择一条配置");
|
||||
alertx("<spring:message code='one_more'/>");
|
||||
} else if (checkboxes.length > 1) {
|
||||
alertx("只能选择一条配置");
|
||||
alertx("<spring:message code='check_one'/>");
|
||||
} else {
|
||||
window.location.href = "${ctx}/cfg/dnsIp/form?cfgId=" + checkboxes.attr("id");
|
||||
}
|
||||
@@ -63,7 +63,7 @@
|
||||
function delCfg() {
|
||||
var checkboxes = $(".child-checks:checked");
|
||||
if (checkboxes.length == 0) {
|
||||
alertx("请选择一条配置");
|
||||
alertx("<spring:message code='one_more'/>");
|
||||
} else {
|
||||
var ids = "";
|
||||
checkboxes.each(function(){
|
||||
@@ -83,7 +83,7 @@
|
||||
|
||||
<div class="page-content">
|
||||
<div class="theme-panel hidden-xs hidden-sm">
|
||||
<shiro:hasPermission name="cfg:ip:edit">
|
||||
<shiro:hasPermission name="cfg:dnsip:edit">
|
||||
<button type="button" class="btn btn-primary" onClick="javascript:window.location='${ctx}/cfg/dnsIp/form'">
|
||||
<i class="fa fa-plus"></i>
|
||||
<spring:message code="add"></spring:message></button>
|
||||
@@ -131,7 +131,7 @@
|
||||
<%-- <button type="button" class="btn btn-default" onclick="edit()">
|
||||
<i class="fa fa-edit"></i> <spring:message code="edit"/>
|
||||
</button> --%>
|
||||
<shiro:hasPermission name="cfg:ip:edit">
|
||||
<shiro:hasPermission name="cfg:dnsip:edit">
|
||||
<button class="btn btn-default" onclick="delCfg()" data-toggle="tooltip" data-placement="top">
|
||||
<i class="fa fa-trash"> <spring:message code="delete"/></i>
|
||||
</button>
|
||||
@@ -246,7 +246,7 @@
|
||||
<table class="table table-striped table-bordered table-condensed text-nowrap">
|
||||
<thead>
|
||||
<tr>
|
||||
<shiro:hasPermission name="cfg:ip:edit">
|
||||
<shiro:hasPermission name="cfg:dnsip:edit">
|
||||
<th><input type="checkbox" class="i-checks" id="checkAll"></th>
|
||||
</shiro:hasPermission>
|
||||
<th><spring:message code="config_describe"/></th>
|
||||
@@ -276,7 +276,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach items="${page.list }" var="dnsIpCfg" varStatus="status" step="1">
|
||||
<shiro:hasPermission name="cfg:ip:edit">
|
||||
<shiro:hasPermission name="cfg:dnsip:edit">
|
||||
<td><input type="checkbox" class="i-checks child-checks" id="${dnsIpCfg.fakeId}" value="${dnsIpCfg.isAudit}"></td>
|
||||
</shiro:hasPermission>
|
||||
<td>${dnsIpCfg.cfgDesc }</td>
|
||||
|
||||
Reference in New Issue
Block a user