@model CustomerInfoModel @using SmartStore.Web.Models.Customer; @{ Layout = "~/Views/Shared/_Root.cshtml"; //title Html.AddTitleParts(T("PageTitle.Account").Text); } @if (Model.CountryEnabled && Model.StateProvinceEnabled) { }

@T("Account.CustomerInfo")

@using (Html.BeginForm()) { @Html.AntiForgeryToken()
@Html.ValidationSummary(true)
@T("Account.YourPersonalDetails")
@if (Model.GenderEnabled) {
@Html.LabelFor(model => model.Gender)
}
@Html.LabelFor(model => model.FirstName) @Html.EditorFor(model => model.FirstName) @Html.ValidationMessageFor(model => model.FirstName)
@Html.LabelFor(model => model.LastName) @Html.EditorFor(model => model.LastName) @Html.ValidationMessageFor(model => model.LastName)
@if (Model.DateOfBirthEnabled) { @Html.LabelFor(model => model.DateOfBirthDay)
@Html.DatePickerDropDowns(Html.FieldNameFor(x => x.DateOfBirthDay), Html.FieldNameFor(x => x.DateOfBirthMonth), Html.FieldNameFor(x => x.DateOfBirthYear), DateTime.Now.Year - 110, DateTime.Now.Year, Model.DateOfBirthDay, Model.DateOfBirthMonth, Model.DateOfBirthYear) @Html.ValidationMessageFor(model => model.DateOfBirthDay) @Html.ValidationMessageFor(model => model.DateOfBirthMonth) @Html.ValidationMessageFor(model => model.DateOfBirthYear)
}
@Html.LabelFor(model => model.Email) @Html.EditorFor(model => model.Email) @Html.ValidationMessageFor(model => model.Email)
@if (Model.UsernamesEnabled) { if (Model.AllowUsersToChangeUsernames) {
@Html.LabelFor(model => model.Username) @Html.EditorFor(model => model.Username) @Html.ValidationMessageFor(model => model.Username)
} else {
@Html.LabelFor(model => model.Username) @Model.Username
} }
if (Model.CompanyEnabled || Model.DisplayVatNumber) {
@T("Account.CompanyDetails")
@if (Model.CompanyEnabled) {
@Html.LabelFor(model => model.Company) @Html.EditorFor(model => model.Company) @Html.ValidationMessageFor(model => model.Company)
} @if (Model.DisplayVatNumber) {
@Html.LabelFor(model => model.VatNumber) @Html.EditorFor(model => model.VatNumber)

@T("Account.Fields.VatNumber.Status"): @Model.VatNumberStatusNote

@T("Account.Fields.VatNumber.Note")
}
} if (Model.StreetAddressEnabled || Model.StreetAddress2Enabled || Model.ZipPostalCodeEnabled || Model.CityEnabled || Model.CountryEnabled) {
@T("Account.YourAddress")
@if (Model.StreetAddressEnabled) {
@Html.LabelFor(model => model.StreetAddress) @Html.EditorFor(model => model.StreetAddress) @Html.ValidationMessageFor(model => model.StreetAddress)
} @if (Model.StreetAddress2Enabled) {
@Html.LabelFor(model => model.StreetAddress2) @Html.EditorFor(model => model.StreetAddress2) @Html.ValidationMessageFor(model => model.StreetAddress2)
} @if (Model.ZipPostalCodeEnabled) {
@Html.LabelFor(model => model.ZipPostalCode) @Html.EditorFor(model => model.ZipPostalCode) @Html.ValidationMessageFor(model => model.ZipPostalCode)
} @if (Model.CityEnabled) {
@Html.LabelFor(model => model.City) @Html.EditorFor(model => model.City) @Html.ValidationMessageFor(model => model.City)
} @if (Model.CountryEnabled) {
@Html.LabelFor(model => model.CountryId) @Html.DropDownList("CountryId", Model.AvailableCountries, new { data_native_menu = "false" })
} @if (Model.CountryEnabled && Model.StateProvinceEnabled) {
@Html.LabelFor(model => model.StateProvinceId) @Html.DropDownList("StateProvinceId", Model.AvailableStates, new { data_native_menu = "false" })
}
} if (Model.PhoneEnabled || Model.FaxEnabled) {
@T("Account.YourContactInformation")
@if (Model.PhoneEnabled) {
@Html.LabelFor(model => model.Phone) @Html.EditorFor(model => model.Phone) @Html.ValidationMessageFor(model => model.Phone)
} @if (Model.FaxEnabled) {
@Html.LabelFor(model => model.Fax) @Html.EditorFor(model => model.Fax) @Html.ValidationMessageFor(model => model.Fax)
}
} if (Model.NewsletterEnabled) {
@T("Account.Options")
@Html.LabelFor(model => model.Newsletter) @Html.EditorFor(model => model.Newsletter) @Html.ValidationMessageFor(model => model.Newsletter)
} if (Model.AllowCustomersToSetTimeZone || Model.SignatureEnabled) {
@T("Account.Preferences")
@if (Model.AllowCustomersToSetTimeZone) {
@Html.LabelFor(model => model.TimeZoneId) @Html.DropDownList("TimeZoneId", Model.AvailableTimeZones, new { data_native_menu = "false" }) @Html.ValidationMessageFor(model => model.TimeZoneId)
} @if (Model.SignatureEnabled) {
@Html.LabelFor(model => model.Signature) @Html.TextAreaFor(model => model.Signature, new { @class = "account-signature-text" })
}
}
}