Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsSuperUser)
            {
                Column1.Visible = false;
                Column2.AddCssClasses("wide");
            }

            if (!IsPostBack)
            {
                const string title = "Master Administration";
                Page.Title   = title;
                H1.InnerHtml = title;

                NoJurisdiction.CreateStateLinks("/admin/?state={StateCode}");
                NoJurisdiction.SetHead("Links to State Administration Pages");

                if (IsSuperUser)
                {
                    var sampleBallotDialogEnabled = DB.Vote.Master.GetPresentGetFutureSampleBallotsDialog(false);
                    var nagsEnabled = DonationNagsControl.GetIsNaggingEnabled(false);
                    if (!sampleBallotDialogEnabled || !nagsEnabled)
                    {
                        if (!sampleBallotDialogEnabled)
                        {
                            new HtmlP {
                                InnerText = "Ballot Choices Dialogs are disabled"
                            }
                        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Page.Title   = "Donation Nags and Ballot Choices Request Dialogs Control";
                H1.InnerHtml = "Donation Nags and Ballot Choices Request Dialogs Control";
                SampleBallotControl.SelectedValue =
                    DB.Vote.Master.GetPresentGetFutureSampleBallotsDialog(false) ? "T" : "F";
                NagControl.SelectedValue = DonationNagsControl.GetIsNaggingEnabled(false)
          ? "T"
          : "F";
            }

            BuildHtmlTable();
        }