demo20230512/Areas/admin/Views/Account/UpdateProfile.cshtml
2023-05-12 10:20:28 +08:00

49 lines
1.8 KiB
Plaintext

@using Resources
@model Weee.Areas.Admin.ViewModels.AccountUpdateProfileViewModel
@{
ViewBag.Title = "Update Profile";
Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}
<div class="col-md-12">
<h2>@Resource.PersonalProfile</h2>
@if (ViewBag.SuccessMsg != null) { <div class="alert alert-info" role="alert">@ViewBag.SuccessMsg</div> }
@if (ViewBag.ErrorMsg != null) { <div class="alert alert-danger" role="alert">@ViewBag.ErrorMsg</div> }
<hr />
<div class="col-md-1"></div>
<div class="col-md-10">
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
@Html.ValidationSummary(true)
@Html.HiddenFor(model => model.Id)
<div class="form-group">
@Html.LabelFor(model => model.Name, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.TextBoxFor(model => model.Name, new { @class = "form-control" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.Email, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.Email, new { htmlAttributes = new { @class = "form-control" } })
</div>
</div>
<div class="form-group" style="padding-top: 10px;">
<div class="col-md-offset-3 col-md-9 text-right">
<input type="submit" value="@Resource.StaticLabelGlobal_Save" class="btn btn-default" />
</div>
</div>
</div>
}
</div>
</div>
<div class="col-md-2"></div>