Exemplo n.º 1
0
        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>"));
        }
Exemplo n.º 2
0
        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>"));
        }
Exemplo n.º 3
0
        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>"));
        }