@using Microsoft.AspNetCore.Builder @using Microsoft.AspNetCore.Mvc.Localization @using Microsoft.Extensions.Options @model gehGassi.Web.Models.EditProfileViewModel @inject IViewLocalizer Localizer @inject IOptions Options @{ var cultureItems = Options.Value.SupportedCultures.Select(c => new SelectListItem { Value = c.Name, Text = c.NativeName }).ToList(); var timeZoneList = TimeZoneInfo.GetSystemTimeZones().Select(t => new SelectListItem { Text = t.DisplayName, Value = t.Id, Selected = Model != null && t.Id == Model.TimeZoneId }).ToList(); ViewData["Title"] = Localizer["Profile_Edit_Title"]; var image = string.Empty; if (!string.IsNullOrWhiteSpace(Model.Photo)) { image = "/file/documents/" + Model.Photo; } var twoFactorEnableStyle = "display: none;"; var twoFactorDisableStyle = "display: none;"; if (Model.TwoFactorEnabled) { twoFactorDisableStyle = ""; } else { twoFactorEnableStyle = ""; } } @section pageTitle {
@ViewData["Title"]
}
@Localizer["Profile_Edit_Desc"]
@if (!string.IsNullOrWhiteSpace(Model.Photo)) { } else { }
@Localizer["Button_Cancel"]
@Html.Hidden("jsTwoFactorEnableUrl", Url.Action("TwoFactorEnable", "Manage")) @Html.Hidden("jsTwoFactorDisableUrl", Url.Action("TwoFactorDisable", "Manage")) @Html.Hidden("jsUploadUrl", Url.Action("UploadTempFile", "Manage")) @Html.Hidden("jsRemoveUrl", Url.Action("RemoveTempFile", "Manage")) @section ScriptsExternal{ } @section Scripts{ } @section Css { }