@using WeApp @using WeApp.Configuration @using WeApp.Views.Shared.Modals @model WeApp.Models.Account.LoginFormViewModel @{ ViewBag.Title = L("LogIn"); } @section styles { } @section scripts { @if (ViewBag.IsMultiTenancyEnabled) { } }
@if (ViewBag.IsMultiTenancyEnabled) {
@L("CurrentTenant"): @if (Model.Tenant != null) { @Model.Tenant.TenancyName } else { @L("NotSelected") } (@L("Change"))
List tenantList = ViewBag.TenantList; var tenantModal = new ModalViewModel(L("ChangeTenant"), "", new ModalBodyViewModel(new List() { new Input("TenancyName", L("TenancyName")).SetSelectOptions(tenantList,isAddBlank:false) //.SetHelp(L("LeaveEmptyToSwitchToHost")) }, "TenantChangeForm"), "TenantChangeModal"); @section modal{ @Html.Partial("Modals/_Modal", tenantModal) } }
@* *@
@if (Model.IsSelfRegistrationAllowed) { }