public static HtmlString ToBadge(this Core.Entities.CampaignAccountStatus status) { var type = "primary"; if (status == CampaignAccountStatus.AccountRequest) { type = "light"; } else { type = "info"; } return(new HtmlString($"<span class='badge badge-{type}'>{status.ToDisplayName()}</span>")); }
public static HtmlString ToAgencyBadge(this Core.Entities.CampaignAccountStatus status) { var type = "primary"; if (status == CampaignAccountStatus.AccountRequest) { type = "light"; } else { type = "info"; } var text = status.ToDisplayName(); if (status == CampaignAccountStatus.AgencyRequest) { text = "Chờ thành viên phản hồi"; } return(new HtmlString($"<span class='badge badge-{type}'>{text}</span>")); }
public static HtmlString ToBadge(this Core.Entities.CampaignAccountStatus status) { var type = "primary"; if (status == CampaignAccountStatus.Finished) { type = "success"; } if (status == CampaignAccountStatus.AccountRequest) { type = "brand"; } if (status == CampaignAccountStatus.AgencyRequest) { type = "primary"; } if (status == CampaignAccountStatus.Confirmed) { type = "info"; } if (status == CampaignAccountStatus.SubmittedContent) { type = "accent"; } if (status == CampaignAccountStatus.DeclinedContent) { type = "focus"; } if (status == CampaignAccountStatus.ApprovedContent || status == CampaignAccountStatus.DeclinedContent) { type = "focus"; } if (status == CampaignAccountStatus.Canceled) { type = "warning"; } if (status == CampaignAccountStatus.NeedToCheckExcecuteCampaign) { type = "warning"; } if (status == CampaignAccountStatus.AgencyCanceled) { type = "danger"; } if (status == CampaignAccountStatus.Unfinished) { type = "danger"; } return(new HtmlString($"<span class='m-badge m-badge--{type} m-badge--wide'>{status.ToShowName()}</span>")); }