@using Leica.Spider.BusinessCenter.WCFInterfaces @using Leica.Spider.BusinessCenter.Frontend.Utils @model Leica.Spider.BusinessCenter.Frontend.Models.GroupSubscriptionDetailViewModel @{ ViewBag.Title = Lang.Raw("IDS_SUBSCRIPTIONS_DETAIL_GROUP_SUBSCRIPTION_HEADER") + " - " + Model.GroupSubscriptionId; UserPrivileges currentPrivilege = ViewBag.UserRole; var isEditAllowed = (currentPrivilege == UserPrivileges.MasterAdmin || currentPrivilege == UserPrivileges.DistributionChannelAdministrator) && Model.Status != (int) GroupSubscriptionStatus.Active && Application.IsClmValid; var isEditDisabledStr = !isEditAllowed ? " disabled" : ""; string statusLabel = ViewBag.SubscriptionStatusLabel; } @section styles { @Styles.Render("~/Styles/Admin/GroupSubscriptions/Details") } @section scripts { @Scripts.Render("~/Scripts/Admin/GroupSubscriptions/Details") }

@Lang.Html("IDS_SUBSCRIPTIONS_SUBSCRIPTION_DETAILS_HEADER")

@await Html.SubscriptionPackageLookupAsync(Model.PackageId, "Detail", Convert.ToDateTime(Model.StartDate).ToLongDateString())
@Model.GroupSubscriptionId
@if (currentPrivilege == UserPrivileges.MasterAdmin || currentPrivilege == UserPrivileges.SupportViewer) {
}
@statusLabel
@Model.CreatedByUser
@if (Model.Status == (int) GroupSubscriptionStatus.Active) { var m = new Tuple(Model.UserGroupId, Model.PackageId, Model.UserGroupName, false); } else {
@Lang.Html("IDS_GROUPSUBSCRIPTIONS_UPDATE_VIEW_MESSAGE_MEMBER_SUBSCRIPTIONS")
}