@using System.Text.RegularExpressions @using Leica.Spider.BusinessCenter.Frontend.Models @using Leica.Spider.BusinessCenter.Frontend.Utils @using Leica.Spider.BusinessCenter.WCFInterfaces @model WcfUser @{ var currentPrivileges = Session.UserPrivileges; ViewBag.Title = Lang.Raw("IDS_SHELL_USER_PROFILE") + " - " + Model.UserName; ViewBag.currentMenuItem = "User"; ViewBag.subMenuItem = "userDetails"; var entries = ViewBag.UserDataEntries as UserContactFormEntry[]; var canEditEmailPreferences = !string.IsNullOrEmpty(Model.EmailAddress) && Regex.IsMatch(Model.EmailAddress, WcfUser.EmailValidationExpression); var emailNotificationEnabled = (Model.Preferences.NotificationChannels & NotificationChannels.Email) == NotificationChannels.Email; var restrictions = ViewBag.UserNameAndPasswordRestrictions as UserNameAndPasswordRestrictionsViewModel; } @section scripts { @Scripts.Render("~/bundles/User/ConsumerDetails") @Scripts.Render("~/bundles/PendingChanges") @Scripts.Render("~/bundles/ShowPassword") } @section styles { @Styles.Render("~/Areas/User/UserDetails") }

@Lang.Html("IDS_USER_PROFILE_CREDENTIALS_LABEL")

@{
@Lang.Html("IDS_USERS_VIEW_DF_SBCUSERNAME_TOOLTIP")
}
@{
@Lang.Html("IDS_USERS_VIEW_DF_SBCPASSWORD_TOOLTIP")
}
@if (Model != null) { } else { }
@Lang.Html("IDS_USERS_VIEW_DF_NTRIPUSERNAME_TOOLTIP")
@Lang.Html("IDS_USERS_VIEW_DF_NTRIPPASSWORD_TOOLTIP")

@Lang.Html("IDS_USER_PERSONAL_DATA")

@{ //mobile phone var mobilePhoneEntry = entries?.FirstOrDefault(e => e.Label == Constants.MobilePhone); if (mobilePhoneEntry != null && mobilePhoneEntry.IsPublished) {
} }
@{ // Company var companyEntry = entries?.FirstOrDefault(e => e.Id == 9); if (companyEntry != null && companyEntry.IsPublished) {
} //Picture var pictureEntry = entries?.FirstOrDefault(e => e.Id == 8); if (pictureEntry != null && pictureEntry.IsPublished) {
@if (Model != null && Model.Picture != null && Model.Picture.Length > 0) { var picture = Model.Picture; var imageSrc = $"data:image/png;base64,{Convert.ToBase64String(picture)}"; @Model.UserName } else { }
} }

@Lang.Html("IDS_USERS_PREFERENCES_NOTIFICATION_HEADER")

@Lang.Html("IDS_USERS_PREFERENCES_NOTIFICATION_HEADER_INFO")
@if (null != Model && Model.IsLoggedInToMobileApp && Application.IsSmartNetLicense) { var pushNotificationEnabled = (Model.Preferences.NotificationChannels & NotificationChannels.Mobile) == NotificationChannels.Mobile;
@Lang.Html("IDS_USERS_PREFERENCES_OPTION_MOBILE_TOOLTIP")
}

@Lang.Html("IDS_USERS_PREFERENCES_NTRIPCASTER_HEADER")