修改功能
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
}
|
||||
|
||||
<h3>
|
||||
新增账号
|
||||
新增用户
|
||||
</h3>
|
||||
|
||||
<p>
|
||||
Create new user account.<br /><br />
|
||||
<br /><br />
|
||||
</p>
|
||||
|
||||
@if (!string.IsNullOrEmpty(Model.ErrorMessage))
|
||||
@@ -31,7 +31,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">
|
||||
<input type="file" id="Avatar" name="Avatar" class="form-control-file" onchange="fileCheck(this);" />
|
||||
</div>
|
||||
@@ -53,14 +53,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", placeholder = "not required" })
|
||||
<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">
|
||||
@@ -69,6 +61,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", placeholder = "not required" })
|
||||
<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">
|
||||
@@ -89,7 +89,7 @@
|
||||
<label for="Country" class="col-sm-2 col-form-label"><strong>@Html.LabelFor(m => m.AccountProfile.Country)</strong></label>
|
||||
<div class="col-sm-10">
|
||||
<select name="AccountProfile.Country" id="AccountProfile.Country" class="form-control">
|
||||
<option value="" style="color:#ccc !important;">Select a country</option>
|
||||
<option value="" style="color:#ccc !important;">选择一个国家</option>
|
||||
@foreach (var item in Model.Countries)
|
||||
{
|
||||
<option value="@item.Value" selected=@(Model.AccountProfile.Country == item.Value ? "selected" : null)>
|
||||
|
||||
Reference in New Issue
Block a user