2016-10-24 22:10:17 +08:00
|
|
|
@model NavigatorBarModel
|
|
|
|
@{
|
|
|
|
ViewBag.Title = "角色管理";
|
|
|
|
Layout = "~/Views/Shared/_Default.cshtml";
|
|
|
|
}
|
2016-11-07 21:41:17 +08:00
|
|
|
@section css {
|
|
|
|
<link href="~/Content/css/fa.css" rel="stylesheet" />
|
|
|
|
<link href="~/Content/css/jquery.nestable.css" rel="stylesheet" />
|
|
|
|
}
|
2016-10-24 22:10:17 +08:00
|
|
|
@section Javascript {
|
2016-11-07 21:41:17 +08:00
|
|
|
<script src="~/Content/js/jquery.nestable.js"></script>
|
2016-10-24 22:10:17 +08:00
|
|
|
<script src="~/scripts/Roles.js"></script>
|
2016-11-07 21:41:17 +08:00
|
|
|
|
2016-10-24 22:10:17 +08:00
|
|
|
}
|
|
|
|
@section header {
|
|
|
|
@Html.Partial("Header", Model)
|
|
|
|
}
|
|
|
|
@section navigator {
|
|
|
|
@Html.Partial("Navigator", Model)
|
|
|
|
}
|
|
|
|
@section query {
|
|
|
|
<form class="form-inline" role="form">
|
2016-11-09 16:00:15 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-lg-5">
|
|
|
|
<label class="control-label" for="txt_search_name">角色名称</label>
|
|
|
|
<input type="text" class="form-control" id="txt_search_name" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-lg-5">
|
|
|
|
<label class="control-label" for="txt_role_desc">角色描述</label>
|
|
|
|
<input type="text" class="form-control" id="txt_role_desc" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-lg-2">
|
|
|
|
<button type="button" id="btn_query" class="btn btn-primary form-control"><span class="glyphicon glyphicon-search" aria-hidden="true"></span>查询</button>
|
|
|
|
</div>
|
2016-11-09 18:36:49 +08:00
|
|
|
<div class="toolbar btn-group dropdown">
|
|
|
|
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown" type="button"><i class="fa fa-gear"></i></button>
|
|
|
|
<div class="dropdown-menu">
|
|
|
|
<a id="tb_add" href="#" title="新增"><i class="glyphicon glyphicon-plus"></i></a>
|
|
|
|
<a id="tb_delete" href="#" title="删除"><i class="glyphicon glyphicon-remove"></i></a>
|
|
|
|
<a id="tb_edit" href="#" title="编辑"><i class="glyphicon glyphicon-pencil"></i></a>
|
|
|
|
<a id="tb_assignUser" href="#" title="指派用户"><i class="fa fa-user"></i></a>
|
2016-11-12 21:53:18 +08:00
|
|
|
<a id="tb_assignGroup" href="#" title="指派部门"><i class="fa fa-bank"></i></a>
|
2016-11-09 18:36:49 +08:00
|
|
|
<a id="tb_assignMenu" href="#" title="指派菜单"><i class="fa fa-dashboard"></i></a>
|
|
|
|
</div>
|
2016-11-09 16:00:15 +08:00
|
|
|
</div>
|
2016-11-09 18:36:49 +08:00
|
|
|
</div>
|
|
|
|
</form>
|
2016-10-24 22:10:17 +08:00
|
|
|
}
|
2016-10-28 20:18:12 +08:00
|
|
|
@section toolbar{
|
|
|
|
<button id="btn_assignUser" type="button" class="btn btn-info">
|
2016-11-09 18:36:49 +08:00
|
|
|
<span class="fa fa-user" aria-hidden="true"></span>指派用户
|
2016-10-28 20:18:12 +08:00
|
|
|
</button>
|
|
|
|
<button id="btn_assignGroup" type="button" class="btn btn-info">
|
2016-11-12 21:53:18 +08:00
|
|
|
<span class="fa fa-bank" aria-hidden="true"></span>指派部门
|
2016-11-09 00:34:47 +08:00
|
|
|
</button>
|
2016-11-07 21:41:17 +08:00
|
|
|
<button id="btn_assignMenu" type="button" class="btn btn-info">
|
2016-11-09 00:34:47 +08:00
|
|
|
<span class="fa fa-dashboard" aria-hidden="true"></span>指派菜单
|
2016-11-07 21:41:17 +08:00
|
|
|
</button>
|
2016-10-28 20:18:12 +08:00
|
|
|
}
|
2016-10-24 22:10:17 +08:00
|
|
|
@section modal {
|
2016-10-24 22:16:30 +08:00
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
|
|
<h4 class="modal-title" id="myModalLabel">角色编辑窗口</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-inline" id="dataForm" name="dataForm" role="form">
|
2016-11-09 21:56:33 +08:00
|
|
|
<div class="row">
|
|
|
|
<div class="form-group col-lg-6">
|
|
|
|
<label class="control-label" for="roleName">角色名称</label>
|
|
|
|
<input type="text" class="form-control" id="roleName" name="roleName" placeholder="不可为空" maxlength="50" />
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-lg-6">
|
|
|
|
<input type="text" class="form-control hidden" id="roleID" name="roleID" />
|
|
|
|
<label class="control-label" for="roleDesc">角色描述</label>
|
2016-11-09 22:45:42 +08:00
|
|
|
<input type="text" class="form-control" id="roleDesc" name="roleDesc" placeholder="描述信息(可为空)" maxlength="50" />
|
2016-11-09 21:56:33 +08:00
|
|
|
</div>
|
2016-10-24 22:16:30 +08:00
|
|
|
</div>
|
|
|
|
</form>
|
2016-10-24 22:10:17 +08:00
|
|
|
</div>
|
2016-10-28 20:18:12 +08:00
|
|
|
}
|
|
|
|
@section customModal{
|
|
|
|
@Html.Partial("UserConfig")
|
2016-10-29 09:24:55 +08:00
|
|
|
@Html.Partial("GroupConfig")
|
2016-11-09 00:34:47 +08:00
|
|
|
@Html.Partial("NavigatorConfig", Model.Navigations.Union(Model.Menus))
|
2016-10-29 09:24:55 +08:00
|
|
|
}
|