@using Leica.Spider.BusinessCenter.Frontend.Utils @using Leica.Spider.BusinessCenter.WCFInterfaces @model List @{ var editStatus = true == ViewBag.editStatus; var subscriptions = Model; var isDealerAdmin = (UserPrivileges) ViewBag.UserRole == UserPrivileges.DealerAdministrator; } @{ for (var i = 0; i < subscriptions.Count; i++) { var gs = subscriptions[i]; var urlDetails = Url.Action("View", "GroupSubscriptions", new { packageId = gs.PackageId, userGroupId = gs.UserGroupId });
@(gs.GroupSubscriptionId)
@if (editStatus && !isDealerAdmin) { if (gs.Status == (int) GroupSubscriptionStatus.Pending) {
} }
@if (editStatus || gs.Status != (int) GroupSubscriptionStatus.Pending) { }
@{ var statusLbl = ""; switch (gs.Status) { case (int) GroupSubscriptionStatus.Active: statusLbl = "IDS_SUBSCRIPTION_STATUS_ACTIVE"; break; case (int) GroupSubscriptionStatus.Pending: statusLbl = "IDS_SUBSCRIPTION_STATUS_PENDING"; break; } }
(@Lang.Html("IDS_PACKAGES_VIEW_DF_NAME_LABEL"))
} }