roleResource.vm
1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#set($page_title="编辑")
#set($crumbs="首页:/home,角色列表:/role/list.do")
#set($url_roleResource = "/role/roleResource.do")
<div class="page-content">
<div class="page-header">
<h1>
<small>
<i class="icon-double-angle-right"></i>
分配资源
</small>
</h1>
</div>
<!-- /.page-header -->
<div class="row">
<div class="col-xs-12">
<!-- PAGE CONTENT BEGINS -->
<form class="form-horizontal" role="form" method="post" action="$url_roleResource">
<input type="hidden" value="$roleId" name="roleId">
<input type="hidden" value="" name="resourceIds">
#foreach($navKey in $model.keySet())
<div><strong>$navKey.projectName</strong></div>
#foreach($resource in $model.get($navKey))
<div> <input type="checkbox" #if($assignedMap[$resource.id]) checked #end value="$resource.id" name="resourceIds">$resource.resourceName [类别:#if($!{resource.type} == 2) API #elseif($!{resource.type} == 3) FRAGMENT #else URL #end] </div>
#end
#end
<div class="clearfix form-actions">
<div class="col-md-offset-3 col-md-9">
<button class="btn btn-info" type="submit" id="submitbtn">
<i class="icon-ok bigger-110"></i>
提交
</button>
<a class="btn btn-info" href="javascript:history.back()">
<i class="icon-undo bigger-110"></i>
返回
</a>
</div>
</div>
</form>
</div>
</div>
</div>