Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

Register.cshtml

@model RegisterModel

@{
    Layout = "_ColumnsOne";

    //title
    NopHtml.AddTitleParts(T("PageTitle.Register").Text);
    //page class
    NopHtml.AppendPageCssClassParts("html-registration-page");
}

@T("Account.Register")

@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.RegisterTop, additionalData = Model })
@T("Account.YourPersonalDetails")
@if (Model.GenderEnabled) {
@if (Model.NeutralGenderEnabled) { }
} @if (Model.FirstNameEnabled) {
@if (Model.FirstNameRequired) { }
} @if (Model.LastNameEnabled) {
@if (Model.LastNameRequired) { }
} @if (Model.DateOfBirthEnabled) {
@if (Model.DateOfBirthRequired) { }
}
@if (Model.EnteringEmailTwice) {
} @if (Model.UsernamesEnabled) {
@if (Model.CheckUsernameAvailabilityEnabled) { @await Html.PartialAsync("_CheckUsernameAvailability") }
}
@if (Model.CompanyEnabled || Model.DisplayVatNumber) {
@T("Account.CompanyDetails")
@if (Model.CompanyEnabled) {
@if (Model.CompanyRequired) { }
} @if (Model.DisplayVatNumber) {
@T("Account.Fields.VatNumber.Note")
}
} @if (Model.StreetAddressEnabled || Model.StreetAddress2Enabled || Model.ZipPostalCodeEnabled || Model.CityEnabled || Model.CountyEnabled || Model.CountryEnabled) {
@T("Account.YourAddress")
@if (Model.StreetAddressEnabled) {
@if (Model.StreetAddressRequired) { }
} @if (Model.StreetAddress2Enabled) {
@if (Model.StreetAddress2Required) { }
} @if (Model.ZipPostalCodeEnabled) {
@if (Model.ZipPostalCodeRequired) { }
} @if (Model.CountyEnabled) {
@if (Model.CountyRequired) { }
} @if (Model.CityEnabled) {
@if (Model.CityRequired) { }
} @if (Model.CountryEnabled) {
@if (Model.CountryRequired) { }
} @if (Model.CountryEnabled && Model.StateProvinceEnabled) {
@if (Model.StateProvinceRequired) { }
}
} @if (Model.PhoneEnabled || Model.FaxEnabled) {
@T("Account.YourContactInformation")
@if (Model.PhoneEnabled) {
@if (Model.PhoneRequired) { }
} @if (Model.FaxEnabled) {
@if (Model.FaxRequired) { }
}
} @if (Model.NewsletterEnabled || Model.CustomerAttributes.Count > 0) {
@T("Account.Options")
@if (Model.NewsletterEnabled) {
} @if (Model.CustomerAttributes.Count > 0) { @await Html.PartialAsync("_CustomerAttributes", Model.CustomerAttributes) }
} @if (Model.AllowCustomersToSetTimeZone) {
@T("Account.Preferences")
}
@T("Account.YourPassword")
@if (Model.DisplayCaptcha) { } @if (Model.HoneypotEnabled) { @Html.Raw(Html.GenerateHoneypotInput()) }
@if (Model.AcceptPrivacyPolicyEnabled || Model.GdprConsents.Count > 0) {
@T("Account.UserAgreement")
@if (Model.AcceptPrivacyPolicyEnabled) { } @if (Model.GdprConsents.Count > 0) { foreach (var consent in Model.GdprConsents) { if (consent.IsRequired) { } } }
}
@await Component.InvokeAsync(typeof(ExternalMethodsViewComponent), "ExternalAuthentication")
@await Component.InvokeAsync(typeof(WidgetViewComponent), new { widgetZone = PublicWidgetZones.RegisterBottom, additionalData = Model })