修改功能
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
}
|
||||
|
||||
<h3>
|
||||
账号
|
||||
用户
|
||||
</h3>
|
||||
|
||||
<p>
|
||||
设置您的账号<br /><br />
|
||||
账号设置<br /><br />
|
||||
</p>
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
@Html.HiddenFor(m => m.AccountProfile.Navigation)
|
||||
|
||||
<div class="form-group row mb-1">
|
||||
<label for="Avatar" class="col-sm-2 col-form-label"><strong>Avatar</strong></label>
|
||||
<label for="Avatar" class="col-sm-2 col-form-label"><strong>头像</strong></label>
|
||||
<div class="col-sm-10">
|
||||
@if (@Model.AccountProfile.Navigation != "")
|
||||
{
|
||||
@@ -51,7 +51,7 @@
|
||||
<div class="text-danger">@Html.ValidationMessageFor(m => m.AccountProfile.EmailAddress)</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row mb-1">
|
||||
<div class="form-group row mb-1" style="display:none;">
|
||||
<label for="EmailConfirmed" class="col-sm-2 col-form-label"><strong>@Html.LabelFor(m => m.AccountProfile.EmailConfirmed)</strong></label>
|
||||
<div class="col-sm-10">
|
||||
@Html.CheckBoxFor(m => m.AccountProfile.EmailConfirmed, new { @class = "input-control" })
|
||||
@@ -66,14 +66,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-1">
|
||||
<label for="FirstName" class="col-sm-2 col-form-label"><strong>@Html.LabelFor(m => m.AccountProfile.FirstName)</strong></label>
|
||||
<div class="col-sm-10">
|
||||
@Html.TextBoxFor(m => m.AccountProfile.FirstName, new { @class = "form-control" })
|
||||
<div class="text-danger">@Html.ValidationMessageFor(m => m.AccountProfile.FirstName)</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-1">
|
||||
<label for="LastName" class="col-sm-2 col-form-label"><strong>@Html.LabelFor(m => m.AccountProfile.LastName)</strong></label>
|
||||
<div class="col-sm-10">
|
||||
@@ -82,6 +74,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-1">
|
||||
<label for="FirstName" class="col-sm-2 col-form-label"><strong>@Html.LabelFor(m => m.AccountProfile.FirstName)</strong></label>
|
||||
<div class="col-sm-10">
|
||||
@Html.TextBoxFor(m => m.AccountProfile.FirstName, new { @class = "form-control" })
|
||||
<div class="text-danger">@Html.ValidationMessageFor(m => m.AccountProfile.FirstName)</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group row mb-1">
|
||||
<label for="Role" class="col-sm-2 col-form-label"><strong>@Html.LabelFor(m => m.AccountProfile.Role)</strong></label>
|
||||
<div class="col-sm-10">
|
||||
@@ -134,7 +134,7 @@
|
||||
<label for="Language" class="col-sm-2 col-form-label"><strong>@Html.LabelFor(m => m.AccountProfile.Language)</strong></label>
|
||||
<div class="col-sm-10">
|
||||
<select name="AccountProfile.Language" id="AccountProfile.Language" class="form-control">
|
||||
<option value="" style="color:#ccc !important;">Select a language</option>
|
||||
<option value="" style="color:#ccc !important;">选择一个语言</option>
|
||||
@foreach (var item in Model.Languages)
|
||||
{
|
||||
<option value="@item.Value" selected=@(Model.AccountProfile.Language == item.Value ? "selected" : null)>
|
||||
@@ -187,7 +187,7 @@
|
||||
|
||||
<div class="form-group row mb-1">
|
||||
<div class="col-sm-10 offset-sm-2">
|
||||
<button type="submit" class="btn btn btn-primary rounded-0">Save!</button>
|
||||
<button type="submit" class="btn btn btn-primary rounded-0">保存!</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -196,4 +196,4 @@
|
||||
}
|
||||
<br />
|
||||
|
||||
<form action="@GlobalConfiguration.BasePath/Admin/DeleteAccount/@Model.AccountProfile.Navigation"><button type="submit" class="btn btn-danger rounded-0">Delete Account</button></form>
|
||||
<form action="@GlobalConfiguration.BasePath/Admin/DeleteAccount/@Model.AccountProfile.Navigation"><button type="submit" class="btn btn-danger rounded-0">删除账号</button></form>
|
||||
|
||||
Reference in New Issue
Block a user