roleResource.vm 1.79 KB

#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>&nbsp;&nbsp;&nbsp;&nbsp;<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>

                        &nbsp; &nbsp; &nbsp;
                        <a class="btn btn-info" href="javascript:history.back()">
                            <i class="icon-undo bigger-110"></i>
                            返回
                        </a>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>