101 lines
3.7 KiB
HTML
101 lines
3.7 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html>
|
||
|
|
<head>
|
||
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||
|
|
<title>Publisher group create</title>
|
||
|
|
|
||
|
|
<!-- css -->
|
||
|
|
<link rel="stylesheet" href="../commons/css/awsui.css">
|
||
|
|
<link rel="stylesheet" href="../commons/js/jquery/themes/default/ui/reference/jquery-ui.css">
|
||
|
|
<link rel="stylesheet" href="../commons/js/jquery/themes/default/public.css">
|
||
|
|
|
||
|
|
<!-- js -->
|
||
|
|
<script src="../commons/js/jquery/scripts/jquery.js"></script>
|
||
|
|
<script src="../commons/js/awsui.js"></script>
|
||
|
|
<script src="../commons/js/jquery/scripts/ui/reference/jquery-ui.js"></script>
|
||
|
|
<script src="../commons/js/jquery/scripts/ui/aws.grid.js"></script>
|
||
|
|
<script src="../commons/js/jquery/scripts/ui/aws.grid-localize-zh.js"></script>
|
||
|
|
|
||
|
|
<script src="../<I18N#COEPATH>/js/teamwork.publish.create.js"></script>
|
||
|
|
|
||
|
|
<style type="text/css">
|
||
|
|
.table_content tr td{
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body style="min-width: 500px;">
|
||
|
|
|
||
|
|
<div style="padding:0px 10px;" class="awsui-simple-tab">
|
||
|
|
<a tit="basicInfo" class="active" onclick="clickTab($(this))"><I18N#基本信息></a>
|
||
|
|
<a tit="perms" onclick="clickTab($(this))"><I18N#门户权限></a>
|
||
|
|
<a tit="role" style="<#roleStyle>" onclick="clickTab($(this))"><I18N#关联AWS角色></a>
|
||
|
|
</div>
|
||
|
|
<div id="content" style="height: 320px; border: 1px solid #ddd; border-top: 0px;">
|
||
|
|
<div tit="basicInfo" style="padding:20px 20px 20px 0px;">
|
||
|
|
<table class="awsui-ux">
|
||
|
|
<tr style="<#uuidStyle>">
|
||
|
|
<td class="awsui-ux-title"><I18N#代码></td>
|
||
|
|
<td><span class="required"><input id="groupCode" class="awsui-textbox" style="width:376px;" type="text" value="<#groupCode>" maxlength="36"></span></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td class="awsui-ux-title"><I18N#分类></td>
|
||
|
|
<td><span class="required"><input id="category" style="width:316px;" type="text" value="<#category>" maxlength="64" title="请输入字母、数字、汉字或下划线"></span></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td class="awsui-ux-title"><I18N#名称></td>
|
||
|
|
<td><span class="required"><input id="groupName" class="awsui-textbox" style="width:376px;" type="text" value="<#groupName>" maxlength="128"></span></td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td class="awsui-ux-title"><I18N#说明></td>
|
||
|
|
<td><span><textarea id="groupDesc" class="awsui-input awsui-textarea" style="height:80px; width:376px;" placeholder="不超过255个字符" maxlength="255"><#groupDesc></textarea></span></td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div tit="perms" style="display: none;">
|
||
|
|
<ul id="palTree" style='height:auto'></ul>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div tit="role" style="display: none;">
|
||
|
|
<ul id="roleTree" style='height:auto'></ul>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<input type="hidden" name="sid" id="sid" value="<#sid>" />
|
||
|
|
<input type="hidden" name="wsId" id="wsId" value="<#wsId>" />
|
||
|
|
<input type="hidden" name="uuid" id="uuid" value="<#uuid>" />
|
||
|
|
</body>
|
||
|
|
|
||
|
|
<script type="text/javascript">
|
||
|
|
|
||
|
|
var treeData = <#treeData>;
|
||
|
|
var checkedPermNodes = <#checkedPermNodes>;
|
||
|
|
var checkedRoleNodes = <#checkedRoleNodes>;
|
||
|
|
|
||
|
|
function clickTab(obj) {
|
||
|
|
obj.siblings().removeClass("active");
|
||
|
|
obj.addClass("active");
|
||
|
|
$("#content").find("div[tit]").hide();
|
||
|
|
$("#content").find("div[tit='"+$(this).attr("tit")+"']").show();
|
||
|
|
if (obj.attr("tit") == "perms" && $("#palTree").html() == "") {
|
||
|
|
initpalTree();
|
||
|
|
}
|
||
|
|
if (obj.attr("tit") == "role" && $("#roleTree").html() == "") {
|
||
|
|
initRoleTree();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
$(function(){
|
||
|
|
var availableTags = <#categotyList>;
|
||
|
|
$("#category").combobox({
|
||
|
|
width:374,
|
||
|
|
listWidth:374,
|
||
|
|
value:'<#category>',
|
||
|
|
source: availableTags
|
||
|
|
});
|
||
|
|
|
||
|
|
})
|
||
|
|
|
||
|
|
</script>
|
||
|
|
</html>
|