2018-06-07 00:45:47 +08:00
|
|
|
|
@model Bootstrap.Admin.Models.ProfilesModel
|
2016-11-10 10:27:30 +08:00
|
|
|
|
@{
|
|
|
|
|
ViewBag.Title = "个人中心";
|
|
|
|
|
Layout = "~/Views/Shared/_Admin.cshtml";
|
|
|
|
|
}
|
2016-11-15 11:15:38 +08:00
|
|
|
|
@section Javascript {
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<environment include="Development">
|
|
|
|
|
<script src="~/js/fileinput.js"></script>
|
|
|
|
|
<script src="~/js/jquery.validate.js"></script>
|
|
|
|
|
<script src="~/js/messages_zh.js"></script>
|
|
|
|
|
</environment>
|
|
|
|
|
<environment exclude="Development">
|
|
|
|
|
<script src="~/js/fileinput.min.js"></script>
|
|
|
|
|
<script src="~/js/jquery.validate.min.js"></script>
|
|
|
|
|
<script src="~/js/messages_zh.min.js"></script>
|
|
|
|
|
</environment>
|
2018-06-07 00:45:47 +08:00
|
|
|
|
<script src="~/js/fileinput.zh.js"></script>
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<script src="~/js/longbow.dataentity.js"></script>
|
2018-06-07 12:25:03 +08:00
|
|
|
|
<script src="~/js/longbow.validate.js"></script>
|
2018-08-15 15:27:12 +08:00
|
|
|
|
<script src="~/js/profiles.js"></script>
|
2018-08-02 17:21:00 +08:00
|
|
|
|
<script src="~/js/theme.js"></script>
|
2016-11-15 11:15:38 +08:00
|
|
|
|
}
|
2016-11-10 10:27:30 +08:00
|
|
|
|
@section css {
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<environment include="Development">
|
|
|
|
|
<link href="~/css/fileinput.css" rel="stylesheet" />
|
|
|
|
|
</environment>
|
|
|
|
|
<environment exclude="Development">
|
|
|
|
|
<link href="~/css/fileinput.min.css" rel="stylesheet" />
|
|
|
|
|
</environment>
|
2018-06-07 00:45:47 +08:00
|
|
|
|
<link href="~/css/tasks.css" rel="stylesheet" />
|
2016-11-10 10:27:30 +08:00
|
|
|
|
}
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header">基本资料</div>
|
|
|
|
|
<div class="card-body" data-toggle="LgbValidate" data-valid-button="#btnSaveDisplayName">
|
|
|
|
|
<form class="form-inline">
|
|
|
|
|
<div class="form-row">
|
2018-08-04 01:51:33 +08:00
|
|
|
|
<div class="form-group col-sm-6">
|
2016-11-15 11:15:38 +08:00
|
|
|
|
<label class="control-label" for="userName">登陆名称</label>
|
2016-11-17 14:50:19 +08:00
|
|
|
|
<input type="text" class="form-control ignore" id="userName" name="userName" value="@Model.UserName" readonly />
|
2016-11-10 10:27:30 +08:00
|
|
|
|
</div>
|
2018-08-04 01:51:33 +08:00
|
|
|
|
<div class="form-group col-sm-6">
|
2016-11-15 11:15:38 +08:00
|
|
|
|
<label class="control-label" for="DisplayName">显示名称</label>
|
2018-06-07 12:25:03 +08:00
|
|
|
|
<input type="text" class="form-control" id="displayName" name="displayName" value="@Model.DisplayName" placeholder="不可为空,50字以内" maxlength="50" data-valid="true" />
|
2016-11-10 10:27:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
2018-08-10 18:01:26 +08:00
|
|
|
|
<div class="modal-footer d-none" data-admin="@User.IsInRole("Administrators")">
|
|
|
|
|
<button id="btnSaveDisplayName" data-method="user" class="btn btn-secondary" type="button"><i class="fa fa-save"></i><span>保存</span></button>
|
2016-11-10 10:52:34 +08:00
|
|
|
|
</div>
|
2016-11-10 10:27:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header">修改密码</div>
|
|
|
|
|
<div class="card-body" data-toggle="LgbValidate" data-valid-button="#btnSavePassword">
|
|
|
|
|
<form class="form-inline">
|
|
|
|
|
<div class="form-row">
|
2018-08-10 18:01:26 +08:00
|
|
|
|
<div class="form-group col">
|
2017-03-12 17:03:29 +08:00
|
|
|
|
<label class="control-label" for="currentPassword">原密码: </label>
|
2018-06-08 13:02:02 +08:00
|
|
|
|
<input type="password" class="form-control" id="currentPassword" placeholder="原密码,50字以内" maxlength="50" data-valid="true" />
|
2016-11-10 10:27:30 +08:00
|
|
|
|
</div>
|
2017-06-13 11:34:06 +08:00
|
|
|
|
</div>
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<div class="form-row">
|
2018-08-04 01:51:33 +08:00
|
|
|
|
<div class="form-group col-sm-6">
|
2017-03-12 17:03:29 +08:00
|
|
|
|
<label class="control-label" for="newPassword">新密码: </label>
|
2018-06-08 13:02:02 +08:00
|
|
|
|
<input type="password" class="form-control" id="newPassword" placeholder="新密码,50字以内" maxlength="50" data-valid="true" />
|
2016-11-10 10:27:30 +08:00
|
|
|
|
</div>
|
2018-08-04 01:51:33 +08:00
|
|
|
|
<div class="form-group col-sm-6">
|
2016-11-10 10:27:30 +08:00
|
|
|
|
<label class="control-label" for="confirmPassword">确认密码: </label>
|
2018-08-14 19:33:19 +08:00
|
|
|
|
<input type="password" class="form-control" id="confirmPassword" placeholder="与新密码一致,50字以内" maxlength="50" equalTo="#newPassword" data-valid="true" />
|
2016-11-10 10:27:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
2018-08-10 18:01:26 +08:00
|
|
|
|
<div class="modal-footer d-none" data-admin="@User.IsInRole("Administrators")">
|
|
|
|
|
<button id="btnSavePassword" data-method="password" class="btn btn-secondary" type="button"><i class="fa fa-save"></i><span>保存</span></button>
|
2016-11-10 10:52:34 +08:00
|
|
|
|
</div>
|
2016-11-10 10:27:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header">网站皮肤</div>
|
|
|
|
|
<div class="card-body">
|
2018-08-10 18:34:06 +08:00
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="btn-group" role="group">
|
2018-08-10 19:38:15 +08:00
|
|
|
|
<button id="css" class="btn btn-success dropdown-select dropdown-toggle" data-toggle="dropdown" data-default-val="" value="@Model.Theme">默认样式</button>
|
2018-08-10 21:51:21 +08:00
|
|
|
|
<div class="dropdown-menu">
|
|
|
|
|
<a href="#" data-val="">默认样式</a>
|
2018-08-10 18:34:06 +08:00
|
|
|
|
@foreach (var css in Model.Themes)
|
|
|
|
|
{
|
2018-09-07 16:11:18 +08:00
|
|
|
|
<a href="#" data-val="@css.Code">@css.Name</a>
|
2018-08-10 18:34:06 +08:00
|
|
|
|
}
|
2018-08-10 21:51:21 +08:00
|
|
|
|
</div>
|
2017-06-13 11:34:06 +08:00
|
|
|
|
</div>
|
2018-08-10 18:34:06 +08:00
|
|
|
|
</div>
|
2018-08-10 18:01:26 +08:00
|
|
|
|
<div class="modal-footer d-none" data-admin="@User.IsInRole("Administrators")">
|
|
|
|
|
<button id="btnSaveCss" data-method="css" class="btn btn-secondary" type="button"><i class="fa fa-save"></i><span>保存</span></button>
|
2017-06-13 11:34:06 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-08-02 17:59:49 +08:00
|
|
|
|
<div class="card">
|
|
|
|
|
<div class="card-header">修改头像</div>
|
|
|
|
|
<div class="card-body">
|
2018-08-10 18:34:06 +08:00
|
|
|
|
<form enctype="multipart/form-data" class="d-none" data-admin="@User.IsInRole("Administrators")">
|
2016-11-16 17:27:03 +08:00
|
|
|
|
<div class="form-group">
|
2016-12-10 12:23:59 +08:00
|
|
|
|
<input id="fileIcon" class="file" type="file" data-init="@Model.Size">
|
2016-11-10 10:27:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
</form>
|
2018-08-10 18:34:06 +08:00
|
|
|
|
<img class="card-img d-none" src="@Url.Content(Model.Icon)" />
|
2016-11-10 10:27:30 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|