BootstrapAdmin/Bootstrap.Admin/Views/Admin/Users.cshtml

74 lines
3.8 KiB
Plaintext
Raw Normal View History

@model NavigatorBarModel
2016-10-20 17:55:29 +08:00
@{
ViewBag.Title = "用户管理";
Layout = "_Default";
2016-10-20 17:55:29 +08:00
}
@section javascript {
<script src="~/js/users.js" asp-append-version="true"></script>
2016-10-20 17:55:29 +08:00
}
@section query {
<form class="form-inline">
<div class="row">
<div class="form-group col-sm-5 col-md-auto">
2018-08-03 14:18:05 +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-5 col-md-auto">
2018-08-03 14:18:05 +08:00
<label class="control-label" for="txt_display_name">显示名称</label>
<input type="text" class="form-control" id="txt_display_name" />
</div>
<div class="form-group col-sm-2 col-md-auto flex-md-fill justify-content-md-end">
2018-09-30 18:50:46 +08:00
<button type="button" id="btn_query" class="btn btn-primary btn-fill align-self-sm-end align-self-md-auto"><i class="fa fa-search" aria-hidden="true"></i><span>查询</span></button>
</div>
2016-10-20 17:55:29 +08:00
</div>
</form>
2016-10-20 17:55:29 +08:00
}
2016-10-25 18:47:33 +08:00
@section toolbar {
<button id="btn_assignGroup" type="button" class="btn btn-info">
2018-08-11 14:56:20 +08:00
<span class="fa fa-bank" 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-25 18:47:33 +08:00
</button>
2018-08-03 17:17:16 +08:00
<div class="toolbar btn-group">
<button class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" type="button"><i class="fa fa-gear"></i></button>
<div class="dropdown-menu">
@await Html.PartialAsync("_ButtonBarGroup")
2018-08-11 14:56:20 +08:00
<a id="tb_assignRole" href="#" title="分配角色"><i class="fa fa-sitemap"></i></a>
<a id="tb_assignGroup" href="#" title="分配部门"><i class="fa fa-bank"></i></a>
</div>
</div>
2016-10-25 18:47:33 +08:00
}
2016-10-20 17:55:29 +08:00
@section modal {
<div class="modal-header">
<h5 class="modal-title" id="myModalLabel">用户编辑窗口</h5>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
2018-08-02 17:59:49 +08:00
<form class="form-inline">
<input type="hidden" id="userID" />
<div class="row">
2017-04-14 13:09:18 +08:00
<div class="form-group col-sm-6">
<label class="control-label" for="userName">登陆名称</label>
<input type="text" class="form-control" id="userName" placeholder="不可为空50字以内" minlength="4" maxlength="50" remote="api/Register" data-remote-msg="此用户已存在" data-valid="true" />
</div>
2017-04-14 13:09:18 +08:00
<div class="form-group col-sm-6">
<label class="control-label" for="displayName">显示名称</label>
2018-06-07 14:39:45 +08:00
<input type="text" class="form-control" id="displayName" placeholder="不可为空50字以内" maxlength="50" data-valid="true" />
</div>
2017-04-14 13:09:18 +08:00
<div class="form-group col-sm-6">
<label class="control-label" for="password">登录密码</label>
2018-06-07 14:39:45 +08:00
<input type="password" class="form-control" id="password" placeholder="不可为空50字以内" maxlength="50" data-valid="true" />
</div>
2017-04-14 13:09:18 +08:00
<div class="form-group col-sm-6">
<label class="control-label" for="confirm">确认密码</label>
2018-06-07 14:39:45 +08:00
<input type="password" class="form-control" id="confirm" placeholder="与登陆密码一致50字以内" maxlength="50" equalTo="#password" data-valid="true" />
</div>
</div>
</form>
2016-10-20 17:55:29 +08:00
</div>
2016-10-25 18:47:33 +08:00
}
@section customModal {
@await Html.PartialAsync("RoleConfig")
@await Html.PartialAsync("GroupConfig")
}