Exemplo n.º 1
0
        private void PopulateLabels()
        {
            Title = SiteUtils.FormatPageTitle(siteSettings, GalleryResources.EditImagePageTitle);

            heading.Text = GalleryResources.GalleryEditImageLabel;

            btnUpdate.Text = GalleryResources.GalleryEditUpdateButton;
            SiteUtils.SetButtonAccessKey(btnUpdate, GalleryResources.GalleryEditUpdateButtonAccessKey);

            ScriptConfig.EnableExitPromptForUnsavedContent = true;
            UIHelper.AddClearPageExitCode(btnUpdate);

            lnkCancel.Text = GalleryResources.GalleryEditCancelButton;

            btnDelete.Text = GalleryResources.GalleryEditDeleteButton;
            SiteUtils.SetButtonAccessKey(btnDelete, GalleryResources.GalleryEditDeleteButtonAccessKey);
            UIHelper.AddConfirmationDialogWithClearExitCode(btnDelete, GalleryResources.GalleryDeleteImageWarning);

            imgThumb.Src = Page.ResolveUrl("~/Data/SiteImages/1x1.gif");

            regexFile.ErrorMessage = GalleryResources.OnlyImageFilesAllowed;

            uploader.AddFilesText       = GalleryResources.SelectFilesButton;
            uploader.AddFileText        = GalleryResources.SelectFileButton;
            uploader.DropFilesText      = GalleryResources.DropFiles;
            uploader.DropFileText       = GalleryResources.DropFile;
            uploader.UploadButtonText   = GalleryResources.BulkUploadButton;
            uploader.UploadCompleteText = GalleryResources.UploadComplete;
            uploader.UploadingText      = GalleryResources.Uploading;
        }
Exemplo n.º 2
0
        private void PopulateLabels()
        {
            Title                     = SiteUtils.FormatPageTitle(siteSettings, LinkResources.EditLinkPageTitle);
            heading.Text              = LinkResources.EditLinksDetailsLabel;
            reqTitle.ErrorMessage     = LinkResources.LinksTitleRequiredHelp;
            reqUrl.ErrorMessage       = LinkResources.LinksUrlRequiredHelp;
            reqViewOrder.ErrorMessage = LinkResources.LinksViewOrderRequiredHelp;

            if (config.DescriptionOnly)
            {
                reqUrl.Enabled = false;
            }

            updateButton.Text = LinkResources.EditLinksUpdateButton;
            SiteUtils.SetButtonAccessKey(updateButton, LinkResources.EditLinksUpdateButtonAccessKey);
            UIHelper.AddClearPageExitCode(updateButton);
            ScriptConfig.EnableExitPromptForUnsavedContent = true;

            lnkCancel.Text = LinkResources.EditLinksCancelButton;

            deleteButton.Text = LinkResources.EditLinksDeleteButton;
            SiteUtils.SetButtonAccessKey(deleteButton, LinkResources.EditLinksDeleteButtonAccessKey);
            UIHelper.AddConfirmationDialogWithClearExitCode(deleteButton, LinkResources.LinksDeleteLinkWarning);

            ListItem listItem = ddProtocol.Items.FindByValue("~/");

            if (listItem != null)
            {
                listItem.Text = LinkResources.LinksEditRelativeLinkLabel;
            }

            fileBrowser.Text    = LinkResources.Browse;
            fileBrowser.ToolTip = LinkResources.Browse;
        }
Exemplo n.º 3
0
        private void PopulateLabels()
        {
            Title = SiteUtils.FormatPageTitle(siteSettings, string.Format(Resource.EditHtmlTitleFormat, GetModuleTitle(moduleId)));

            btnUpdate.Text = Resource.EditHtmlUpdateButton;
            SiteUtils.SetButtonAccessKey(btnUpdate, AccessKeys.EditHtmlUpdateButtonAccessKey);
            UIHelper.AddClearPageExitCode(btnUpdate);
            UIHelper.AddClearPageExitCode(btnUpdateDraft);
            UIHelper.AddClearPageExitCode(btnPublishDraft);
            ScriptConfig.EnableExitPromptForUnsavedContent = true;

            lnkCancel.Text = Resource.EditHtmlCancelButton;

            btnDelete.Text = Resource.EditHtmlDeleteButton;
            SiteUtils.SetButtonAccessKey(btnDelete, AccessKeys.EditHtmlDeleteButtonAccessKey);
            UIHelper.AddConfirmationDialogWithClearExitCode(btnDelete, Resource.HtmlDeleteContentWarning);
            edContent.WebEditor.ToolBar = ToolBar.FullWithTemplates;

            litVersionHistory.Text = Resource.ContentVersionHistory;

            grdHistory.Columns[0].HeaderText = Resource.CreatedDateGridHeader;
            grdHistory.Columns[1].HeaderText = Resource.ArchiveDateGridHeader;

            btnRestoreFromGreyBox.ImageUrl = Page.ResolveUrl("~/Data/SiteImages/1x1.gif");
            btnRestoreFromGreyBox.Attributes.Add("tabIndex", "-1");
            btnRestoreFromGreyBox.AlternateText = " ";

            btnDeleteHistory.Text = Resource.DeleteAllHistoryButton;
            UIHelper.AddConfirmationDialogWithClearExitCode(btnDeleteHistory, Resource.DeleteAllHistoryWarning);

            lnkCompareDraft.Text    = Resource.CompareDraftToLiveLink;
            lnkCompareDraft.ToolTip = Resource.CompareDraftToLiveTooltip;

            btnPublishDraft.Text = Resource.ContentManagerPublishContentLink;
        }
Exemplo n.º 4
0
        private void PopulateLabels()
        {
            Title = SiteUtils.FormatPageTitle(siteSettings, Resource.LoginPageContent);

            lnkAdminMenu.Text        = Resource.AdminMenuLink;
            lnkAdminMenu.NavigateUrl = SiteRoot + "/Admin/AdminMenu.aspx";

            lnkCurrentPage.Text        = Resource.LoginPageContent;
            lnkCurrentPage.NavigateUrl = SiteRoot + "/Admin/EditLoginInfo.aspx";

            heading.Text = Resource.LoginPageContent;

            btnSave.Text = Resource.SaveButton;
            UIHelper.AddClearPageExitCode(btnSave);
            ScriptConfig.EnableExitPromptForUnsavedContent = true;
        }
Exemplo n.º 5
0
        private void PopulateLabels()
        {
            Title        = SiteUtils.FormatPageTitle(siteSettings, ForumResources.ForumEditForumLabel);
            heading.Text = ForumResources.ForumEditForumLabel;

            // TODO: implement
            divIsModerated.Visible = false;
            divIsActive.Visible    = false;


            btnUpdate.Text = ForumResources.ForumEditUpdateButton;
            SiteUtils.SetButtonAccessKey(btnUpdate, ForumResources.ForumEditUpdateButtonAccessKey);

            ScriptConfig.EnableExitPromptForUnsavedContent = true;
            UIHelper.AddClearPageExitCode(btnUpdate);

            lnkCancel.Text        = ForumResources.ForumEditCancelButton;
            lnkCancel.NavigateUrl = SiteUtils.GetCurrentPageUrl();

            btnDelete.Text = ForumResources.ForumEditDeleteButton;
            SiteUtils.SetButtonAccessKey(btnDelete, ForumResources.ForumEditDeleteButtonAccessKey);
            UIHelper.AddConfirmationDialogWithClearExitCode(btnDelete, ForumResources.DeleteForumWarning);
        }
Exemplo n.º 6
0
        private void PopulateLabels()
        {
            Control c = Master.FindControl("Breadcrumbs");

            if (c != null)
            {
                BreadcrumbsControl crumbs = (BreadcrumbsControl)c;
                crumbs.ForceShowBreadcrumbs = true;
                crumbs.AddedCrumbs          = crumbs.ItemWrapperTop + "<a href='"
                                              + SiteRoot + "/WebStore/AdminDashboard.aspx?pageid=" + pageId.ToInvariantString() + "&amp;mid=" + moduleId.ToInvariantString()
                                              + "' class='unselectedcrumb'>" + WebStoreResources.StoreManagerLink
                                              + "</a>" + crumbs.ItemWrapperBottom
                                              + crumbs.Separator
                                              + crumbs.ItemWrapperTop + "<a href='"
                                              + SiteRoot + "/WebStore/AdminProduct.aspx?pageid=" + pageId.ToInvariantString() + "&amp;mid=" + moduleId.ToInvariantString()
                                              + "' class='unselectedcrumb'>" + WebStoreResources.ProductAdministrationLink
                                              + "</a>" + crumbs.ItemWrapperBottom;
            }

            Title = SiteUtils.FormatPageTitle(siteSettings, WebStoreResources.ProductEditHeading);

            heading.Text    = WebStoreResources.ProductEditHeading;
            btnSave.Text    = WebStoreResources.ProductUpdateButton;
            btnSave.ToolTip = WebStoreResources.ProductUpdateButton;
            UIHelper.AddClearPageExitCode(btnSave);
            ScriptConfig.EnableExitPromptForUnsavedContent = true;

            btnDelete.Text    = WebStoreResources.ProductDeleteButton;
            btnDelete.ToolTip = WebStoreResources.ProductDeleteButton;
            UIHelper.AddConfirmationDialogWithClearExitCode(btnDelete, WebStoreResources.ProductDeleteWarning);

            btnUpload.Text       = WebStoreResources.FileUploadButton;
            btnUploadTeaser.Text = WebStoreResources.FileUploadButton;
            btnDeleteTeaser.Text = WebStoreResources.DeleteButton;
            btnDeleteTeaser.Attributes.Add("OnClick", "return confirm('" + WebStoreResources.ProductDeleteTeaserWarning + "');");

            edAbstract.WebEditor.ToolBar = ToolBar.FullWithTemplates;
            edAbstract.WebEditor.Height  = Unit.Parse("350px");

            edDescription.WebEditor.ToolBar = ToolBar.FullWithTemplates;
            edDescription.WebEditor.Height  = Unit.Parse("350px");

            litSettingsTab.Text     = WebStoreResources.ProductSettingsTab;
            litAbstactTab.Text      = WebStoreResources.ProductAbstractTab;
            litDescriptionTab.Text  = WebStoreResources.ProductDescriptionTab;
            litFullfillmentTab.Text = WebStoreResources.ProductFullfillmentTypeLabel;
            litMetaTab.Text         = WebStoreResources.MetaDataTab;


            lnkFullfillment.HRef = "#" + tabFullfillment.ClientID;

            btnAddMeta.Text = WebStoreResources.AddMetaButton;
            grdContentMeta.Columns[0].HeaderText = string.Empty;
            grdContentMeta.Columns[1].HeaderText = WebStoreResources.ContentMetaNameLabel;
            grdContentMeta.Columns[2].HeaderText = WebStoreResources.ContentMetaMetaContentLabel;

            btnAddMetaLink.Text = WebStoreResources.AddMetaLinkButton;

            grdMetaLinks.Columns[0].HeaderText = string.Empty;
            grdMetaLinks.Columns[1].HeaderText = WebStoreResources.ContentMetaRelLabel;
            grdMetaLinks.Columns[2].HeaderText = WebStoreResources.ContentMetaMetaHrefLabel;


            productUploader.AddFileText         = WebStoreResources.SelectFileButton;
            productUploader.DropFileText        = WebStoreResources.DropProductFile;
            productUploader.UploadButtonText    = WebStoreResources.FileUploadButton;
            productUploader.UploadCompleteText  = WebStoreResources.UploadComplete;
            productUploader.UploadingText       = WebStoreResources.Uploading;
            productUploader.ErrorOcurredMessage = WebStoreResources.UploadErrorMessage;

            teaserUploader.AddFileText        = WebStoreResources.SelectFileButton;
            teaserUploader.DropFileText       = WebStoreResources.DropTeaserFile;
            teaserUploader.UploadButtonText   = WebStoreResources.FileUploadButton;
            teaserUploader.UploadCompleteText = WebStoreResources.UploadComplete;
            teaserUploader.UploadingText      = WebStoreResources.Uploading;
        }