@using TightWiki.Models @model TightWiki.Models.ViewModels.Profile.AccountProfileViewModel @{ Layout = "/Views/Shared/_Layout.cshtml"; }

简介

@*

This is your profile, do with it what you may.

*@ @if (!string.IsNullOrEmpty(Model.ErrorMessage)) {
@Html.Raw(Model.ErrorMessage)
} @if (!string.IsNullOrEmpty(Model.SuccessMessage)) {
@Html.Raw(Model.SuccessMessage)
} @using (Html.BeginForm(null, null, null, FormMethod.Post, true, new { action = $"{GlobalConfiguration.BasePath}{Context.Request.Path}", enctype = "multipart/form-data" })) { @Html.AntiForgeryToken()
@Html.HiddenFor(m => m.AccountProfile.UserId) @Html.HiddenFor(m => m.AccountProfile.Navigation)
@if (@Model.AccountProfile.Navigation != "") { }
@Html.ValidationMessageFor(m => m.AccountProfile.EmailAddress)
@Html.DisplayFor(m => m.AccountProfile.EmailAddress, new { @class = "form-control-plaintext" })
@Html.ValidationMessageFor(m => m.AccountProfile.AccountName)
@Html.TextBoxFor(m => m.AccountProfile.AccountName, new { @class = "form-control" })
@Html.ValidationMessageFor(m => m.AccountProfile.LastName)
@Html.TextBoxFor(m => m.AccountProfile.LastName, new { @class = "form-control" })
@Html.ValidationMessageFor(m => m.AccountProfile.FirstName)
@Html.TextBoxFor(m => m.AccountProfile.FirstName, new { @class = "form-control" })
@Html.ValidationMessageFor(m => m.AccountProfile.Role)
@Html.DisplayFor(m => m.AccountProfile.Role, new { @class = "form-control-plaintext" })
@Html.ValidationMessageFor(m => m.AccountProfile.Theme)
@Html.ValidationMessageFor(m => m.AccountProfile.Country)
@Html.ValidationMessageFor(m => m.AccountProfile.Language)
@Html.ValidationMessageFor(m => m.AccountProfile.TimeZone)
@Html.ValidationMessageFor(m => m.AccountProfile.Biography)
@Html.TextAreaFor(m => m.AccountProfile.Biography, new { @class = "form-control", style = "height:200px", Name = "Biography" })
}