@using WebsitePanel.WebDavPortal.Constants @using WebsitePanel.WebDavPortal.Resources @using WebsitePanel.WebDavPortal.UI.Routes @model WebsitePanel.WebDavPortal.Models.Account.UserProfile @{ Layout = "~/Views/Shared/_Layout.cshtml"; var passwordExpriationText = string.Empty; if (Model.PasswordExpirationDateTime == DateTime.MaxValue) { passwordExpriationText = string.Format(UI.PasswordNeverExpiresFormat, Html.RouteLink(UI.Here.ToLowerInvariant(), AccountRouteNames.PasswordChange)); } else { passwordExpriationText = string.Format(UI.PasswordExpirationFormat, Model.PasswordExpirationDateTime.ToString(Formats.DateFormatWithTime), Html.RouteLink(UI.Here.ToLowerInvariant(), AccountRouteNames.PasswordChange)); } }
@using (Html.BeginRouteForm(AccountRouteNames.UserProfile, FormMethod.Post, new { @class = "form-horizontal user-profile bs-val-styles", id = "user-profile-form" })) { @Html.HiddenFor(x => x.PasswordExpirationDateTime) @Html.HiddenFor(x => x.PrimaryEmailAddress) @Html.AntiForgeryToken() if (ViewData.ModelState.Any(x => x.Value.Errors.Any())) {
× @Html.ValidationSummary(false)
}
@Html.TextBoxFor(x => x.DisplayName, new { @class = "form-control", placeholder = UI.DisplayName })
@Html.TextBoxFor(x => x.FirstName, new { @class = "form-control", placeholder = UI.FirstName })
@Html.TextBoxFor(x => x.Initials, new { @class = "form-control", placeholder = UI.Initials })
@Html.TextBoxFor(x => x.LastName, new { @class = "form-control", placeholder = UI.LastName })
@Html.TextAreaFor(x => x.Notes, new { @class = "form-control", placeholder = UI.Notes })
@Html.TextBoxFor(x => x.ExternalEmail, new { @class = "form-control", placeholder = UI.ExternalEmail })
@Html.TextBoxFor(x => x.BusinessPhone, new { @class = "form-control", placeholder = UI.BusinessPhone }) @Html.ValidationMessageFor(x => x.BusinessPhone)
@Html.TextBoxFor(x => x.Fax, new { @class = "form-control", placeholder = UI.Fax }) @Html.ValidationMessageFor(x => x.Fax)
@Html.TextBoxFor(x => x.HomePhone, new { @class = "form-control", placeholder = UI.HomePhone }) @Html.ValidationMessageFor(x => x.HomePhone)
@Html.TextBoxFor(x => x.MobilePhone, new { @class = "form-control", placeholder = UI.MobilePhone }) @Html.ValidationMessageFor(x=>x.MobilePhone)
@Html.TextBoxFor(x => x.Pager, new { @class = "form-control", placeholder = UI.Pager }) @Html.ValidationMessageFor(x => x.Pager)
@Html.TextBoxFor(x => x.WebPage, new { @class = "form-control", placeholder = UI.WebPage })
@Html.TextBoxFor(x => x.Address, new { @class = "form-control", placeholder = UI.Address })
@Html.TextBoxFor(x => x.City, new { @class = "form-control", placeholder = UI.City })
@Html.TextBoxFor(x => x.State, new { @class = "form-control", placeholder = UI.State })
@Html.TextBoxFor(x => x.Zip, new { @class = "form-control", placeholder = UI.Zip })
@Html.EditorFor(x => x.Country)
}
@section scripts{ }