BootstrapAdmin/Bootstrap.Admin/Views/Admin/Profiles.cshtml

72 lines
3.7 KiB
Plaintext
Raw Normal View History

2017-03-23 17:21:58 +08:00
@model ProfilesModel
2016-11-10 10:27:30 +08:00
@{
ViewBag.Title = "个人中心";
Layout = "~/Views/Shared/_Admin.cshtml";
}
@section Javascript {
<script src="~/Scripts/longbow.dataentity.js"></script>
<script src="~/Scripts/fileinput.js"></script>
<script src="~/Scripts/fileinput.zh.js"></script>
<script src="~/Scripts/jquery.validate.js"></script>
<script src="~/Scripts/messages_zh.js"></script>
2017-03-23 17:21:58 +08:00
<script src="~/scripts/Profiles.js"></script>
}
2016-11-10 10:27:30 +08:00
@section css {
<link href="~/Content/tasks.css" rel="stylesheet" />
<link href="~/Content/fileinput.css" rel="stylesheet" />
2016-11-10 10:27:30 +08:00
}
<div class="panel panel-default">
<div class="panel-heading">基本资料</div>
<div class="panel-body">
<form id="infoDataForm" name="infoDataForm" class="form-inline" role="form">
2016-11-10 10:27:30 +08:00
<div class="row">
<div class="form-group col-xs-12 col-sm-6">
<label class="control-label" for="userName">登陆名称</label>
<input type="text" class="form-control ignore" id="userName" name="userName" value="@Model.UserName" readonly />
2016-11-10 10:27:30 +08:00
</div>
<div class="form-group col-xs-12 col-sm-6">
<label class="control-label" for="DisplayName">显示名称</label>
<input type="text" class="form-control" id="displayName" name="displayName" value="@Model.DisplayName" placeholder="不可为空50字以内" maxlength="50" />
2016-11-10 10:27:30 +08:00
</div>
</div>
</form>
<div class="modal-footer">
2017-03-23 17:21:58 +08:00
<button id="btnSaveDisplayName" class="btn btn-default" type="button" disabled data-admin="@LgbPrincipal.IsWebAdmin(User.Identity.Name)"><i class="fa fa-save"></i><span>保存</span></button>
</div>
2016-11-10 10:27:30 +08:00
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">修改密码</div>
<div class="panel-body">
<form id="passwordDataForm" name="passwordDataForm" class="form-inline" role="form">
<div class="row">
<div class="form-group col-md-4 col-xs-12">
<label class="control-label" for="currentPassword">原密码: </label>
<input type="password" class="form-control" id="currentPassword" name="currentPassword" placeholder="原密码50字以内" maxlength="50" />
2016-11-10 10:27:30 +08:00
</div>
<div class="form-group col-md-4 col-sm-6 col-xs-12">
<label class="control-label" for="newPassword">新密码: </label>
<input type="password" class="form-control" id="newPassword" name="newPassword" placeholder="新密码50字以内" maxlength="50" />
2016-11-10 10:27:30 +08:00
</div>
<div class="form-group col-md-4 col-sm-6 col-xs-12">
2016-11-10 10:27:30 +08:00
<label class="control-label" for="confirmPassword">确认密码: </label>
<input type="password" class="form-control" id="confirmPassword" name="confirmPassword" placeholder="与新密码一致50字以内" maxlength="50" />
2016-11-10 10:27:30 +08:00
</div>
</div>
</form>
<div class="modal-footer">
2017-03-23 17:21:58 +08:00
<button id="btnSavePassword" class="btn btn-default" type="button" disabled data-admin="@LgbPrincipal.IsWebAdmin(User.Identity.Name)"><i class="fa fa-save"></i><span>保存</span></button>
</div>
2016-11-10 10:27:30 +08:00
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">修改头像</div>
<div class="panel-body">
<form enctype="multipart/form-data">
<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>
</div>
</div>