BootstrapAdmin11/Bootstrap.Admin/Views/Admin/Groups.cshtml

66 lines
3.1 KiB
Plaintext
Raw Normal View History

@model Bootstrap.Admin.Models.NavigatorBarModel
2016-10-23 23:35:17 +08:00
@{
ViewBag.Title = "部门管理";
Layout = "~/Views/Shared/_Default.cshtml";
}
@section Javascript {
<script src="~/js/Groups.js"></script>
2016-10-23 23:35:17 +08:00
}
@section query {
<form class="form-inline">
<div class="form-row">
<div class="form-group col-sm-6 col-md-5">
2016-10-23 23:35:17 +08:00
<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-sm-6 col-md-5">
2016-10-23 23:35:17 +08:00
<label class="control-label" for="txt_group_desc">部门描述</label>
<input type="text" class="form-control" id="txt_group_desc" />
</div>
<div class="form-group col-sm-12 col-md-2">
<button type="button" id="btn_query" class="btn btn-primary btn-fill"><i class="fa fa-search" aria-hidden="true"></i><span>查询</span></button>
2016-10-23 23:35:17 +08:00
</div>
</div>
</form>
}
@section toolbar {
<button id="btn_assignUser" type="button" class="btn btn-info">
<span class="fa fa-user" aria-hidden="true"></span><span>分配用户</span>
</button>
<button id="btn_assignRole" type="button" class="btn btn-warning">
<span class="fa fa-sitemap" aria-hidden="true"></span><span>分配角色</span>
2016-10-23 23:35:17 +08:00
</button>
<div class="toolbar btn-group">
<button class="btn dropdown-toggle" data-toggle="dropdown" type="button"><i class="fa fa-gear"></i></button>
2016-10-23 23:35:17 +08:00
<div class="dropdown-menu">
@await Html.PartialAsync("_ButtonBarGroup")
<a id="tb_assignRole" href="#" title="分配角色"><i class="fa fa-sitemap"></i></a>
<a id="tb_assignUser" href="#" title="分配用户"><i class="fa fa-user"></i></a>
2016-10-23 23:35:17 +08:00
</div>
</div>
}
@section modal {
<div class="modal-header">
<h5 class="modal-title" id="myModalLabel">部门编辑窗口</h5>
2016-10-23 23:35:17 +08:00
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<form class="form-inline">
<div class="form-row">
<div class="form-group col-sm-6">
2016-10-23 23:35:17 +08:00
<label class="control-label" for="groupName">部门名称</label>
<input type="text" class="form-control" id="groupName" placeholder="不可为空50字以内" maxlength="50" data-valid="true" />
2016-10-23 23:35:17 +08:00
</div>
<div class="form-group col-sm-6">
<input type="text" class="form-control d-none" id="groupID" data-default-val="0" />
2016-10-23 23:35:17 +08:00
<label class="control-label" for="groupDesc">部门描述</label>
<input type="text" class="form-control" id="groupDesc" placeholder="描述信息(可为空)50字以内" maxlength="50" />
2016-10-23 23:35:17 +08:00
</div>
</div>
</form>
</div>
}
@section customModal {
@await Html.PartialAsync("RoleConfig")
@await Html.PartialAsync("UserConfig")
2016-10-23 23:35:17 +08:00
}