public override void Execute()
        {
            WriteLiteral("\r\n");


            #line 13 "..\..\Views\Files\FileEditor.cshtml"

            var tagsTemplateViewModel = new TagsTemplateViewModel
            {
                TooltipDescription = MediaGlobalization.FileEditor_Dialog_AddTags_Tooltip_Description
            };
            var categoriesTemplateViewModel = new CategoryTemplateViewModel
            {
                TooltipDescription = MediaGlobalization.FileEditor_Dialog_Category_Tooltip_Description
            };


            #line default
            #line hidden
            WriteLiteral("\r\n<div");

            WriteLiteral(" class=\"bcms-scroll-window\"");

            WriteLiteral(">\r\n");

            WriteLiteral("    ");


            #line 24 "..\..\Views\Files\FileEditor.cshtml"
            Write(Html.TabbedContentMessagesBox());


            #line default
            #line hidden
            WriteLiteral("\r\n    <div");

            WriteLiteral(" class=\"bcms-padded-content bcms-clearfix\"");

            WriteLiteral(" id=\"bcms-file-manager-inner\"");

            WriteLiteral(" style=\"margin-top: 30px;\"");

            WriteLiteral(">\r\n");


            #line 26 "..\..\Views\Files\FileEditor.cshtml"


            #line default
            #line hidden

            #line 26 "..\..\Views\Files\FileEditor.cshtml"
            using (Html.BeginForm <FilesController>(f => f.FileEditor((FileViewModel)null), FormMethod.Post,
                                                    new
            {
                @class = "bcms-ajax-form",
                @enctype = "multipart/form-data",
                data_readonly = @Model.IsReadOnly.ToString().ToLower()
            }))
            {
            #line default
            #line hidden

            #line 34 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.HiddenFor(model => model.Id));


            #line default
            #line hidden

            #line 34 "..\..\Views\Files\FileEditor.cshtml"



            #line default
            #line hidden

            #line 35 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.HiddenFor(model => model.Version, new { @id = "image-version-field" }));


            #line default
            #line hidden

            #line 35 "..\..\Views\Files\FileEditor.cshtml"



            #line default
            #line hidden

            #line 36 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.HiddenFor(model => model.AccessControlEnabled));


            #line default
            #line hidden

            #line 36 "..\..\Views\Files\FileEditor.cshtml"



            #line default
            #line hidden

            #line 37 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.HiddenFor(model => model.Image.ImageId, new { data_bind = "value: image().id()" }));


            #line default
            #line hidden

            #line 37 "..\..\Views\Files\FileEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                ");


            #line 40 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.Tooltip(MediaGlobalization.FileEditor_Dialog_Title_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 41 "..\..\Views\Files\FileEditor.cshtml"
                Write(MediaGlobalization.FileEditor_Dialog_Title_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                <div");

                WriteLiteral(" class=\"bcms-input-box\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 43 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.TextBoxFor(f => f.Title, new { @class = "bcms-editor-field-box", @id = "Title", data_bind = "event: {change: onValueChange}" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                    ");


            #line 44 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.BcmsValidationMessageFor(f => f.Title));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n            </div>\r\n");


            #line 47 "..\..\Views\Files\FileEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                ");


            #line 49 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.Tooltip(MediaGlobalization.FileEditor_Dialog_PublicUrl_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 50 "..\..\Views\Files\FileEditor.cshtml"
                Write(MediaGlobalization.FileProperties_Dialog_PublicUrl);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                <div");

                WriteLiteral(" class=\"bcms-input-box\"");

                WriteLiteral(">\r\n                    <input");

                WriteLiteral(" class=\"bcms-editor-field-box bcms-editor-selectable-field-box\"");

                WriteLiteral(" type=\"text\"");

                WriteAttribute("value", Tuple.Create(" value=\"", 2636), Tuple.Create("\"", 2654)

            #line 52 "..\..\Views\Files\FileEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 2644), Tuple.Create <System.Object, System.Int32>(Model.Url

            #line default
            #line hidden
                                                                                                                 , 2644), false)
                               );

                WriteLiteral(" readonly=\"readonly\"");

                WriteLiteral(" />\r\n                </div>\r\n            </div>\r\n");


            #line 55 "..\..\Views\Files\FileEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                <b>");


            #line 57 "..\..\Views\Files\FileEditor.cshtml"
                Write(MediaGlobalization.FileEditor_Dialog_FileSize);


            #line default
            #line hidden
                WriteLiteral(":</b>\r\n                <div");

                WriteLiteral(" class=\"bcms-editing-text\"");

                WriteLiteral(" id=\"image-file-size\"");

                WriteLiteral(">");


            #line 58 "..\..\Views\Files\FileEditor.cshtml"
                Write(Model.FileSize);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n            </div>\r\n");


            #line 60 "..\..\Views\Files\FileEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                ");


            #line 62 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.Tooltip(MediaGlobalization.FileEditor_Dialog_Description_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 63 "..\..\Views\Files\FileEditor.cshtml"
                Write(MediaGlobalization.FileEditor_Dialog_Description);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                <div");

                WriteLiteral(" class=\"bcms-textarea-box\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 65 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.TextAreaFor(f => f.Description, new { @class = "bcms-editor-field-area", @id = "Description", data_bind = "event: {change: onValueChange}" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                    ");


            #line 66 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.BcmsValidationMessageFor(f => f.Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n            </div>\r\n");


            #line 69 "..\..\Views\Files\FileEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-categories-box-holder\"");

                WriteLiteral(" data-bind=\"with: categories\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                ");


            #line 71 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Category/CategoriesTemplate.cshtml", categoriesTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n            </div>\r\n");


            #line 73 "..\..\Views\Files\FileEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-tags-box-holder\"");

                WriteLiteral(" data-bind=\"with: tags\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                ");


            #line 75 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Tags/TagsTemplate.cshtml", tagsTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n            </div>\r\n");


            #line 77 "..\..\Views\Files\FileEditor.cshtml"

                if (Model.AccessControlEnabled)
                {
            #line default
            #line hidden

            #line 80 "..\..\Views\Files\FileEditor.cshtml"
                    Write(Html.Partial(RootModuleConstants.AccessControlTemplate));


            #line default
            #line hidden

            #line 80 "..\..\Views\Files\FileEditor.cshtml"
                }



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-page-images-holder\"");

                WriteLiteral(">\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 85 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.Tooltip(MediaGlobalization.FileEditor_Dialog_Image_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 86 "..\..\Views\Files\FileEditor.cshtml"
                Write(MediaGlobalization.FileEditor_Dialog_Image_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    <div");

                WriteLiteral(" class=\"bcms-uploaded-image\"");

                WriteLiteral(">\r\n                        <!-- ko if: image().url() -->\r\n                       " +
                             " <a");

                WriteLiteral(" class=\"bcms-remove-image\"");

                WriteLiteral(" data-bind=\"click: image().remove.bind(image())\"");

                WriteLiteral(">");


            #line 89 "..\..\Views\Files\FileEditor.cshtml"
                Write(RootGlobalization.Button_Remove);


            #line default
            #line hidden
                WriteLiteral("</a>\r\n                        <a");

                WriteLiteral(" data-bind=\"click: image().preview.bind(image())\"");

                WriteLiteral(">\r\n                            <img");

                WriteLiteral(" data-bind=\"attr: { src: image().thumbnailUrl(), alt: image().tooltip() }\"");

                WriteLiteral(" />\r\n                        </a>\r\n                        <!-- /ko -->\r\n        " +
                             "            </div>\r\n                    <div");

                WriteLiteral(" class=\"bcms-btn-small\"");

                WriteLiteral(" data-bind=\"click: image().select.bind(image())\"");

                WriteLiteral(">");


            #line 95 "..\..\Views\Files\FileEditor.cshtml"
                Write(MediaGlobalization.FileEditor_Dialog_Image_SelectButtonTitle);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                </div>\r\n            </div>\r\n");


            #line 98 "..\..\Views\Files\FileEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-media-reupload\"");

                WriteLiteral(" data-bind=\"click: reupload\"");

                WriteLiteral(">");


            #line 99 "..\..\Views\Files\FileEditor.cshtml"
                Write(MediaGlobalization.FileEditor_Dialog_Reupload_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");


            #line 100 "..\..\Views\Files\FileEditor.cshtml"



            #line default
            #line hidden

            #line 101 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.HiddenSubmit());


            #line default
            #line hidden

            #line 101 "..\..\Views\Files\FileEditor.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("    </div>\r\n</div>\r\n");
        }
Beispiel #2
0
        public override void Execute()
        {
            WriteLiteral("\r\n");


            #line 12 "..\..\Views\Widgets\EditServerControlWidget.cshtml"

            var categoriesTemplateViewModel = new CategoryTemplateViewModel
            {
                TooltipDescription = PagesGlobalization.EditPageProperties_BasicPropertiesTab_Category_Tooltip_Description
            };


            #line default
            #line hidden
            WriteLiteral("\r\n\r\n");


            #line 19 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
            if (Model == null)
            {
                return;
            }


            #line default
            #line hidden
            WriteLiteral("<div");

            WriteLiteral(" class=\"bcms-tab-header\"");

            WriteLiteral(">\r\n    <a");

            WriteLiteral(" class=\"bcms-tab bcms-tab-active\"");

            WriteLiteral(" data-name=\"#bcms-tab-1\"");

            WriteLiteral(">");


            #line 24 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
            Write(PagesGlobalization.EditWidget_BasicPropertiesTab_Title);


            #line default
            #line hidden
            WriteLiteral("</a>\r\n    <a");

            WriteLiteral(" class=\"bcms-tab\"");

            WriteLiteral(" data-name=\"#bcms-tab-2\"");

            WriteLiteral(">");


            #line 25 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
            Write(PagesGlobalization.EditWidget_OptionsTab_Title);


            #line default
            #line hidden
            WriteLiteral("</a>\r\n</div>\r\n<div");

            WriteLiteral(" class=\"bcms-scroll-window\"");

            WriteLiteral(">\r\n");

            WriteLiteral("    ");


            #line 28 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
            Write(Html.TabbedContentMessagesBox("bcms-edit-widget-messages"));


            #line default
            #line hidden
            WriteLiteral("\r\n");

            WriteLiteral("    ");


            #line 29 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
            Write(Html.Partial("Partial/WarnMessageAboutDraft", Model));


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 30 "..\..\Views\Widgets\EditServerControlWidget.cshtml"


            #line default
            #line hidden

            #line 30 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
            using (Html.BeginForm <WidgetsController>(c => c.EditServerControlWidget((string)null), FormMethod.Post, new { @id = "bcms-widget-form", @class = "bcms-ajax-form" }))
            {
            #line default
            #line hidden
                WriteLiteral("        <div");

                WriteLiteral(" id=\"bcms-tab-1\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(">\r\n            <div");

                WriteLiteral(" class=\"bcms-padded-content\"");

                WriteLiteral(">\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 35 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.Tooltip(PagesGlobalization.Widget_Title_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 36 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(PagesGlobalization.Widget_Title_Title);


            #line default
            #line hidden
                WriteLiteral(":</div>\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-box\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 38 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.TextBoxFor(model => model.Name, new { @class = "bcms-editor-field-box" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                        ");


            #line 39 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.Name));


            #line default
            #line hidden
                WriteLiteral("\r\n                    </div>\r\n                </div>\r\n\r\n");

                WriteLiteral("\r\n");

                WriteLiteral("\r\n");

                WriteLiteral("\r\n");

                WriteLiteral("\r\n");

                WriteLiteral("\r\n                \r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 50 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.Tooltip(PagesGlobalization.Widget_Url_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 51 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(PagesGlobalization.Widget_Url_Title);


            #line default
            #line hidden
                WriteLiteral(":</div>\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-box\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 53 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.TextBoxFor(model => model.Url, new { @class = "bcms-editor-field-box" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                        ");


            #line 54 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.Url));


            #line default
            #line hidden
                WriteLiteral("\r\n                    </div>\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-tags-box-holder\"");

                WriteLiteral(" data-bind=\"with: categories\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 59 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Category/CategoriesTemplate.cshtml", categoriesTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 63 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.Tooltip(PagesGlobalization.WidgetPreviewImageUrl_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 64 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(PagesGlobalization.WidgetPreviewImageUrl_Title);


            #line default
            #line hidden
                WriteLiteral(":</div>\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-box\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 66 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.TextBoxFor(model => model.PreviewImageUrl, new { @class = "bcms-editor-field-box" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                        ");


            #line 67 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.PreviewImageUrl));


            #line default
            #line hidden
                WriteLiteral("\r\n                    </div>\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 72 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.Tooltip(PagesGlobalization.WidgetPreviewImage_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 73 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(PagesGlobalization.WidgetPreviewImage_Title);


            #line default
            #line hidden
                WriteLiteral(":</div>\r\n\r\n                    <div");

                WriteLiteral(" class=\"bcms-preview-module-image\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" style=\"display: none;\"");

                WriteLiteral(">\r\n                            <img");

                WriteLiteral(" id=\"bcms-widget-preview-image\"");

                WriteAttribute("src", Tuple.Create(" src=\"", 4056), Tuple.Create("\"", 4084)

            #line 77 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                               , Tuple.Create(Tuple.Create("", 4062), Tuple.Create <System.Object, System.Int32>(Model.PreviewImageUrl

            #line default
            #line hidden
                                                                                                                 , 4062), false)
                               );

                WriteLiteral(" alt=\"\"");

                WriteLiteral(" />\r\n                        </div>\r\n                    </div>\r\n\r\n              " +
                             "  </div>\r\n            </div>\r\n        </div>\r\n");


            #line 84 "..\..\Views\Widgets\EditServerControlWidget.cshtml"



            #line default
            #line hidden
                WriteLiteral("        <div");

                WriteLiteral(" id=\"bcms-tab-2\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(">\r\n");

                WriteLiteral("            ");


            #line 86 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.Partial(PagesConstants.OptionsGridTemplate));


            #line default
            #line hidden
                WriteLiteral("\r\n        </div>\r\n");


            #line 88 "..\..\Views\Widgets\EditServerControlWidget.cshtml"



            #line default
            #line hidden

            #line 89 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.HiddenFor(model => model.Id, new { @id = "bcmsContentId" }));


            #line default
            #line hidden

            #line 89 "..\..\Views\Widgets\EditServerControlWidget.cshtml"



            #line default
            #line hidden

            #line 90 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.HiddenFor(model => model.Version, new { @id = "bcmsContentVersion" }));


            #line default
            #line hidden

            #line 90 "..\..\Views\Widgets\EditServerControlWidget.cshtml"



            #line default
            #line hidden

            #line 91 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.HiddenFor(modal => modal.DesirableStatus, new { @class = "bcms-content-desirable-status" }));


            #line default
            #line hidden

            #line 91 "..\..\Views\Widgets\EditServerControlWidget.cshtml"



            #line default
            #line hidden

            #line 92 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.HiddenFor(modal => modal.PreviewOnPageContentId, new { @class = "bcms-preview-page-content-id" }));


            #line default
            #line hidden

            #line 92 "..\..\Views\Widgets\EditServerControlWidget.cshtml"



            #line default
            #line hidden

            #line 93 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.HiddenSubmit());


            #line default
            #line hidden

            #line 93 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("</div>\r\n\r\n");
        }
Beispiel #3
0
        public override void Execute()
        {
            WriteLiteral("\r\n");

            WriteLiteral("\r\n");


            #line 40 "..\..\Views\Files\FileEditor.cshtml"

            var tagsTemplateViewModel = new TagsTemplateViewModel
            {
                TooltipDescription = MediaGlobalization.FileEditor_Dialog_AddTags_Tooltip_Description
            };
            var categoriesTemplateViewModel = new CategoryTemplateViewModel
            {
                TooltipDescription = MediaGlobalization.FileEditor_Dialog_Category_Tooltip_Description
            };


            #line default
            #line hidden
            WriteLiteral("\r\n\r\n<div");

            WriteLiteral(" class=\"bcms-modal-frame-holder\"");

            WriteLiteral(">\r\n");

            WriteLiteral("    ");


            #line 52 "..\..\Views\Files\FileEditor.cshtml"
            Write(Html.MessagesBox());


            #line default
            #line hidden
            WriteLiteral("\r\n\r\n    <div");

            WriteLiteral(" class=\"bcms-window-options\"");

            WriteLiteral(" id=\"bcms-file-manager-inner\"");

            WriteLiteral(">\r\n");


            #line 55 "..\..\Views\Files\FileEditor.cshtml"


            #line default
            #line hidden

            #line 55 "..\..\Views\Files\FileEditor.cshtml"
            using (Html.BeginForm <FilesController>(f => f.FileEditor((FileViewModel)null), FormMethod.Post,
                                                    new
            {
                @class = "bcms-ajax-form",
                @enctype = "multipart/form-data",
                data_readonly = @Model.IsReadOnly.ToString().ToLower()
            }))
            {
            #line default
            #line hidden

            #line 63 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.HiddenFor(model => model.Id));


            #line default
            #line hidden

            #line 63 "..\..\Views\Files\FileEditor.cshtml"



            #line default
            #line hidden

            #line 64 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.HiddenFor(model => model.Version, new { @id = "image-version-field" }));


            #line default
            #line hidden

            #line 64 "..\..\Views\Files\FileEditor.cshtml"



            #line default
            #line hidden

            #line 65 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.HiddenFor(model => model.AccessControlEnabled));


            #line default
            #line hidden

            #line 65 "..\..\Views\Files\FileEditor.cshtml"



            #line default
            #line hidden

            #line 66 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.HiddenFor(model => model.Image.ImageId, new { data_bind = "value: image().id()" }));


            #line default
            #line hidden

            #line 66 "..\..\Views\Files\FileEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-form-block-holder\"");

                WriteLiteral(">\r\n                <div>\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 71 "..\..\Views\Files\FileEditor.cshtml"
                Write(MediaGlobalization.FileEditor_Dialog_Title_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                        ");


            #line 72 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.Tooltip(MediaGlobalization.FileEditor_Dialog_Title_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 74 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.TextBoxFor(f => f.Title, new { @class = "bcms-field-text", @id = "Title", data_bind = "event: {change: onValueChange}" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                            ");


            #line 75 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.BcmsValidationMessageFor(f => f.Title));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n                    </div>\r\n\r\n                 " +
                             "   <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 80 "..\..\Views\Files\FileEditor.cshtml"
                Write(MediaGlobalization.FileProperties_Dialog_PublicUrl);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                        ");


            #line 81 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.Tooltip(MediaGlobalization.FileEditor_Dialog_PublicUrl_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n                            <input");

                WriteLiteral(" class=\"bcms-field-text bcms-editor-selectable-field-box\"");

                WriteLiteral(" type=\"text\"");

                WriteAttribute("value", Tuple.Create(" value=\"", 4073), Tuple.Create("\"", 4091)

            #line 83 "..\..\Views\Files\FileEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 4081), Tuple.Create <System.Object, System.Int32>(Model.Url

            #line default
            #line hidden
                                                                                                                 , 4081), false)
                               );

                WriteLiteral(" readonly=\"readonly\"");

                WriteLiteral(" />\r\n                        </div>\r\n                    </div>\r\n\r\n              " +
                             "      <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                        <b>");


            #line 88 "..\..\Views\Files\FileEditor.cshtml"
                Write(MediaGlobalization.FileEditor_Dialog_FileSize);


            #line default
            #line hidden
                WriteLiteral(":</b>\r\n                        <div");

                WriteLiteral(" class=\"bcms-editing-text\"");

                WriteLiteral(" id=\"image-file-size\"");

                WriteLiteral(">");


            #line 89 "..\..\Views\Files\FileEditor.cshtml"
                Write(Model.FileSize);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    </div>\r\n\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 93 "..\..\Views\Files\FileEditor.cshtml"
                Write(MediaGlobalization.FileEditor_Dialog_Description);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                        ");


            #line 94 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.Tooltip(MediaGlobalization.FileEditor_Dialog_Description_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-textarea-box\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 96 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.TextAreaFor(f => f.Description, new { @class = "bcms-field-textarea", @id = "Description", data_bind = "event: {change: onValueChange}" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                            ");


            #line 97 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.BcmsValidationMessageFor(f => f.Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n                    </div>\r\n\r\n                 " +
                             "   <div");

                WriteLiteral(" class=\"bcms-media-re-upload\"");

                WriteLiteral(" data-bind=\"click: reupload\"");

                WriteLiteral(">");


            #line 101 "..\..\Views\Files\FileEditor.cshtml"
                Write(MediaGlobalization.FileEditor_Dialog_Reupload_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                </div>\r\n\r\n                <div>\r\n                    <div" +
                             "");

                WriteLiteral(" class=\"bcms-thumb-container\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-thumb-box\"");

                WriteLiteral(">\r\n                            <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                                <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 108 "..\..\Views\Files\FileEditor.cshtml"
                Write(MediaGlobalization.FileEditor_Dialog_Image_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                                ");


            #line 109 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.Tooltip(MediaGlobalization.FileEditor_Dialog_Image_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                            </div>\r\n\r\n                            <div");

                WriteLiteral(" class=\"bcms-thumb-image\"");

                WriteLiteral(">\r\n                                <!-- ko if: image().url() -->\r\n               " +
                             "                 <div");

                WriteLiteral(" class=\"bcms-remove-image\"");

                WriteLiteral(" data-bind=\"click: image().remove.bind(image())\"");

                WriteLiteral(">");


            #line 114 "..\..\Views\Files\FileEditor.cshtml"
                Write(RootGlobalization.Button_Remove);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                                <div");

                WriteLiteral(" data-bind=\"click: image().preview.bind(image())\"");

                WriteLiteral(">\r\n                                    <img");

                WriteLiteral(" data-bind=\"attr: { src: image().thumbnailUrl(), alt: image().tooltip() }\"");

                WriteLiteral(" />\r\n                                </div>\r\n                                <!--" +
                             " /ko -->\r\n                                <!-- ko ifnot: image().url() -->\r\n    " +
                             "                            <svg");

                WriteLiteral(" class=\"bcms-grid-no-preview\"");

                WriteLiteral(" width=\"50\"");

                WriteLiteral(" height=\"50\"");

                WriteLiteral(" viewBox=\"-205 372 50 50\"");

                WriteLiteral(" enable-background=\"new -205 372 50 50\"");

                WriteLiteral(">\r\n                                    <g");

                WriteLiteral(" fill=\"#cdcdcd\"");

                WriteLiteral(">\r\n                                        <path");

                WriteLiteral(" d=\"m-205 422h50v-50h-50v50m2-48h46v46h-46v-46\"");

                WriteLiteral("></path>\r\n                                        <path");

                WriteLiteral(" d=\"m-164.3 406.2l1.4-1.4-11.5-11.5-7.7 7.6-3.6-3.6-11.5 11.5 1.4 1.4 10.1-10.1 1" +
                             "1.1 11.1 1.4-1.4-7.5-7.5 6.3-6.2 10.1 10.1\"");

                WriteLiteral("></path>\r\n                                        <path");

                WriteLiteral(" d=\"m-187.9 382.4c-2.8 0-5 2.2-5 5 0 2.8 2.2 5 5 5 2.8 0 5-2.2 5-5 0-2.8-2.2-5-5-" +
                             "5m0 2c1.7 0 3 1.4 3 3 0 1.7-1.3 3-3 3-1.6 0-3-1.3-3-3 0-1.7 1.3-3 3-3\"");

                WriteLiteral("></path>\r\n                                    </g>\r\n                             " +
                             "   </svg>\r\n                                <!-- /ko -->\r\n                       " +
                             "     </div>\r\n\r\n                            <div");

                WriteLiteral(" class=\"bcms-btn-selection\"");

                WriteLiteral(" data-bind=\"click: image().select.bind(image())\"");

                WriteLiteral(">");


            #line 130 "..\..\Views\Files\FileEditor.cshtml"
                Write(MediaGlobalization.FileEditor_Dialog_Image_SelectButtonTitle);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        </div>\r\n                    </div>\r\n\r\n");


            #line 134 "..\..\Views\Files\FileEditor.cshtml"


            #line default
            #line hidden

            #line 134 "..\..\Views\Files\FileEditor.cshtml"
                if (Model.AccessControlEnabled)
                {
            #line default
            #line hidden

            #line 136 "..\..\Views\Files\FileEditor.cshtml"
                    Write(Html.Partial(RootModuleConstants.AccessControlTemplate));


            #line default
            #line hidden

            #line 136 "..\..\Views\Files\FileEditor.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(" data-bind=\"with: categories\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 140 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Category/CategoriesTemplate.cshtml", categoriesTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n                    </div>\r\n\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(" data-bind=\"with: tags\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 144 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Tags/TagsTemplate.cshtml", tagsTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n                    </div>\r\n                </div>\r\n            </div>\r\n");


            #line 148 "..\..\Views\Files\FileEditor.cshtml"


            #line default
            #line hidden

            #line 148 "..\..\Views\Files\FileEditor.cshtml"
                Write(Html.HiddenSubmit());


            #line default
            #line hidden

            #line 148 "..\..\Views\Files\FileEditor.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("    </div>\r\n</div>\r\n");
        }
Beispiel #4
0
        public override void Execute()
        {
            WriteLiteral("\r\n");


            #line 13 "..\..\Views\Images\ImageEditor.cshtml"

            var tagsTemplateViewModel = new TagsTemplateViewModel
            {
                TooltipDescription = MediaGlobalization.FileEditor_Dialog_AddTags_Tooltip_Description
            };


            #line default
            #line hidden
            WriteLiteral("\r\n\r\n");


            #line 20 "..\..\Views\Images\ImageEditor.cshtml"

            var categoriesTemplateViewModel = new CategoryTemplateViewModel
            {
                TooltipDescription = MediaGlobalization.FileEditor_Dialog_Category_Tooltip_Description
            };


            #line default
            #line hidden
            WriteLiteral("\r\n<div");

            WriteLiteral(" class=\"bcms-scroll-window\"");

            WriteLiteral(">\r\n");

            WriteLiteral("    ");


            #line 27 "..\..\Views\Images\ImageEditor.cshtml"
            Write(Html.TabbedContentMessagesBox());


            #line default
            #line hidden
            WriteLiteral("\r\n    <div");

            WriteLiteral(" class=\"bcms-file-manager-inner bcms-clearfix\"");

            WriteLiteral(">\r\n");


            #line 29 "..\..\Views\Images\ImageEditor.cshtml"


            #line default
            #line hidden

            #line 29 "..\..\Views\Images\ImageEditor.cshtml"
            using (Html.BeginForm <ImagesController>(f => f.ImageEditor((ImageViewModel)null), FormMethod.Post, new { @class = "bcms-ajax-form", @enctype = "multipart/form-data" }))
            {
            #line default
            #line hidden

            #line 31 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenFor(model => model.Id));


            #line default
            #line hidden

            #line 31 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden

            #line 32 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenFor(model => model.Version, new { @id = "image-version-field" }));


            #line default
            #line hidden

            #line 32 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden

            #line 33 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenFor(model => model.CropCoordX1, new { @data_bind = "value: Math.floor(imageEditorViewModel.cropCoordX1())" }));


            #line default
            #line hidden

            #line 33 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden

            #line 34 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenFor(model => model.CropCoordX2, new { @data_bind = "value: Math.floor(imageEditorViewModel.cropCoordX2())" }));


            #line default
            #line hidden

            #line 34 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden

            #line 35 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenFor(model => model.CropCoordY1, new { @data_bind = "value: Math.floor(imageEditorViewModel.cropCoordY1())" }));


            #line default
            #line hidden

            #line 35 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden

            #line 36 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenFor(model => model.CropCoordY2, new { @data_bind = "value: Math.floor(imageEditorViewModel.cropCoordY2())" }));


            #line default
            #line hidden

            #line 36 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden

            #line 37 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenFor(model => model.ShouldOverride, new { @id = "image-override-field" }));


            #line default
            #line hidden

            #line 37 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                ");


            #line 40 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.Tooltip(MediaGlobalization.ImageEditor_Dialog_CropImage_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 42 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_CropImage_Title);


            #line default
            #line hidden
                WriteLiteral("\r\n\r\n                    <a");

                WriteLiteral(" class=\"bcms-icn-delete-link\"");

                WriteLiteral(" data-bind=\"visible: imageEditorViewModel.hasCrop(), click: imageEditorViewModel." +
                             "removeCrop\"");

                WriteLiteral(">Remove crop</a>\r\n                    <div");

                WriteLiteral(" class=\"bcms-crop-checkbox\"");

                WriteLiteral(">\r\n                        <input");

                WriteLiteral(" type=\"checkbox\"");

                WriteLiteral(" data-bind=\"checked: imageEditorViewModel.fit\"");

                WriteLiteral(" />\r\n                        <div");

                WriteLiteral(" class=\"bcms-edit-label\"");

                WriteLiteral(" data-bind=\"click: imageEditorViewModel.changeFit\"");

                WriteLiteral(">");


            #line 47 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_FitImage_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n");


            #line 51 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-croped-block\"");

                WriteLiteral(">\r\n                <img");

                WriteLiteral(" src=\"\"");

                WriteLiteral(" data-bind=\"style: { width: imageEditorViewModel.calculatedWidth() + \'px\', height" +
                             ": imageEditorViewModel.calculatedHeight() + \'px\' }\"");

                WriteLiteral(" />\r\n            </div>\r\n");


            #line 55 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-edit-file-info\"");

                WriteLiteral(">\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-file-info-text\"");

                WriteLiteral(">\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 59 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_PublicUrl);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    <div");

                WriteLiteral(" class=\"bcms-edit-file-info\"");

                WriteLiteral(">\r\n                        <input");

                WriteLiteral(" class=\"bcms-editor-field-box bcms-editor-selectable-field-box\"");

                WriteLiteral(" type=\"text\"");

                WriteAttribute("value", Tuple.Create(" value=\"", 3392), Tuple.Create("\"", 3410)

            #line 61 "..\..\Views\Images\ImageEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 3400), Tuple.Create <System.Object, System.Int32>(Model.Url

            #line default
            #line hidden
                                                                                                                 , 3400), false)
                               );

                WriteLiteral(" readonly=\"readonly\"");

                WriteLiteral(" />\r\n                    </div>\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 66 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.Tooltip(MediaGlobalization.ImageEditor_Dialog_Caption_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 67 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_Caption);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-box\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 69 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.TextBoxFor(f => f.Caption, new { @class = "bcms-editor-field-box", @id = "Caption", data_bind = "event: {change: onValueChange}" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                        ");


            #line 70 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.BcmsValidationMessageFor(f => f.Caption));


            #line default
            #line hidden
                WriteLiteral("\r\n                    </div>\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-file-info-text\"");

                WriteLiteral(" data-bind=\"with: titleEditorViewModel\"");

                WriteLiteral(" id=\"bcms-image-title-editor-box\"");

                WriteLiteral(">\r\n                    <b>");


            #line 75 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_ImageName_Title);


            #line default
            #line hidden
                WriteLiteral(":</b><div");

                WriteLiteral(" class=\"bcms-editing-text\"");

                WriteLiteral(" data-bind=\"text: oldTitle()\"");

                WriteLiteral("></div>\r\n                    <a");

                WriteLiteral(" class=\"bcms-file-link\"");

                WriteLiteral(" data-bind=\"click: open, visible: !isOpened()\"");

                WriteLiteral(">");


            #line 76 "..\..\Views\Images\ImageEditor.cshtml"
                Write(RootGlobalization.Button_Edit);


            #line default
            #line hidden
                WriteLiteral("</a>\r\n                    <div");

                WriteLiteral(" class=\"bcms-file-edit\"");

                WriteLiteral(" data-bind=\"style: { \'display\': isOpened() ? \'block\' : \'none\' }\"");

                WriteLiteral(" style=\"display: none;\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 78 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_ImageTitle_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-custom-input-box\"");

                WriteLiteral(" style=\"width: 255px;\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 80 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.TextBoxFor(f => f.Title, new
                {
                    @class     = "bcms-editor-field-box",
                    @id        = "bcms-image-title-editor",
                    @data_bind = "value: title, valueUpdate: 'afterkeydown', enterPress: save, escPress: close, event: {change: $parent.onValueChange}"
                }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                            ");


            #line 86 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.BcmsValidationMessageFor(f => f.Title));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n                            <div");

                WriteLiteral(" class=\"bcms-btn-small\"");

                WriteLiteral(" data-bind=\"click: save\"");

                WriteLiteral(">");


            #line 88 "..\..\Views\Images\ImageEditor.cshtml"
                Write(RootGlobalization.Button_Ok);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                            <div");

                WriteLiteral(" class=\"bcms-btn-links-small\"");

                WriteLiteral(" data-bind=\"click: close\"");

                WriteLiteral(">");


            #line 89 "..\..\Views\Images\ImageEditor.cshtml"
                Write(RootGlobalization.Button_Cancel);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    </div>\r\n                </div>\r\n\r\n                <di" +
                             "v");

                WriteLiteral(" class=\"bcms-file-info-text\"");

                WriteLiteral(">\r\n                    <b>");


            #line 94 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_FileSize);


            #line default
            #line hidden
                WriteLiteral(":</b>\r\n                    <div");

                WriteLiteral(" class=\"bcms-editing-text\"");

                WriteLiteral(" id=\"image-file-size\"");

                WriteLiteral(">");


            #line 95 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.FileSize);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-file-info-text\"");

                WriteLiteral(">\r\n                    <b>");


            #line 99 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_CroppedDimensions);


            #line default
            #line hidden
                WriteLiteral(":</b>\r\n                    <div");

                WriteLiteral(" class=\"bcms-editing-text\"");

                WriteLiteral(" id=\"image-file-size\"");

                WriteLiteral(" data-bind=\"text: imageEditorViewModel.croppedWidthAndHeight()\"");

                WriteLiteral(">");


            #line 100 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.CroppedWidth);


            #line default
            #line hidden
                WriteLiteral(" x ");


            #line 100 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.CroppedHeight);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-file-info-text\"");

                WriteLiteral(" data-bind=\"with: imageEditorViewModel\"");

                WriteLiteral(" id=\"bcms-image-dimensions-editor-box\"");

                WriteLiteral(">\r\n                    <b>");


            #line 104 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_Dimensions);


            #line default
            #line hidden
                WriteLiteral(":</b>\r\n                    <div");

                WriteLiteral(" class=\"bcms-editing-text\"");

                WriteLiteral(" data-bind=\"text: widthAndHeight()\"");

                WriteLiteral(">");


            #line 105 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.ImageWidth);


            #line default
            #line hidden
                WriteLiteral(" x ");


            #line 105 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.ImageHeight);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    <a");

                WriteLiteral(" class=\"bcms-file-link\"");

                WriteLiteral(" data-bind=\"click: open, visible: !isOpened()\"");

                WriteLiteral(">");


            #line 106 "..\..\Views\Images\ImageEditor.cshtml"
                Write(RootGlobalization.Button_Edit);


            #line default
            #line hidden
                WriteLiteral("</a>\r\n                    <div");

                WriteLiteral(" class=\"bcms-file-edit\"");

                WriteLiteral(" data-bind=\"style: { \'display\': isOpened() ? \'block\' : \'none\' }\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 109 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_ChangeSize_Title);


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n                        <span>");


            #line 111 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_ChangeSize_Width);


            #line default
            #line hidden
                WriteLiteral(":</span>\r\n                        <div");

                WriteLiteral(" class=\"bcms-custom-input-box\"");

                WriteLiteral(" style=\"width: 75px;\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 113 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.TextBoxFor(f => f.ImageWidth, new
                {
                    @class     = "bcms-editor-field-box",
                    @id        = "image-width",
                    @data_bind = "value: width, valueUpdate: 'afterkeydown', enterPress: save, escPress: close, event: { change: changeHeight }"
                }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                            ");


            #line 119 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.BcmsValidationMessageFor(f => f.ImageWidth));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n                        <span>");


            #line 121 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_ChangeSize_Height);


            #line default
            #line hidden
                WriteLiteral(":</span>\r\n                        <div");

                WriteLiteral(" class=\"bcms-custom-input-box\"");

                WriteLiteral(" style=\"width: 75px;\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 123 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.TextBoxFor(f => f.ImageHeight, new
                {
                    @class     = "bcms-editor-field-box",
                    @id        = "image-height",
                    @data_bind = "value: height, valueUpdate: 'afterkeydown', enterPress: save, escPress: close, event: { change: changeWidth }"
                }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                            ");


            #line 129 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.BcmsValidationMessageFor(f => f.ImageHeight));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n\r\n                        <div");

                WriteLiteral(" class=\"bcms-btn-small\"");

                WriteLiteral(" data-bind=\"click: save\"");

                WriteLiteral(">");


            #line 132 "..\..\Views\Images\ImageEditor.cshtml"
                Write(RootGlobalization.Button_Ok);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-btn-links-small\"");

                WriteLiteral(" data-bind=\"click: close\"");

                WriteLiteral(">");


            #line 133 "..\..\Views\Images\ImageEditor.cshtml"
                Write(RootGlobalization.Button_Cancel);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        <a");

                WriteLiteral(" data-bind=\"click: restoreOriginalSize\"");

                WriteLiteral(">");


            #line 134 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_RestoreOriginalSize_Title);


            #line default
            #line hidden
                WriteLiteral("</a>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n");


            #line 138 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-file-alignment\"");

                WriteLiteral(">\r\n                <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 140 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_AligmentTitle);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                <div");

                WriteLiteral(" class=\"bcms-alignment-controls\"");

                WriteLiteral(">\r\n                    <div");

                WriteAttribute("class", Tuple.Create(" class=\"", 9074), Tuple.Create("\"", 9171)
                               , Tuple.Create(Tuple.Create("", 9082), Tuple.Create("bcms-align-center", 9082), true)

            #line 142 "..\..\Views\Images\ImageEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 9099), Tuple.Create <System.Object, System.Int32>(Model.ImageAlign == MediaImageAlign.Center ? "-active" : string.Empty

            #line default
            #line hidden
                                                                                                                 , 9099), false)
                               );

                WriteLiteral(">\r\n                        <input");

                WriteLiteral(" type=\"radio\"");

                WriteLiteral(" name=\"ImageAlign\"");

                WriteAttribute("value", Tuple.Create(" value=\"", 9236), Tuple.Create("\"", 9274)

            #line 143 "..\..\Views\Images\ImageEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 9244), Tuple.Create <System.Object, System.Int32>((int)MediaImageAlign.Center

            #line default
            #line hidden
                                                                                                                 , 9244), false)
                               );

                WriteLiteral(" ");


            #line 143 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.ImageAlign == MediaImageAlign.Center ? "checked" : string.Empty);


            #line default
            #line hidden
                WriteLiteral(" data-bind=\"checked: imageAlign\" />\r\n                    </div>\r\n                " +
                             "    <div");

                WriteAttribute("class", Tuple.Create(" class=\"", 9437), Tuple.Create("\"", 9530)
                               , Tuple.Create(Tuple.Create("", 9445), Tuple.Create("bcms-align-left", 9445), true)

            #line 145 "..\..\Views\Images\ImageEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 9460), Tuple.Create <System.Object, System.Int32>(Model.ImageAlign == MediaImageAlign.Left ? "-active" : string.Empty

            #line default
            #line hidden
                                                                                                                 , 9460), false)
                               );

                WriteLiteral(">\r\n                        <input");

                WriteLiteral(" type=\"radio\"");

                WriteLiteral(" name=\"ImageAlign\"");

                WriteAttribute("value", Tuple.Create(" value=\"", 9595), Tuple.Create("\"", 9631)

            #line 146 "..\..\Views\Images\ImageEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 9603), Tuple.Create <System.Object, System.Int32>((int)MediaImageAlign.Left

            #line default
            #line hidden
                                                                                                                 , 9603), false)
                               );

                WriteLiteral(" ");


            #line 146 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.ImageAlign == MediaImageAlign.Left ? "checked" : string.Empty);


            #line default
            #line hidden
                WriteLiteral(" data-bind=\"checked: imageAlign\" />\r\n                    </div>\r\n                " +
                             "    <div");

                WriteAttribute("class", Tuple.Create(" class=\"", 9792), Tuple.Create("\"", 9887)
                               , Tuple.Create(Tuple.Create("", 9800), Tuple.Create("bcms-align-right", 9800), true)

            #line 148 "..\..\Views\Images\ImageEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 9816), Tuple.Create <System.Object, System.Int32>(Model.ImageAlign == MediaImageAlign.Right ? "-active" : string.Empty

            #line default
            #line hidden
                                                                                                                 , 9816), false)
                               );

                WriteLiteral(">\r\n                        <input");

                WriteLiteral(" type=\"radio\"");

                WriteLiteral(" name=\"ImageAlign\"");

                WriteAttribute("value", Tuple.Create(" value=\"", 9952), Tuple.Create("\"", 9989)

            #line 149 "..\..\Views\Images\ImageEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 9960), Tuple.Create <System.Object, System.Int32>((int)MediaImageAlign.Right

            #line default
            #line hidden
                                                                                                                 , 9960), false)
                               );

                WriteLiteral(" ");


            #line 149 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.ImageAlign == MediaImageAlign.Right ? "checked" : string.Empty);


            #line default
            #line hidden
                WriteLiteral(" data-bind=\"checked: imageAlign\" />\r\n                    </div>\r\n                " +
                             "</div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 154 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.Tooltip(MediaGlobalization.ImageEditor_Dialog_Description_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 155 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_Description);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    <div");

                WriteLiteral(" class=\"bcms-textarea-box\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 157 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.TextAreaFor(f => f.Description, new { @class = "bcms-editor-field-area", @id = "Description", @style = "width: 380px;", data_bind = "event: {change: onValueChange}" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                        ");


            #line 158 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.BcmsValidationMessageFor(f => f.Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    </div>\r\n                </div>\r\n\r\n            </div>\r\n");


            #line 163 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-categories-box-holder\"");

                WriteLiteral(" data-bind=\"with: categories\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                ");


            #line 165 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Category/CategoriesTemplate.cshtml", categoriesTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n            </div>\r\n");


            #line 167 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-media-tags-box-holder bcms-clearfix\"");

                WriteLiteral(" data-bind=\"with: tags\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                ");


            #line 169 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Tags/TagsTemplate.cshtml", tagsTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n            </div>\r\n");


            #line 171 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-media-reupload\"");

                WriteLiteral(" data-bind=\"click: reupload\"");

                WriteLiteral(">");


            #line 172 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_Reupload_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");


            #line 173 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden

            #line 174 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenSubmit());


            #line default
            #line hidden

            #line 174 "..\..\Views\Images\ImageEditor.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("    </div>\r\n</div>\r\n");
        }
Beispiel #5
0
        public override void Execute()
        {
            WriteLiteral("\r\n");

            WriteLiteral("\r\n");

            WriteLiteral("\r\n");

            WriteLiteral("\r\n");

            WriteLiteral("\r\n");


            #line 20 "..\..\Views\Blog\EditBlogPost.cshtml"
            if (Model == null)
            {
                return;
            }


            #line default
            #line hidden

            #line 24 "..\..\Views\Blog\EditBlogPost.cshtml"

            var canEdit = (ViewContext.Controller as CmsControllerBase).SecurityService.IsAuthorized(RootModuleConstants.UserRoles.EditContent);
            var tagsTemplateViewModel = new TagsTemplateViewModel
            {
                TooltipDescription = BlogGlobalization.EditBlockPost_Tags_Tooltip_Description
            };
            var categoriesTemplateViewModel = new CategoryTemplateViewModel
            {
                TooltipDescription = BlogGlobalization.EditBlockPost_Category_Tooltip_Description
            };


            #line default
            #line hidden
            WriteLiteral("\r\n\r\n<div");

            WriteLiteral(" class=\"bcms-scroll-window\"");

            WriteLiteral(">\r\n");

            WriteLiteral("    ");


            #line 37 "..\..\Views\Blog\EditBlogPost.cshtml"
            Write(Html.TabbedContentMessagesBox());


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 38 "..\..\Views\Blog\EditBlogPost.cshtml"


            #line default
            #line hidden

            #line 38 "..\..\Views\Blog\EditBlogPost.cshtml"
            if (Model.CurrentStatus == ContentStatus.Draft)
            {
            #line default
            #line hidden
                WriteLiteral("        <div");

                WriteLiteral(" class=\"bcms-messages-type-1\"");

                WriteLiteral(">\r\n            <ul");

                WriteLiteral(" class=\"bcms-success-messages\"");

                WriteLiteral(" style=\"display: none\"");

                WriteLiteral(">\r\n            </ul>\r\n            <ul");

                WriteLiteral(" class=\"bcms-info-messages\"");

                WriteLiteral(" style=\"display: none\"");

                WriteLiteral(">\r\n            </ul>\r\n            <ul");

                WriteLiteral(" class=\"bcms-warning-messages\"");

                WriteLiteral(">\r\n                <li>\r\n");

                WriteLiteral("                    ");


            #line 47 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(PagesGlobalization.EditPageContent_Messages_DraftStatusWarnMessage);


            #line default
            #line hidden
                WriteLiteral("\r\n");


            #line 48 "..\..\Views\Blog\EditBlogPost.cshtml"


            #line default
            #line hidden

            #line 48 "..\..\Views\Blog\EditBlogPost.cshtml"
                if (Model.HasPublishedContent && canEdit)
                {
            #line default
            #line hidden

            #line 50 "..\..\Views\Blog\EditBlogPost.cshtml"
                    Write(Html.Raw(PagesGlobalization.EditPageContent_Messages_DraftStatusWarnMessage_Destroy));


            #line default
            #line hidden

            #line 50 "..\..\Views\Blog\EditBlogPost.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("                </li>\r\n            </ul>\r\n            <ul");

                WriteLiteral(" class=\"bcms-error-messages\"");

                WriteLiteral(" style=\"display: none\"");

                WriteLiteral(">\r\n            </ul>\r\n        </div>\r\n");


            #line 57 "..\..\Views\Blog\EditBlogPost.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("    ");


            #line 58 "..\..\Views\Blog\EditBlogPost.cshtml"
            using (Html.BeginForm <BlogController>(c => c.SaveBlogPost(null), FormMethod.Post, new {
                @id = "bcms-blog-post-form",
                @class = "bcms-ajax-form",
                data_readonly = Model.IsReadOnly.ToString().ToLower()
            }))
            {
            #line default
            #line hidden

            #line 64 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.HiddenFor(model => model.Id, new { data_bind = "value: id()" }));


            #line default
            #line hidden

            #line 64 "..\..\Views\Blog\EditBlogPost.cshtml"



            #line default
            #line hidden

            #line 65 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.HiddenFor(model => model.Version, new { data_bind = "value: version()" }));


            #line default
            #line hidden

            #line 65 "..\..\Views\Blog\EditBlogPost.cshtml"



            #line default
            #line hidden

            #line 66 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.HiddenFor(model => model.Image.ImageId, new { data_bind = "value: image().id()" }));


            #line default
            #line hidden

            #line 66 "..\..\Views\Blog\EditBlogPost.cshtml"



            #line default
            #line hidden

            #line 67 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.HiddenFor(modal => modal.DesirableStatus, new { @class = "bcms-content-desirable-status" }));


            #line default
            #line hidden

            #line 67 "..\..\Views\Blog\EditBlogPost.cshtml"



            #line default
            #line hidden

            #line 68 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.HiddenFor(model => model.EditInSourceMode, new { @data_bind = "value: editInSourceMode()" }));


            #line default
            #line hidden

            #line 68 "..\..\Views\Blog\EditBlogPost.cshtml"



            #line default
            #line hidden

            #line 69 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.HiddenFor(modal => modal.IsUserConfirmed, new { @id = "bcms-user-confirmed-region-deletion" }));


            #line default
            #line hidden

            #line 69 "..\..\Views\Blog\EditBlogPost.cshtml"



            #line default
            #line hidden
                WriteLiteral("        <div");

                WriteLiteral(" class=\"bcms-new-blog-content\"");

                WriteLiteral(">\r\n\r\n            <div");

                WriteLiteral(" class=\"bcms-blog-left\"");

                WriteLiteral(">\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 76 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Tooltip(BlogGlobalization.EditBlockPost_Title_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 77 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlockPost_Title_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-box\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 79 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.TextBoxFor(m => m.Title, new { @style = "width: 510px;", @class = "bcms-editor-field-box", @id = "bcms-editor-blog-title" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                        ");


            #line 80 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.Title));


            #line default
            #line hidden
                WriteLiteral("\r\n                    </div>\r\n                </div>\r\n\r\n");

                WriteLiteral("                ");


            #line 84 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Partial("Partial/AddNewBlogEditPermalink"));


            #line default
            #line hidden
                WriteLiteral("\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 87 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Tooltip(BlogGlobalization.EditBlockPost_IntroText_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 88 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlockPost_IntroText_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    <div");

                WriteLiteral(" class=\"bcms-textarea-box\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 90 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.TextAreaFor(m => m.IntroText, new { @style = "width: 510px; height: 170px;", @class = "bcms-editor-field-area" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                        ");


            #line 91 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.IntroText));


            #line default
            #line hidden
                WriteLiteral("\r\n                    </div>\r\n                </div>\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(" id=\"bcms-blog-content-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 95 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Tooltip(BlogGlobalization.EditBlockPost_Content_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 96 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlockPost_Content_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                    ");


            #line 97 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.TextAreaFor(model => model.Content, new { @id = "bcms-contenthtml" }));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n\r\n            </div>\r\n            <div");

                WriteLiteral(" class=\"bcms-blog-right\"");

                WriteLiteral(">\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-blog-dates-holder\"");

                WriteLiteral(">\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-field-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 105 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Tooltip(BlogGlobalization.EditBlockPost_LiveDates_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 106 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlockPost_LiveFrom_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-date-input-box\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 108 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.DateTextBoxFor(model => model.LiveFromDate, Model.LiveFromDate, new Dictionary <string, object> {
                    { "class", "bcms-editor-field-box bcms-datepicker" }, { "style", "width: 127px;" }
                }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                            ");


            #line 109 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.LiveFromDate));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n                    </div>\r\n                   " +
                             " <div");

                WriteLiteral(" class=\"bcms-input-field-holder\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 113 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlockPost_LiveTo_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-date-input-box\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 115 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.DateTextBoxFor(model => model.LiveToDate, Model.LiveToDate, new Dictionary <string, object> {
                    { "class", "bcms-editor-field-box bcms-datepicker" }, { "style", "width: 127px;" }
                }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                            ");


            #line 116 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.LiveToDate));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n                    </div>\r\n                </d" +
                             "iv>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-input-field-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 122 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Tooltip(BlogGlobalization.EditBlockPost_FeaturedImage_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 123 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlockPost_FeaturedImage_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    <div");

                WriteLiteral(" class=\"bcms-uploaded-image\"");

                WriteLiteral(">\r\n                        <!-- ko if: image().url() -->\r\n                       " +
                             " <a");

                WriteLiteral(" class=\"bcms-remove-image\"");

                WriteLiteral(" data-bind=\"");


            #line 126 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(canEdit ? "click: image().remove.bind(image())" : string.Empty);


            #line default
            #line hidden
                WriteLiteral("\"");

                WriteLiteral(">");


            #line 126 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(RootGlobalization.Button_Remove);


            #line default
            #line hidden
                WriteLiteral("</a>\r\n                        <a");

                WriteLiteral(" data-bind=\"click: image().preview.bind(image())\"");

                WriteLiteral(">\r\n                            <img");

                WriteLiteral(" data-bind=\"attr: { src: image().thumbnailUrl(), alt: image().tooltip() }\"");

                WriteLiteral(" /></a>\r\n                        <!-- /ko -->\r\n                    </div>\r\n      " +
                             "              <div");

                WriteLiteral(" class=\"bcms-upload-info\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-upload-info-text\"");

                WriteLiteral(">");


            #line 132 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlockPost_FeaturedImage_Description);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-btn-small\"");

                WriteLiteral(" data-bind=\"");


            #line 133 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(canEdit ? "click: image().select.bind(image())" : string.Empty);


            #line default
            #line hidden
                WriteLiteral("\"");

                WriteLiteral(">");


            #line 133 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlockPost_SelectImage_Button_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    </div>\r\n                </div>\r\n\r\n                <di" +
                             "v");

                WriteLiteral(" class=\"bcms-input-field-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 138 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Tooltip(BlogGlobalization.EditBlockPost_Author_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 139 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlockPost_Author_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                    ");


            #line 140 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.DropDownListFor(model => model.AuthorId, Model.Authors.ToSelectList(Model.AuthorId), string.Empty, new { @class = "bcms-global-select", @style = "width: 245px;" }));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-blog-categories-holder\"");

                WriteLiteral(" data-bind=\"with: categories\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 144 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Category/CategoriesTemplate.cshtml", categoriesTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-blog-tags-holder\"");

                WriteLiteral(" data-bind=\"with: tags\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 148 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Tags/TagsTemplate.cshtml", tagsTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n            </div>\r\n        </div>\r\n");


            #line 152 "..\..\Views\Blog\EditBlogPost.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("</div>\r\n");
        }
Beispiel #6
0
        public override void Execute()
        {
            WriteLiteral("\r\n");


            #line 11 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            if (Model == null)
            {
                return;
            }


            #line default
            #line hidden

            #line 15 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"

            var categoriesTemplateViewModel = new CategoryTemplateViewModel
            {
                TooltipDescription = PagesGlobalization.EditPageProperties_BasicPropertiesTab_Category_Tooltip_Description
            };


            #line default
            #line hidden
            WriteLiteral("\r\n<div");

            WriteLiteral(" class=\"bcms-tab-header\"");

            WriteLiteral(">\r\n    <a");

            WriteLiteral(" class=\"bcms-tab-item bcms-active\"");

            WriteLiteral(" data-name=\"#bcms-tab-1\"");

            WriteLiteral(">");


            #line 22 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            Write(PagesGlobalization.EditWidget_BasicPropertiesTab_Title);


            #line default
            #line hidden
            WriteLiteral("</a>\r\n    <a");

            WriteLiteral(" class=\"bcms-tab-item\"");

            WriteLiteral(" data-name=\"#bcms-tab-2\"");

            WriteLiteral(">");


            #line 23 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            Write(PagesGlobalization.EditWidget_OptionsTab_Title);


            #line default
            #line hidden
            WriteLiteral("</a>\r\n    <a");

            WriteLiteral(" class=\"bcms-tab-item\"");

            WriteLiteral(" data-name=\"#bcms-tab-3\"");

            WriteLiteral(">");


            #line 24 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            Write(PagesGlobalization.EditWidget_AdvancedOptionsTab_Title);


            #line default
            #line hidden
            WriteLiteral("</a>\r\n</div>\r\n\r\n<div");

            WriteLiteral(" class=\"bcms-scroll-window\"");

            WriteLiteral(">\r\n");

            WriteLiteral("    ");


            #line 28 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            Write(Html.TabbedContentMessagesBox("bcms-edit-widget-messages"));


            #line default
            #line hidden
            WriteLiteral("\r\n");

            WriteLiteral("    ");


            #line 29 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            Write(Html.Partial("Partial/WarnMessageAboutDraft", Model));


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 30 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"


            #line default
            #line hidden

            #line 30 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            using (Html.BeginForm <WidgetsController>(c => c.EditHtmlContentWidget((string)null), FormMethod.Post, new { @id = "bcms-advanced-content-form", @class = "bcms-ajax-form" }))
            {
            #line default
            #line hidden
                WriteLiteral("        <div");

                WriteLiteral(" id=\"bcms-tab-1\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(">\r\n            <div");

                WriteLiteral(" class=\"bcms-padded-content\"");

                WriteLiteral(">\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 35 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.Tooltip(PagesGlobalization.HtmlContentWidget_ContentName_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 36 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(PagesGlobalization.HtmlContentWidget_ContentName_Title);


            #line default
            #line hidden
                WriteLiteral(":</div>\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-box\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 38 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.TextBoxFor(model => model.Name, new { @class = "bcms-editor-field-box" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                        ");


            #line 39 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.Name));


            #line default
            #line hidden
                WriteLiteral("\r\n                    </div>\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 44 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(PagesGlobalization.HtmlContentWidget_CustomHTML_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    <div");

                WriteLiteral(" class=\"bcms-poptext-editor-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 46 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.TextAreaFor(model => model.PageContent, new { @class = "bcms-advanced-contenthtml", @id = Guid.NewGuid() }));


            #line default
            #line hidden
                WriteLiteral("\r\n                    </div>\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                    <div");

                WriteLiteral(" class=\"bcms-edit-check-field\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 52 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.CheckBoxFor(model => model.EnableCustomHtml, new { @id = "bcms-enable-custom-html" }));


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-edit-label\"");

                WriteLiteral(">");


            #line 53 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.Raw(PagesGlobalization.HtmlContentWidget_RenderCustomHTML_Title));


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    </div>\r\n                </div>\r\n\r\n                <di" +
                             "v");

                WriteLiteral(" class=\"bcms-tags-box-holder\"");

                WriteLiteral(" data-bind=\"with: categories\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 58 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Category/CategoriesTemplate.cshtml", categoriesTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n            </div>\r\n        </div>\r\n");


            #line 62 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden
                WriteLiteral("        <div");

                WriteLiteral(" id=\"bcms-tab-2\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(">\r\n");

                WriteLiteral("            ");


            #line 64 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.Partial(PagesConstants.OptionsGridTemplate));


            #line default
            #line hidden
                WriteLiteral("\r\n        </div>\r\n");


            #line 66 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden
                WriteLiteral("        <div");

                WriteLiteral(" id=\"bcms-tab-3\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(">\r\n            <div");

                WriteLiteral(" class=\"bcms-padded-content\"");

                WriteLiteral(">\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 70 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(PagesGlobalization.HtmlContentWidget_CustomCSS_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                    ");


            #line 71 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.TextAreaFor(model => model.CustomCSS, new { @class = "bcms-editor-field-area bcms-code-field bcms-code-field-css", @id = Guid.NewGuid() }));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                    <div");

                WriteLiteral(" class=\"bcms-edit-check-field\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 76 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.CheckBoxFor(model => model.EnableCustomCSS, new { @id = "bcms-enable-custom-css" }));


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-edit-label\"");

                WriteLiteral(">");


            #line 77 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.Raw(PagesGlobalization.HtmlContentWidget_RenderCustomCSS_Title));


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    </div>\r\n                </div>\r\n\r\n                <di" +
                             "v");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 82 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(PagesGlobalization.HtmlContentWidget_CustomJS_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                    ");


            #line 83 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.TextAreaFor(model => model.CustomJS, new { @class = "bcms-editor-field-area bcms-code-field bcms-code-field-javascript", id = Guid.NewGuid() }));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                    <div");

                WriteLiteral(" class=\"bcms-edit-check-field\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 88 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.CheckBoxFor(model => model.EnableCustomJS, new { @id = "bcms-enable-custom-js" }));


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-edit-label\"");

                WriteLiteral(">");


            #line 89 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.Raw(PagesGlobalization.HtmlContentWidget_RenderCustomJS_Title));


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n " +
                             "       </div>\r\n");


            #line 94 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden

            #line 95 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.HiddenFor(model => model.Id, new { @id = "bcmsContentId" }));


            #line default
            #line hidden

            #line 95 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden

            #line 96 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.HiddenFor(model => model.Version, new { @id = "bcmsContentVersion" }));


            #line default
            #line hidden

            #line 96 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden

            #line 97 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.HiddenFor(modal => modal.DesirableStatus, new { @class = "bcms-content-desirable-status" }));


            #line default
            #line hidden

            #line 97 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden

            #line 98 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.HiddenFor(modal => modal.PreviewOnPageContentId, new { @class = "bcms-preview-page-content-id" }));


            #line default
            #line hidden

            #line 98 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden

            #line 99 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.HiddenFor(model => model.EditInSourceMode, new { @id = "bcms-edit-in-source-mode" }));


            #line default
            #line hidden

            #line 99 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden

            #line 100 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.HiddenFor(modal => modal.IsUserConfirmed, new { @id = "bcms-user-confirmed-region-deletion" }));


            #line default
            #line hidden

            #line 100 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden

            #line 101 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.HiddenSubmit());


            #line default
            #line hidden

            #line 101 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("</div>\r\n");
        }
        public override void Execute()
        {
            WriteLiteral("\r\n");


            #line 16 "..\..\Views\Page\EditPageProperties.cshtml"
            if (Model == null)
            {
                return;
            }


            #line default
            #line hidden

            #line 20 "..\..\Views\Page\EditPageProperties.cshtml"

            var tagsTemplateViewModel = new TagsTemplateViewModel
            {
                TooltipDescription = PagesGlobalization.EditPageProperties_BasicPropertiesTab_AddTags_Tooltip_Description
            };

            var categoriesTemplateViewModel = new CategoryTemplateViewModel
            {
                TooltipDescription = PagesGlobalization.EditPageProperties_BasicPropertiesTab_Category_Tooltip_Description
            };


            #line default
            #line hidden
            WriteLiteral("\r\n\r\n<div");

            WriteLiteral(" class=\"bcms-tab-header\"");

            WriteLiteral(">\r\n    <a");

            WriteLiteral(" class=\"bcms-tab-item bcms-active\"");

            WriteLiteral(" data-name=\"#bcms-tab-1\"");

            WriteLiteral(">");


            #line 33 "..\..\Views\Page\EditPageProperties.cshtml"
            Write(PagesGlobalization.EditPageProperties_BasicPropertiesTab_Title);


            #line default
            #line hidden
            WriteLiteral("</a>\r\n    <a");

            WriteLiteral(" class=\"bcms-tab-item\"");

            WriteLiteral(" data-name=\"#bcms-tab-2\"");

            WriteLiteral(">");


            #line 34 "..\..\Views\Page\EditPageProperties.cshtml"
            Write(PagesGlobalization.EditPageProperties_AdvancedPropertiesTab_Title);


            #line default
            #line hidden
            WriteLiteral("</a>\r\n    <a");

            WriteLiteral(" class=\"bcms-tab-item\"");

            WriteLiteral(" data-name=\"#bcms-tab-3\"");

            WriteLiteral(">");


            #line 35 "..\..\Views\Page\EditPageProperties.cshtml"
            Write(PagesGlobalization.EditPageProperties_LayoutPropertiesTab_Title);


            #line default
            #line hidden
            WriteLiteral("</a>\r\n    <a");

            WriteLiteral(" class=\"bcms-tab-item\"");

            WriteLiteral(" data-name=\"#bcms-tab-4\"");

            WriteLiteral(">");


            #line 36 "..\..\Views\Page\EditPageProperties.cshtml"
            Write(PagesGlobalization.EditPageProperties_OptionsTab_Title);


            #line default
            #line hidden
            WriteLiteral("</a>\r\n");


            #line 37 "..\..\Views\Page\EditPageProperties.cshtml"


            #line default
            #line hidden

            #line 37 "..\..\Views\Page\EditPageProperties.cshtml"
            if (Model.ShowTranslationsTab)
            {
            #line default
            #line hidden
                WriteLiteral("        <a");

                WriteLiteral(" class=\"bcms-tab-item\"");

                WriteLiteral(" data-name=\"#bcms-tab-5\"");

                WriteLiteral(">");


            #line 39 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(PagesGlobalization.EditPageProperties_TranslationsTab_Title);


            #line default
            #line hidden
                WriteLiteral("</a>\r\n");


            #line 40 "..\..\Views\Page\EditPageProperties.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("</div>\r\n\r\n<div");

            WriteLiteral(" class=\"bcms-scroll-window\"");

            WriteLiteral(">\r\n");

            WriteLiteral("    ");


            #line 44 "..\..\Views\Page\EditPageProperties.cshtml"
            Write(Html.TabbedContentMessagesBox());


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 45 "..\..\Views\Page\EditPageProperties.cshtml"


            #line default
            #line hidden

            #line 45 "..\..\Views\Page\EditPageProperties.cshtml"
            if (Model.IsMasterPage)
            {
            #line default
            #line hidden

            #line 47 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.Partial("Partial/InfoMessageAboutMasterPage"));


            #line default
            #line hidden

            #line 47 "..\..\Views\Page\EditPageProperties.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("    ");


            #line 49 "..\..\Views\Page\EditPageProperties.cshtml"
            using (Html.BeginForm <PageController>(f => f.EditPageProperties((EditPagePropertiesViewModel)null), FormMethod.Post,
                                                   new
            {
                @class = "bcms-ajax-form",
                data_readonly = Model.IsReadOnly.ToString().ToLower()
            }))
            {
            #line default
            #line hidden
                WriteLiteral("        <div");

                WriteLiteral(" id=\"bcms-tab-1\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(">\r\n            <div");

                WriteLiteral(" class=\"bcms-padded-content\"");

                WriteLiteral(">\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 59 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.Tooltip(PagesGlobalization.EditPageProperties_BasicPropertiesTab_PageName_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 60 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(PagesGlobalization.EditPageProperties_BasicPropertiesTab_PageName_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-box\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 63 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.TextBoxFor(model => model.PageName, new { @class = "bcms-editor-field-box" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                        ");


            #line 64 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.BcmsValidationMessageFor(f => f.PageName));


            #line default
            #line hidden
                WriteLiteral("\r\n                    </div>\r\n                </div>\r\n\r\n");

                WriteLiteral("                ");


            #line 68 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.Partial("Partial/PagePropertiesEditPermalink"));


            #line default
            #line hidden
                WriteLiteral("\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-page-images-holder\"");

                WriteLiteral(">\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 72 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.Tooltip(PagesGlobalization.EditPageProperties_BasicPropertiesTab_PageImage_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 73 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(PagesGlobalization.EditPageProperties_BasicPropertiesTab_PageImage_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-uploaded-image\"");

                WriteLiteral(">\r\n                            <!-- ko if: image().url() -->\r\n                   " +
                             "         <a");

                WriteLiteral(" class=\"bcms-remove-image\"");

                WriteLiteral(" data-bind=\"click: image().remove.bind(image())\"");

                WriteLiteral(">");


            #line 76 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(RootGlobalization.Button_Remove);


            #line default
            #line hidden
                WriteLiteral("</a>\r\n                            <a");

                WriteLiteral(" data-bind=\"click: image().preview.bind(image())\"");

                WriteLiteral(">\r\n                                <img");

                WriteLiteral(" data-bind=\"attr: { src: image().thumbnailUrl(), alt: image().tooltip() }\"");

                WriteLiteral(" />\r\n                            </a>\r\n                            <!-- /ko -->\r\n" +
                             "                        </div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-btn-small\"");

                WriteLiteral(" data-bind=\"click: image().select.bind(image())\"");

                WriteLiteral(">");


            #line 82 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(PagesGlobalization.EditPageProperties_BasicPropertiesTab_SelectImage_ButtonTitle);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    </div>\r\n\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 86 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.Tooltip(PagesGlobalization.EditPageProperties_BasicPropertiesTab_PageFeaturedImage_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 87 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(PagesGlobalization.EditPageProperties_BasicPropertiesTab_PageFeaturedImage_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-uploaded-image\"");

                WriteLiteral(">\r\n                            <!-- ko if: featuredImage().url() -->\r\n           " +
                             "                 <a");

                WriteLiteral(" class=\"bcms-remove-image\"");

                WriteLiteral(" data-bind=\"click: featuredImage().remove.bind(featuredImage())\"");

                WriteLiteral(">");


            #line 90 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(RootGlobalization.Button_Remove);


            #line default
            #line hidden
                WriteLiteral("</a>\r\n                            <a");

                WriteLiteral(" data-bind=\"click: featuredImage().preview.bind(featuredImage())\"");

                WriteLiteral(">\r\n                                <img");

                WriteLiteral(" data-bind=\"attr: { src: featuredImage().thumbnailUrl(), alt: featuredImage().too" +
                             "ltip() }\"");

                WriteLiteral(" />\r\n                            </a>\r\n                            <!-- /ko -->\r\n" +
                             "                        </div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-btn-small\"");

                WriteLiteral(" data-bind=\"click: featuredImage().select.bind(featuredImage())\"");

                WriteLiteral(">");


            #line 96 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(PagesGlobalization.EditPageProperties_BasicPropertiesTab_SelectImage_ButtonTitle);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    </div>\r\n\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 100 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.Tooltip(PagesGlobalization.EditPageProperties_BasicPropertiesTab_PageSecondaryImage_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 101 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(PagesGlobalization.EditPageProperties_BasicPropertiesTab_PageSecondaryImage_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-uploaded-image\"");

                WriteLiteral(">\r\n                            <!-- ko if: secondaryImage().url() -->\r\n          " +
                             "                  <a");

                WriteLiteral(" class=\"bcms-remove-image\"");

                WriteLiteral(" data-bind=\"click: secondaryImage().remove.bind(secondaryImage())\"");

                WriteLiteral(">");


            #line 104 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(RootGlobalization.Button_Remove);


            #line default
            #line hidden
                WriteLiteral("</a>\r\n                            <a");

                WriteLiteral(" data-bind=\"click: secondaryImage().preview.bind(secondaryImage())\"");

                WriteLiteral(">\r\n                                <img");

                WriteLiteral(" data-bind=\"attr: { src: secondaryImage().thumbnailUrl(), alt: secondaryImage().t" +
                             "ooltip() }\"");

                WriteLiteral(" />\r\n                            </a>\r\n                            <!-- /ko -->\r\n" +
                             "                        </div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-btn-small\"");

                WriteLiteral(" data-bind=\"click: secondaryImage().select.bind(secondaryImage())\"");

                WriteLiteral(">");


            #line 110 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(PagesGlobalization.EditPageProperties_BasicPropertiesTab_SelectImage_ButtonTitle);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    </div>\r\n                </div>\r\n\r\n                <di" +
                             "v");

                WriteLiteral(" class=\"bcms-categories-box-holder\"");

                WriteLiteral(" data-bind=\"with: categories\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 115 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Category/CategoriesTemplate.cshtml", categoriesTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-tags-box-holder\"");

                WriteLiteral(" data-bind=\"with: tags\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 119 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Tags/TagsTemplate.cshtml", tagsTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n\r\n");


            #line 122 "..\..\Views\Page\EditPageProperties.cshtml"


            #line default
            #line hidden

            #line 122 "..\..\Views\Page\EditPageProperties.cshtml"
                if (Model.AccessControlEnabled)
                {
            #line default
            #line hidden

            #line 124 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(Html.Partial(RootModuleConstants.AccessControlTemplate));


            #line default
            #line hidden

            #line 124 "..\..\Views\Page\EditPageProperties.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("\r\n");


            #line 127 "..\..\Views\Page\EditPageProperties.cshtml"


            #line default
            #line hidden

            #line 127 "..\..\Views\Page\EditPageProperties.cshtml"
                if (!Model.IsMasterPage)
                {
            #line default
            #line hidden
                    WriteLiteral("                    <div");

                    WriteLiteral(" class=\"bcms-input-list-holder\"");

                    WriteLiteral(">\r\n");

                    WriteLiteral("                        ");


            #line 130 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(Html.Tooltip(PagesGlobalization.EditPageProperties_Properties_Tooltip_Description));


            #line default
            #line hidden
                    WriteLiteral("\r\n                        <div");

                    WriteLiteral(" class=\"bcms-content-titles\"");

                    WriteLiteral(">");


            #line 131 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(PagesGlobalization.EditPageProperties_Properties_Title);


            #line default
            #line hidden
                    WriteLiteral("</div>\r\n                        <div");

                    WriteLiteral(" class=\"bcms-checkbox-holder\"");

                    WriteLiteral(">\r\n");


            #line 133 "..\..\Views\Page\EditPageProperties.cshtml"


            #line default
            #line hidden

            #line 133 "..\..\Views\Page\EditPageProperties.cshtml"

                    object options = null;
                    if (!Model.CanPublishPage)
                    {
                        options = new { disabled = "disabled" };
                    }


            #line default
            #line hidden
                    WriteLiteral("\r\n");

                    WriteLiteral("                            ");


            #line 140 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(Html.CheckBoxFor(model => model.IsPagePublished, options));


            #line default
            #line hidden
                    WriteLiteral("\r\n                            <div");

                    WriteLiteral(" class=\"bcms-edit-label\"");

                    WriteLiteral(">");


            #line 141 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(PagesGlobalization.EditPageProperties_AdvancedPropertiesTab_Privacy_VisibleToEveryone);


            #line default
            #line hidden
                    WriteLiteral("</div>\r\n                        </div>\r\n                        <div");

                    WriteLiteral(" class=\"bcms-checkbox-holder\"");

                    WriteLiteral(">\r\n");

                    WriteLiteral("                            ");


            #line 144 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(Html.CheckBoxFor(model => model.UseNoFollow));


            #line default
            #line hidden
                    WriteLiteral("\r\n                            <div");

                    WriteLiteral(" class=\"bcms-edit-label\"");

                    WriteLiteral(">");


            #line 145 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(PagesGlobalization.EditPageProperties_AdvancedPropertiesTab_UseNoFollow);


            #line default
            #line hidden
                    WriteLiteral("</div>\r\n                        </div>\r\n                        <div");

                    WriteLiteral(" class=\"bcms-checkbox-holder\"");

                    WriteLiteral(">\r\n");

                    WriteLiteral("                            ");


            #line 148 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(Html.CheckBoxFor(model => model.UseNoIndex));


            #line default
            #line hidden
                    WriteLiteral("\r\n                            <div");

                    WriteLiteral(" class=\"bcms-edit-label\"");

                    WriteLiteral(">");


            #line 149 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(PagesGlobalization.EditPageProperties_AdvancedPropertiesTab_UseNoIndex);


            #line default
            #line hidden
                    WriteLiteral("</div>\r\n                        </div>\r\n                        <div");

                    WriteLiteral(" class=\"bcms-checkbox-holder\"");

                    WriteLiteral(">\r\n");

                    WriteLiteral("                            ");


            #line 152 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(Html.CheckBoxFor(model => model.IsArchived));


            #line default
            #line hidden
                    WriteLiteral("\r\n                            <div");

                    WriteLiteral(" class=\"bcms-edit-label\"");

                    WriteLiteral(">");


            #line 153 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(PagesGlobalization.EditPageProperties_AdvancedPropertiesTab_IsArchived);


            #line default
            #line hidden
                    WriteLiteral("</div>\r\n                        </div>\r\n                    </div>\r\n");

                    WriteLiteral("                    <div");

                    WriteLiteral(" class=\"bcms-input-list-holder\"");

                    WriteLiteral(">\r\n");

                    WriteLiteral("                        ");


            #line 157 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(Html.Tooltip(PagesGlobalization.EditPageProperties_ForceProtocol_Tooltip_Description));


            #line default
            #line hidden
                    WriteLiteral("\r\n                        <div");

                    WriteLiteral(" class=\"bcms-content-titles\"");

                    WriteLiteral(">");


            #line 158 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(PagesGlobalization.EditPageProperties_ForceProtocol_Title);


            #line default
            #line hidden
                    WriteLiteral("</div>\r\n");

                    WriteLiteral("                        ");


            #line 159 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(Html.DropDownListFor(model => model.ForceAccessProtocol, Model.PageAccessProtocols.ToSelectList(Model.ForceAccessProtocol), null, new { @class = "bcms-global-select" }));


            #line default
            #line hidden
                    WriteLiteral("\r\n                    </div>\r\n");


            #line 161 "..\..\Views\Page\EditPageProperties.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("                ");


            #line 162 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.HiddenFor(model => model.CanPublishPage));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                ");


            #line 163 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.HiddenFor(model => model.TemplateId, new { @id = "TemplateId" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                ");


            #line 164 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.HiddenFor(model => model.MasterPageId, new { @id = "MasterPageId" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                ");


            #line 165 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.HiddenFor(model => model.Id));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                ");


            #line 166 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.HiddenFor(model => model.Version));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                ");


            #line 167 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.HiddenFor(model => model.Image.ImageId, new { data_bind = "value: image().id()" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                ");


            #line 168 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.HiddenFor(model => model.SecondaryImage.ImageId, new { data_bind = "value: secondaryImage().id()" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                ");


            #line 169 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.HiddenFor(model => model.FeaturedImage.ImageId, new { data_bind = "value: featuredImage().id()" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");


            #line 170 "..\..\Views\Page\EditPageProperties.cshtml"


            #line default
            #line hidden

            #line 170 "..\..\Views\Page\EditPageProperties.cshtml"
                if (Model.ShowTranslationsTab)
                {
            #line default
            #line hidden

            #line 172 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(Html.HiddenFor(model => model.LanguageId, new { data_bind = "value: translations.language.languageId()" }));


            #line default
            #line hidden

            #line 172 "..\..\Views\Page\EditPageProperties.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("            </div>\r\n        </div>\r\n");


            #line 176 "..\..\Views\Page\EditPageProperties.cshtml"



            #line default
            #line hidden
                WriteLiteral("        <div");

                WriteLiteral(" id=\"bcms-tab-2\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(">\r\n            <div");

                WriteLiteral(" class=\"bcms-padded-content\"");

                WriteLiteral(">\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 180 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.Tooltip(PagesGlobalization.EditPageProperties_AdvancedPropertiesTab_PageCss_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 181 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(PagesGlobalization.EditPageProperties_AdvancedPropertiesTab_PageCss_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                    ");


            #line 182 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.TextAreaFor(model => model.PageCSS, new { @class = "bcms-editor-field-area bcms-code-field bcms-code-field-css", @id = Guid.NewGuid() }));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 186 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.Tooltip(PagesGlobalization.EditPageProperties_AdvancedPropertiesTab_PageJavascript_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 187 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(PagesGlobalization.EditPageProperties_AdvancedPropertiesTab_PageJavascript_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                    ");


            #line 188 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.TextAreaFor(model => model.PageJavascript, new { @class = "bcms-editor-field-area bcms-code-field bcms-code-field-javascript", id = Guid.NewGuid() }));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n            </div>\r\n        </div>\r\n");


            #line 192 "..\..\Views\Page\EditPageProperties.cshtml"



            #line default
            #line hidden
                WriteLiteral("        <div");

                WriteLiteral(" id=\"bcms-tab-3\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(">\r\n            <div");

                WriteLiteral(" class=\"bcms-padded-content\"");

                WriteLiteral(">\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                    ");


            #line 196 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.Tooltip(PagesGlobalization.EditPageProperties_LayoutPropertiesTab_Layout_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 197 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(PagesGlobalization.EditPageProperties_LayoutPropertiesTab_ChooseLayout_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-info-message-box\"");

                WriteLiteral(">\r\n                    <a");

                WriteLiteral(" class=\"bcms-btn-close\"");

                WriteLiteral(">");


            #line 201 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(RootGlobalization.Button_Close);


            #line default
            #line hidden
                WriteLiteral("</a>\r\n");

                WriteLiteral("                    ");


            #line 202 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.Raw(PagesGlobalization.EditPageProperties_LayoutPropertiesTab_InfoMessage));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n\r\n");

                WriteLiteral("                ");


            #line 205 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.Partial("Partial/TemplatesList", Model.Templates));


            #line default
            #line hidden
                WriteLiteral("\r\n            </div>\r\n        </div>\r\n");


            #line 208 "..\..\Views\Page\EditPageProperties.cshtml"



            #line default
            #line hidden
                WriteLiteral("        <div");

                WriteLiteral(" id=\"bcms-tab-4\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(" data-bind=\"with: options\"");

                WriteLiteral(">\r\n");

                WriteLiteral("            ");


            #line 210 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.Partial(PagesConstants.OptionValuesGridTemplate, new EditableGridViewModel {
                    CanAddNewItems = true
                }));


            #line default
            #line hidden
                WriteLiteral("\r\n        </div>\r\n");


            #line 212 "..\..\Views\Page\EditPageProperties.cshtml"

                if (Model.ShowTranslationsTab)
                {
            #line default
            #line hidden
                    WriteLiteral("            <div");

                    WriteLiteral(" id=\"bcms-tab-5\"");

                    WriteLiteral(" class=\"bcms-tab-single\"");

                    WriteLiteral(">\r\n\r\n");


            #line 217 "..\..\Views\Page\EditPageProperties.cshtml"


            #line default
            #line hidden

            #line 217 "..\..\Views\Page\EditPageProperties.cshtml"
                    if (Model.TranslationMessages != null)
                    {
            #line default
            #line hidden

            #line 219 "..\..\Views\Page\EditPageProperties.cshtml"
                        Write(Html.TabbedContentCustomMessagesBox(Model.TranslationMessages));


            #line default
            #line hidden

            #line 219 "..\..\Views\Page\EditPageProperties.cshtml"
                    }


            #line default
            #line hidden
                    WriteLiteral("\r\n                <div");

                    WriteLiteral(" class=\"bcms-padded-content bcms-page-translations-content\"");

                    WriteLiteral(">\r\n                    <div");

                    WriteLiteral(" class=\"bcms-input-list-holder\"");

                    WriteLiteral(" data-bind=\"with: translations.language\"");

                    WriteLiteral(">\r\n");

                    WriteLiteral("                        ");


            #line 224 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(Html.Tooltip(PagesGlobalization.EditPageProperties_TranslationsTab_Language_Tooltip_Description));


            #line default
            #line hidden
                    WriteLiteral("\r\n                        <div");

                    WriteLiteral(" class=\"bcms-content-titles\"");

                    WriteLiteral(">");


            #line 225 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(PagesGlobalization.EditPageProperties_TranslationsTab_Language);


            #line default
            #line hidden
                    WriteLiteral("</div>\r\n                        <select");

                    WriteLiteral(" class=\"bcms-global-select\"");

                    WriteLiteral(" data-bind=\"options: languages, optionsText: \'value\', optionsValue: \'key\', value:" +
                                 " languageId\"");

                    WriteLiteral("></select>\r\n                    </div>\r\n\r\n                    <div");

                    WriteLiteral(" class=\"bcms-title-show-helper\"");

                    WriteLiteral(">\r\n");

                    WriteLiteral("                        ");


            #line 230 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(Html.Tooltip(PagesGlobalization.EditPageTranslations_OtherLanguages_Tooltip));


            #line default
            #line hidden
                    WriteLiteral("\r\n                        <div");

                    WriteLiteral(" class=\"bcms-content-titles\"");

                    WriteLiteral(">");


            #line 231 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(PagesGlobalization.EditPageTranslations_OtherLanguages_Title);


            #line default
            #line hidden
                    WriteLiteral("</div>\r\n                    </div>\r\n                </div>\r\n\r\n");

                    WriteLiteral("                ");


            #line 235 "..\..\Views\Page\EditPageProperties.cshtml"
                    Write(Html.Partial("Partial/TranslationsGrid"));


            #line default
            #line hidden
                    WriteLiteral("\r\n\r\n            </div>\r\n");


            #line 238 "..\..\Views\Page\EditPageProperties.cshtml"
                }



            #line default
            #line hidden

            #line 240 "..\..\Views\Page\EditPageProperties.cshtml"
                Write(Html.HiddenSubmit());


            #line default
            #line hidden

            #line 240 "..\..\Views\Page\EditPageProperties.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("</div>\r\n");
        }
        public override void Execute()
        {
            WriteLiteral("\r\n");


            #line 37 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            if (Model == null)
            {
                return;
            }


            #line default
            #line hidden

            #line 41 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"

            var categoriesTemplateViewModel = new CategoryTemplateViewModel
            {
                TooltipDescription = PagesGlobalization.EditPageProperties_BasicPropertiesTab_Category_Tooltip_Description
            };


            #line default
            #line hidden
            WriteLiteral("\r\n\r\n<div");

            WriteLiteral(" class=\"bcms-tab-header bcms-js-tab-header\"");

            WriteLiteral(">\r\n    <div");

            WriteLiteral(" class=\"bcms-modal-frame-holder\"");

            WriteLiteral(">\r\n        <div");

            WriteLiteral(" class=\"bcms-tab-ui bcms-tab-item bcms-active\"");

            WriteLiteral(" data-name=\"#bcms-tab-1\"");

            WriteLiteral(">");


            #line 50 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            Write(PagesGlobalization.EditWidget_BasicPropertiesTab_Title);


            #line default
            #line hidden
            WriteLiteral("</div>\r\n        <div");

            WriteLiteral(" class=\"bcms-tab-ui bcms-tab-item\"");

            WriteLiteral(" data-name=\"#bcms-tab-2\"");

            WriteLiteral(">");


            #line 51 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            Write(PagesGlobalization.EditWidget_OptionsTab_Title);


            #line default
            #line hidden
            WriteLiteral("</div>\r\n        <div");

            WriteLiteral(" class=\"bcms-tab-ui bcms-tab-item\"");

            WriteLiteral(" data-name=\"#bcms-tab-3\"");

            WriteLiteral(">");


            #line 52 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            Write(PagesGlobalization.EditWidget_AdvancedOptionsTab_Title);


            #line default
            #line hidden
            WriteLiteral("</div>\r\n    </div>\r\n</div>\r\n\r\n<div");

            WriteLiteral(" class=\"bcms-modal-frame-holder\"");

            WriteLiteral(">\r\n    <div");

            WriteLiteral(" class=\"bcms-window-tabbed-options\"");

            WriteLiteral(">\r\n");

            WriteLiteral("        ");


            #line 58 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            Write(Html.MessagesBox("bcms-edit-widget-messages"));


            #line default
            #line hidden
            WriteLiteral("\r\n");

            WriteLiteral("        ");


            #line 59 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            Write(Html.Partial("Partial/WarnMessageAboutDraft", Model));


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 60 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"


            #line default
            #line hidden

            #line 60 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            using (Html.BeginForm <WidgetsController>(c => c.EditHtmlContentWidget((string)null), FormMethod.Post, new { @id = "bcms-advanced-content-form", @class = "bcms-ajax-form" }))
            {
            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" id=\"bcms-tab-1\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(">\r\n                <div");

                WriteLiteral(" class=\"bcms-content-info-block\"");

                WriteLiteral(">\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 65 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(PagesGlobalization.HtmlContentWidget_ContentName_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                        ");


            #line 66 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.Tooltip(PagesGlobalization.HtmlContentWidget_ContentName_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 68 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.TextBoxFor(model => model.Name, new { @class = "bcms-field-text" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                            ");


            #line 69 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.Name));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n                    </div>\r\n\r\n                 " +
                             "   <div");

                WriteLiteral(" class=\"bcms-input-list-holder bcms-drop-field-helper\"");

                WriteLiteral(" data-bind=\"with: categories\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 74 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Category/CategoriesTemplate.cshtml", categoriesTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n                    </div>\r\n                </div>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 79 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(PagesGlobalization.HtmlContentWidget_CustomHTML_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                    ");


            #line 80 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.TextAreaFor(model => model.PageContent, new { @class = "bcms-advanced-contenthtml", @id = Guid.NewGuid() }));


            #line default
            #line hidden
                WriteLiteral("\r\n\r\n                    <div");

                WriteLiteral(" class=\"bcms-check-field-helper\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-checkbox-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 84 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.CheckBoxFor(model => model.EnableCustomHtml, new { @id = "bcms-enable-custom-html" }));


            #line default
            #line hidden
                WriteLiteral("\r\n                            <div");

                WriteLiteral(" class=\"bcms-checkbox-label bcms-js-edit-label\"");

                WriteLiteral(">");


            #line 85 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.Raw(PagesGlobalization.HtmlContentWidget_RenderCustomHTML_Title));


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        </div>\r\n                    </div>\r\n             " +
                             "   </div>\r\n            </div>\r\n");


            #line 90 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" id=\"bcms-tab-2\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                ");


            #line 92 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.Partial(PagesConstants.OptionsGridTemplate));


            #line default
            #line hidden
                WriteLiteral("\r\n            </div>\r\n");


            #line 94 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" id=\"bcms-tab-3\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(">\r\n                <div");

                WriteLiteral(" class=\"bcms-form-block-holder\"");

                WriteLiteral(">\r\n                    <div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                            <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 99 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(PagesGlobalization.HtmlContentWidget_CustomCSS_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                            ");


            #line 100 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.TextAreaFor(model => model.CustomCSS, new { @class = "bcms-field-textarea bcms-code-field bcms-code-field-css", @id = Guid.NewGuid() }));


            #line default
            #line hidden
                WriteLiteral("\r\n\r\n                            <div");

                WriteLiteral(" class=\"bcms-check-field-helper\"");

                WriteLiteral(">\r\n                                <div");

                WriteLiteral(" class=\"bcms-checkbox-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                                    ");


            #line 104 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.CheckBoxFor(model => model.EnableCustomCSS, new { @id = "bcms-enable-custom-css" }));


            #line default
            #line hidden
                WriteLiteral("\r\n                                    <div");

                WriteLiteral(" class=\"bcms-checkbox-label bcms-js-edit-label\"");

                WriteLiteral(">");


            #line 105 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.Raw(PagesGlobalization.HtmlContentWidget_RenderCustomCSS_Title));


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                                </div>\r\n                            </div" +
                             ">\r\n                        </div>\r\n                    </div>\r\n\r\n               " +
                             "     <div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                            <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 113 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(PagesGlobalization.HtmlContentWidget_CustomJS_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                            ");


            #line 114 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.TextAreaFor(model => model.CustomJS, new { @class = "bcms-field-textarea bcms-code-field bcms-code-field-javascript", id = Guid.NewGuid() }));


            #line default
            #line hidden
                WriteLiteral("\r\n                            <div");

                WriteLiteral(" class=\"bcms-check-field-helper\"");

                WriteLiteral(">\r\n                                <div");

                WriteLiteral(" class=\"bcms-checkbox-holder\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                                    ");


            #line 117 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.CheckBoxFor(model => model.EnableCustomJS, new { @id = "bcms-enable-custom-js" }));


            #line default
            #line hidden
                WriteLiteral("\r\n                                    <div");

                WriteLiteral(" class=\"bcms-checkbox-label bcms-js-edit-label\"");

                WriteLiteral(">");


            #line 118 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.Raw(PagesGlobalization.HtmlContentWidget_RenderCustomJS_Title));


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                                </div>\r\n                            </div" +
                             ">\r\n                        </div>\r\n                    </div>\r\n                <" +
                             "/div>\r\n            </div>\r\n");


            #line 125 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden

            #line 126 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.HiddenFor(model => model.Id, new { @id = "bcmsContentId" }));


            #line default
            #line hidden

            #line 126 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden

            #line 127 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.HiddenFor(model => model.Version, new { @id = "bcmsContentVersion" }));


            #line default
            #line hidden

            #line 127 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden

            #line 128 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.HiddenFor(modal => modal.DesirableStatus, new { @class = "bcms-content-desirable-status" }));


            #line default
            #line hidden

            #line 128 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden

            #line 129 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.HiddenFor(modal => modal.PreviewOnPageContentId, new { @class = "bcms-preview-page-content-id" }));


            #line default
            #line hidden

            #line 129 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden

            #line 130 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.HiddenFor(model => model.EditInSourceMode, new { @id = "bcms-edit-in-source-mode" }));


            #line default
            #line hidden

            #line 130 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden

            #line 131 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.HiddenFor(modal => modal.IsUserConfirmed, new { @id = "bcms-user-confirmed-region-deletion" }));


            #line default
            #line hidden

            #line 131 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"



            #line default
            #line hidden

            #line 132 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
                Write(Html.HiddenSubmit());


            #line default
            #line hidden

            #line 132 "..\..\Views\Widgets\EditHtmlContentWidget.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("    </div>\r\n</div>\r\n");
        }
        public override void Execute()
        {
            WriteLiteral("\r\n");


            #line 38 "..\..\Views\Images\ImageEditor.cshtml"

            var tagsTemplateViewModel = new TagsTemplateViewModel
            {
                TooltipDescription = MediaGlobalization.FileEditor_Dialog_AddTags_Tooltip_Description
            };


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 44 "..\..\Views\Images\ImageEditor.cshtml"

            var categoriesTemplateViewModel = new CategoryTemplateViewModel
            {
                TooltipDescription = MediaGlobalization.FileEditor_Dialog_Category_Tooltip_Description
            };


            #line default
            #line hidden
            WriteLiteral("\r\n<div");

            WriteLiteral(" class=\"bcms-modal-frame-holder\"");

            WriteLiteral(">\r\n");

            WriteLiteral("    ");


            #line 51 "..\..\Views\Images\ImageEditor.cshtml"
            Write(Html.MessagesBox());


            #line default
            #line hidden
            WriteLiteral("\r\n\r\n    <div");

            WriteLiteral(" class=\"bcms-window-options\"");

            WriteLiteral(">\r\n");


            #line 54 "..\..\Views\Images\ImageEditor.cshtml"


            #line default
            #line hidden

            #line 54 "..\..\Views\Images\ImageEditor.cshtml"
            using (Html.BeginForm <ImagesController>(f => f.ImageEditor((ImageViewModel)null), FormMethod.Post, new { @class = "bcms-ajax-form", @enctype = "multipart/form-data" }))
            {
            #line default
            #line hidden

            #line 56 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenFor(model => model.Id));


            #line default
            #line hidden

            #line 56 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden

            #line 57 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenFor(model => model.Version, new { @id = "image-version-field" }));


            #line default
            #line hidden

            #line 57 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden

            #line 58 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenFor(model => model.CropCoordX1, new { @data_bind = "value: Math.floor(imageEditorViewModel.cropCoordX1())" }));


            #line default
            #line hidden

            #line 58 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden

            #line 59 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenFor(model => model.CropCoordX2, new { @data_bind = "value: Math.floor(imageEditorViewModel.cropCoordX2())" }));


            #line default
            #line hidden

            #line 59 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden

            #line 60 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenFor(model => model.CropCoordY1, new { @data_bind = "value: Math.floor(imageEditorViewModel.cropCoordY1())" }));


            #line default
            #line hidden

            #line 60 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden

            #line 61 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenFor(model => model.CropCoordY2, new { @data_bind = "value: Math.floor(imageEditorViewModel.cropCoordY2())" }));


            #line default
            #line hidden

            #line 61 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden

            #line 62 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenFor(model => model.ShouldOverride, new { @id = "image-override-field" }));


            #line default
            #line hidden

            #line 62 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden

            #line 63 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenFor(model => model.ImageType, new { @data_bind = "value: imageEditorViewModel.imageType()" }));


            #line default
            #line hidden

            #line 63 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                <div");

                WriteLiteral(" class=\"bcms-croped-block\"");

                WriteLiteral(">\r\n                    <img");

                WriteLiteral(" src=\"\"");

                WriteLiteral(" data-bind=\"style: { width: imageEditorViewModel.calculatedWidth() + \'px\', height" +
                             ": imageEditorViewModel.calculatedHeight() + \'px\' }\"");

                WriteLiteral(" />\r\n                </div>\r\n            </div>\r\n");


            #line 70 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-media-manager-form\"");

                WriteLiteral(">\r\n                <div");

                WriteLiteral(" class=\"bcms-media-manager-column-left\"");

                WriteLiteral(">\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 74 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_Caption);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                        ");


            #line 75 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.Tooltip(MediaGlobalization.ImageEditor_Dialog_Caption_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 77 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.TextBoxFor(f => f.Caption, new { @class = "bcms-field-text", @id = "Caption", data_bind = "event: {change: onValueChange}" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                            ");


            #line 78 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.BcmsValidationMessageFor(f => f.Caption));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n                    </div>\r\n\r\n                 " +
                             "   <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 83 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_PublicUrl);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n                            <input");

                WriteLiteral(" class=\"bcms-field-text bcms-editor-selectable-field-box\"");

                WriteLiteral(" type=\"text\"");

                WriteAttribute("value", Tuple.Create(" value=\"", 4696), Tuple.Create("\"", 4714)

            #line 85 "..\..\Views\Images\ImageEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 4704), Tuple.Create <System.Object, System.Int32>(Model.Url

            #line default
            #line hidden
                                                                                                                 , 4704), false)
                               );

                WriteLiteral(" readonly=\"readonly\"");

                WriteLiteral(" />\r\n                        </div>\r\n                    </div>\r\n\r\n              " +
                             "      <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 90 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_Description);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                        ");


            #line 91 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.Tooltip(MediaGlobalization.ImageEditor_Dialog_Description_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 93 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.TextAreaFor(f => f.Description, new { @class = "bcms-field-textarea", @id = "Description", data_bind = "event: {change: onValueChange}" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                            ");


            #line 94 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.BcmsValidationMessageFor(f => f.Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n                    </div>\r\n                </d" +
                             "iv>\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-media-manager-column-right\"");

                WriteLiteral(">\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" data-bind=\"visible: imageEditorViewModel.imageType() == 1\"");

                WriteLiteral(">\r\n                            <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                                ");


            #line 103 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_CropImage_Title);


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                                ");


            #line 104 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.Tooltip(MediaGlobalization.ImageEditor_Dialog_CropImage_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                            </div>\r\n\r\n                            <div");

                WriteLiteral(" class=\"bcms-checkbox-holder\"");

                WriteLiteral(">\r\n                                <input");

                WriteLiteral(" type=\"checkbox\"");

                WriteLiteral(" data-bind=\"checked: imageEditorViewModel.fit\"");

                WriteLiteral(" />\r\n                                <div");

                WriteLiteral(" class=\"bcms-checkbox-label bcms-js-edit-label\"");

                WriteLiteral(" data-bind=\"click: imageEditorViewModel.changeFit\"");

                WriteLiteral(">");


            #line 109 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_FitImage_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                                <div");

                WriteLiteral(" class=\"bcms-editor-link\"");

                WriteLiteral(" data-bind=\"visible: imageEditorViewModel.hasCrop(), click: imageEditorViewModel." +
                             "removeCrop\"");

                WriteLiteral(">Remove crop</div>\r\n                            </div> \r\n\r\n                      " +
                             "      <div");

                WriteLiteral(" class=\"bcms-media-re-upload\"");

                WriteLiteral(" data-bind=\"click: reupload\"");

                WriteLiteral(">");


            #line 113 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_Reupload_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        </div>\r\n                    </div>\r\n\r\n           " +
                             "         <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(" data-bind=\"with: titleEditorViewModel\"");

                WriteLiteral(" id=\"bcms-image-title-editor-box\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 119 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_ImageName_Title);


            #line default
            #line hidden
                WriteLiteral(":\r\n                            <div");

                WriteLiteral(" class=\"bcms-editor-link\"");

                WriteLiteral(" data-bind=\"click: open\"");

                WriteLiteral(">");


            #line 120 "..\..\Views\Images\ImageEditor.cshtml"
                Write(RootGlobalization.Button_Edit);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        </div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-subtitle\"");

                WriteLiteral(" data-bind=\"text: oldTitle()\"");

                WriteLiteral("></div>\r\n\r\n                        <div");

                WriteLiteral(" class=\"bcms-editor-box\"");

                WriteLiteral(" data-bind=\"style: { \'display\': isOpened() ? \'block\' : \'none\' }\"");

                WriteLiteral(" style=\"display: none;\"");

                WriteLiteral(">\r\n                            <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 125 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_ImageTitle_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                            <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                                ");


            #line 127 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.TextBoxFor(f => f.Title, new
                {
                    @class     = "bcms-field-text",
                    @id        = "bcms-image-title-editor",
                    @data_bind = "value: title, valueUpdate: 'afterkeydown', enterPress: save, escPress: close, event: {change: $parent.onValueChange}"
                }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                                ");


            #line 133 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.BcmsValidationMessageFor(f => f.Title));


            #line default
            #line hidden
                WriteLiteral("\r\n                            </div>\r\n                            <div");

                WriteLiteral(" class=\"bcms-btn-primary\"");

                WriteLiteral(" data-bind=\"click: save\"");

                WriteLiteral(">");


            #line 135 "..\..\Views\Images\ImageEditor.cshtml"
                Write(RootGlobalization.Button_Ok);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                            <div");

                WriteLiteral(" class=\"bcms-btn-cancel\"");

                WriteLiteral(" data-bind=\"click: close\"");

                WriteLiteral(">");


            #line 136 "..\..\Views\Images\ImageEditor.cshtml"
                Write(RootGlobalization.Button_Cancel);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        </div>\r\n                    </div>\r\n\r\n           " +
                             "         <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 141 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_FileSize);


            #line default
            #line hidden
                WriteLiteral(":</div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-subtitle\"");

                WriteLiteral(" id=\"image-file-size\"");

                WriteLiteral(">");


            #line 142 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.FileSize);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    </div>\r\n\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(" data-bind=\"with: imageEditorViewModel\"");

                WriteLiteral(" id=\"bcms-image-dimensions-editor-box\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 147 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_Dimensions);


            #line default
            #line hidden
                WriteLiteral(":\r\n                            <div");

                WriteLiteral(" class=\"bcms-editor-link\"");

                WriteLiteral(" data-bind=\"click: open\"");

                WriteLiteral(">");


            #line 148 "..\..\Views\Images\ImageEditor.cshtml"
                Write(RootGlobalization.Button_Edit);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        </div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-subtitle\"");

                WriteLiteral(" data-bind=\"text: widthAndHeight()\"");

                WriteLiteral(">");


            #line 150 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.ImageWidth);


            #line default
            #line hidden
                WriteLiteral(" x ");


            #line 150 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.ImageHeight);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n\r\n                        <div");

                WriteLiteral(" class=\"bcms-editor-box\"");

                WriteLiteral(" data-bind=\"style: { \'display\': isOpened() ? \'block\' : \'none\' }\"");

                WriteLiteral(">\r\n                            ");

                WriteLiteral("\r\n                            <div");

                WriteLiteral(" class=\"bcms-media-editor-container\"");

                WriteLiteral(">\r\n                            <div");

                WriteLiteral(" class=\"bcms-media-editor-column\"");

                WriteLiteral(">\r\n                                <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 156 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_ChangeSize_Width);


            #line default
            #line hidden
                WriteLiteral(":</div>\r\n                                <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                                    ");


            #line 158 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.TextBoxFor(f => f.ImageWidth, new { @class = "bcms-field-text", @id = "image-width", @data_bind = "value: width, valueUpdate: 'afterkeydown', enterPress: save, escPress: close, event: { change: changeHeight }" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                                    ");


            #line 159 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.BcmsValidationMessageFor(f => f.ImageWidth));


            #line default
            #line hidden
                WriteLiteral("\r\n                                </div>\r\n                            </div>\r\n\r\n " +
                             "                           <div");

                WriteLiteral(" class=\"bcms-media-editor-column\"");

                WriteLiteral(">\r\n                                <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 164 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_ChangeSize_Height);


            #line default
            #line hidden
                WriteLiteral(":</div>\r\n                                <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                                    ");


            #line 166 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.TextBoxFor(f => f.ImageHeight, new { @class = "bcms-field-text", @id = "image-height", @data_bind = "value: height, valueUpdate: 'afterkeydown', enterPress: save, escPress: close, event: { change: changeWidth }" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                                    ");


            #line 167 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.BcmsValidationMessageFor(f => f.ImageHeight));


            #line default
            #line hidden
                WriteLiteral("\r\n                                </div>\r\n                            </div>\r\n\r\n " +
                             "                           <div");

                WriteLiteral(" class=\"bcms-media-editor-column\"");

                WriteLiteral(">\r\n                                <div");

                WriteLiteral(" class=\"bcms-btn-primary\"");

                WriteLiteral(" data-bind=\"click: save\"");

                WriteLiteral(">");


            #line 172 "..\..\Views\Images\ImageEditor.cshtml"
                Write(RootGlobalization.Button_Ok);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                                <div");

                WriteLiteral(" class=\"bcms-btn-cancel\"");

                WriteLiteral(" data-bind=\"click: close\"");

                WriteLiteral(">");


            #line 173 "..\..\Views\Images\ImageEditor.cshtml"
                Write(RootGlobalization.Button_Cancel);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                            </div>\r\n                            </div>\r\n\r" +
                             "\n                            <div");

                WriteLiteral(" class=\"bcms-media-restore-size\"");

                WriteLiteral(" data-bind=\"click: restoreOriginalSize\"");

                WriteLiteral(">");


            #line 177 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_RestoreOriginalSize_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        </div>\r\n                    </div>\r\n\r\n           " +
                             "         <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(" data-bind=\"visible: imageEditorViewModel.enableCrop\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 182 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_CroppedDimensions);


            #line default
            #line hidden
                WriteLiteral(":</div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-subtitle\"");

                WriteLiteral(" id=\"image-file-size\"");

                WriteLiteral(" data-bind=\"text: imageEditorViewModel.croppedWidthAndHeight()\"");

                WriteLiteral(">");


            #line 183 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.CroppedWidth);


            #line default
            #line hidden
                WriteLiteral(" x ");


            #line 183 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.CroppedHeight);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                    </div>\r\n\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 187 "..\..\Views\Images\ImageEditor.cshtml"
                Write(MediaGlobalization.ImageEditor_Dialog_AligmentTitle);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-alignment-controls\"");

                WriteLiteral(">\r\n                            <div");

                WriteAttribute("class", Tuple.Create(" class=\"", 12370), Tuple.Create("\"", 12467)
                               , Tuple.Create(Tuple.Create("", 12378), Tuple.Create("bcms-align-center", 12378), true)

            #line 189 "..\..\Views\Images\ImageEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 12395), Tuple.Create <System.Object, System.Int32>(Model.ImageAlign == MediaImageAlign.Center ? "-active" : string.Empty

            #line default
            #line hidden
                                                                                                                  , 12395), false)
                               );

                WriteLiteral(">\r\n                                <input");

                WriteLiteral(" type=\"radio\"");

                WriteLiteral(" name=\"ImageAlign\"");

                WriteAttribute("value", Tuple.Create(" value=\"", 12540), Tuple.Create("\"", 12578)

            #line 190 "..\..\Views\Images\ImageEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 12548), Tuple.Create <System.Object, System.Int32>((int)MediaImageAlign.Center

            #line default
            #line hidden
                                                                                                                  , 12548), false)
                               );

                WriteLiteral(" ");


            #line 190 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.ImageAlign == MediaImageAlign.Center ? "checked" : string.Empty);


            #line default
            #line hidden
                WriteLiteral(" data-bind=\"checked: imageAlign.asString()\" />\r\n                            </div" +
                             ">\r\n                            <div");

                WriteAttribute("class", Tuple.Create(" class=\"", 12768), Tuple.Create("\"", 12861)
                               , Tuple.Create(Tuple.Create("", 12776), Tuple.Create("bcms-align-left", 12776), true)

            #line 192 "..\..\Views\Images\ImageEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 12791), Tuple.Create <System.Object, System.Int32>(Model.ImageAlign == MediaImageAlign.Left ? "-active" : string.Empty

            #line default
            #line hidden
                                                                                                                  , 12791), false)
                               );

                WriteLiteral(">\r\n                                <input");

                WriteLiteral(" type=\"radio\"");

                WriteLiteral(" name=\"ImageAlign\"");

                WriteAttribute("value", Tuple.Create(" value=\"", 12934), Tuple.Create("\"", 12970)

            #line 193 "..\..\Views\Images\ImageEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 12942), Tuple.Create <System.Object, System.Int32>((int)MediaImageAlign.Left

            #line default
            #line hidden
                                                                                                                  , 12942), false)
                               );

                WriteLiteral(" ");


            #line 193 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.ImageAlign == MediaImageAlign.Left ? "checked" : string.Empty);


            #line default
            #line hidden
                WriteLiteral(" data-bind=\"checked: imageAlign.asString()\" />\r\n                            </div" +
                             ">\r\n                            <div");

                WriteAttribute("class", Tuple.Create(" class=\"", 13158), Tuple.Create("\"", 13253)
                               , Tuple.Create(Tuple.Create("", 13166), Tuple.Create("bcms-align-right", 13166), true)

            #line 195 "..\..\Views\Images\ImageEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 13182), Tuple.Create <System.Object, System.Int32>(Model.ImageAlign == MediaImageAlign.Right ? "-active" : string.Empty

            #line default
            #line hidden
                                                                                                                  , 13182), false)
                               );

                WriteLiteral(">\r\n                                <input");

                WriteLiteral(" type=\"radio\"");

                WriteLiteral(" name=\"ImageAlign\"");

                WriteAttribute("value", Tuple.Create(" value=\"", 13326), Tuple.Create("\"", 13363)

            #line 196 "..\..\Views\Images\ImageEditor.cshtml"
                               , Tuple.Create(Tuple.Create("", 13334), Tuple.Create <System.Object, System.Int32>((int)MediaImageAlign.Right

            #line default
            #line hidden
                                                                                                                  , 13334), false)
                               );

                WriteLiteral(" ");


            #line 196 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Model.ImageAlign == MediaImageAlign.Right ? "checked" : string.Empty);


            #line default
            #line hidden
                WriteLiteral(" data-bind=\"checked: imageAlign.asString()\" />\r\n                            </div" +
                             ">\r\n                        </div>\r\n                    </div>\r\n                <" +
                             "/div>\r\n            </div>\r\n");


            #line 202 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-form-block-holder\"");

                WriteLiteral(">\r\n                <div>\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(" data-bind=\"with: categories\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 206 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Category/CategoriesTemplate.cshtml", categoriesTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n                    </div>\r\n                </div>\r\n\r\n                <div>\r\n  " +
                             "                  <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(" data-bind=\"with: tags\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                        ");


            #line 212 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Tags/TagsTemplate.cshtml", tagsTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n                    </div>\r\n                </div>\r\n            </div>\r\n");


            #line 216 "..\..\Views\Images\ImageEditor.cshtml"



            #line default
            #line hidden

            #line 217 "..\..\Views\Images\ImageEditor.cshtml"
                Write(Html.HiddenSubmit());


            #line default
            #line hidden

            #line 217 "..\..\Views\Images\ImageEditor.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("    </div>\r\n</div>\r\n");
        }
        public override void Execute()
        {
            WriteLiteral("\r\n");


            #line 41 "..\..\Views\Blog\EditBlogPost.cshtml"
            if (Model == null)
            {
                return;
            }


            #line default
            #line hidden

            #line 45 "..\..\Views\Blog\EditBlogPost.cshtml"

            var canEdit = (ViewContext.Controller as CmsControllerBase).SecurityService.IsAuthorized(RootModuleConstants.UserRoles.EditContent);
            var tagsTemplateViewModel = new TagsTemplateViewModel
            {
                TooltipDescription = BlogGlobalization.EditBlogPost_Tags_Tooltip_Description
            };
            var categoriesTemplateViewModel = new CategoryTemplateViewModel
            {
                TooltipDescription = BlogGlobalization.EditBlogPost_Category_Tooltip_Description
            };


            #line default
            #line hidden
            WriteLiteral("\r\n\r\n<div");

            WriteLiteral(" class=\"bcms-tab-header bcms-js-tab-header\"");

            WriteLiteral(">\r\n    <div");

            WriteLiteral(" class=\"bcms-modal-frame-holder\"");

            WriteLiteral(">\r\n        <div");

            WriteLiteral(" class=\"bcms-tab-ui bcms-tab-item bcms-active\"");

            WriteLiteral(" data-name=\"#bcms-tab-1\"");

            WriteLiteral(">");


            #line 59 "..\..\Views\Blog\EditBlogPost.cshtml"
            Write(BlogGlobalization.EditBlogPost_ContentTab_Title);


            #line default
            #line hidden
            WriteLiteral("</div>\r\n        <div");

            WriteLiteral(" class=\"bcms-tab-ui bcms-tab-item\"");

            WriteLiteral(" data-name=\"#bcms-tab-2\"");

            WriteLiteral(">");


            #line 60 "..\..\Views\Blog\EditBlogPost.cshtml"
            Write(BlogGlobalization.EditBlogPost_PropertiesTab_Title);


            #line default
            #line hidden
            WriteLiteral("</div>\r\n    </div>\r\n</div>\r\n\r\n<div");

            WriteLiteral(" class=\"bcms-modal-frame-holder\"");

            WriteLiteral(">\r\n");

            WriteLiteral("    ");


            #line 65 "..\..\Views\Blog\EditBlogPost.cshtml"
            Write(Html.MessagesBox());


            #line default
            #line hidden
            WriteLiteral("\r\n\r\n    <div");

            WriteLiteral(" class=\"bcms-window-tabbed-options\"");

            WriteLiteral(">\r\n");


            #line 68 "..\..\Views\Blog\EditBlogPost.cshtml"


            #line default
            #line hidden

            #line 68 "..\..\Views\Blog\EditBlogPost.cshtml"
            if (Model.CurrentStatus == ContentStatus.Draft)
            {
            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" class=\"bcms-messages-ui bcms-js-messages\"");

                WriteLiteral(">\r\n                <ul");

                WriteLiteral(" class=\"bcms-success-messages\"");

                WriteLiteral(" style=\"display: none\"");

                WriteLiteral("></ul>\r\n                <ul");

                WriteLiteral(" class=\"bcms-info-messages\"");

                WriteLiteral(" style=\"display: none\"");

                WriteLiteral("></ul>\r\n                <ul");

                WriteLiteral(" class=\"bcms-warning-messages\"");

                WriteLiteral(">\r\n                    <li>\r\n                        <div");

                WriteLiteral(" class=\"bcms-messages-close bcms-js-btn-close\"");

                WriteLiteral(" id=\"bcms-addnewblog-closeinfomessage\"");

                WriteLiteral(">");


            #line 75 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(RootGlobalization.Button_Close);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                        ");


            #line 76 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(PagesGlobalization.EditPageContent_Messages_DraftStatusWarnMessage);


            #line default
            #line hidden
                WriteLiteral("\r\n");


            #line 77 "..\..\Views\Blog\EditBlogPost.cshtml"


            #line default
            #line hidden

            #line 77 "..\..\Views\Blog\EditBlogPost.cshtml"
                if (Model.HasPublishedContent && canEdit)
                {
            #line default
            #line hidden

            #line 79 "..\..\Views\Blog\EditBlogPost.cshtml"
                    Write(Html.Raw(PagesGlobalization.EditPageContent_Messages_DraftStatusWarnMessage_Destroy));


            #line default
            #line hidden

            #line 79 "..\..\Views\Blog\EditBlogPost.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("                    </li>\r\n                </ul>\r\n                <ul");

                WriteLiteral(" class=\"bcms-error-messages\"");

                WriteLiteral(" style=\"display: none\"");

                WriteLiteral("></ul>\r\n            </div>\r\n");


            #line 85 "..\..\Views\Blog\EditBlogPost.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 87 "..\..\Views\Blog\EditBlogPost.cshtml"


            #line default
            #line hidden

            #line 87 "..\..\Views\Blog\EditBlogPost.cshtml"
            using (Html.BeginForm <BlogController>(c => c.SaveBlogPost(null), FormMethod.Post, new { @id = "bcms-blog-post-form", @class = "bcms-ajax-form", data_readonly = Model.IsReadOnly.ToString().ToLower() }))
            {
            #line default
            #line hidden

            #line 89 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.HiddenFor(model => model.Id, new { data_bind = "value: id()" }));


            #line default
            #line hidden

            #line 89 "..\..\Views\Blog\EditBlogPost.cshtml"



            #line default
            #line hidden

            #line 90 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.HiddenFor(model => model.Version, new { data_bind = "value: version()" }));


            #line default
            #line hidden

            #line 90 "..\..\Views\Blog\EditBlogPost.cshtml"



            #line default
            #line hidden

            #line 91 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.HiddenFor(model => model.Image.ImageId, new { data_bind = "value: image().id()" }));


            #line default
            #line hidden

            #line 91 "..\..\Views\Blog\EditBlogPost.cshtml"



            #line default
            #line hidden

            #line 92 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.HiddenFor(modal => modal.DesirableStatus, new { @class = "bcms-content-desirable-status" }));


            #line default
            #line hidden

            #line 92 "..\..\Views\Blog\EditBlogPost.cshtml"



            #line default
            #line hidden

            #line 93 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.HiddenFor(model => model.EditInSourceMode, new { @data_bind = "value: editInSourceMode()" }));


            #line default
            #line hidden

            #line 93 "..\..\Views\Blog\EditBlogPost.cshtml"



            #line default
            #line hidden

            #line 94 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.HiddenFor(modal => modal.IsUserConfirmed, new { @id = "bcms-user-confirmed-region-deletion" }));


            #line default
            #line hidden

            #line 94 "..\..\Views\Blog\EditBlogPost.cshtml"



            #line default
            #line hidden

            #line 95 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.HiddenFor(modal => modal.ContentTextMode, new { @id = "bcms-user-confirmed-region-deletion" }));


            #line default
            #line hidden

            #line 95 "..\..\Views\Blog\EditBlogPost.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" id=\"bcms-tab-1\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(">\r\n                <div");

                WriteLiteral(" class=\"bcms-content-info-block\"");

                WriteLiteral(">\r\n                    <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 100 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlogPost_Title_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                        ");


            #line 101 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Tooltip(BlogGlobalization.EditBlogPost_Title_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 103 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.TextBoxFor(m => m.Title, new { @class = "bcms-field-text", @id = "bcms-editor-blog-title" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                            ");


            #line 104 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.Title));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n                    </div>\r\n                   " +
                             " <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 108 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlogPost_LiveFrom_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                        ");


            #line 109 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Tooltip(BlogGlobalization.EditBlogPost_LiveDates_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 111 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.DateTextBoxFor(model => model.LiveFromDate, Model.LiveFromDate, new Dictionary <string, object> {
                    { "class", "bcms-field-text bcms-datepicker" }
                }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                            ");


            #line 112 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.LiveFromDate));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n                    </div>\r\n                   " +
                             " <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                        <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 116 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlogPost_LiveTo_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 118 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.DateTextBoxFor(model => model.LiveToDate, Model.LiveToDate, new Dictionary <string, object> {
                    { "class", "bcms-field-text bcms-datepicker" }
                }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                            ");


            #line 119 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.LiveToDate));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n                    </div>\r\n                </d" +
                             "iv>\r\n\r\n");

                WriteLiteral("                ");


            #line 124 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Partial("Partial/AddNewBlogEditPermalink"));


            #line default
            #line hidden
                WriteLiteral("\r\n\r\n                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(" id=\"bcms-blog-content-holder\"");

                WriteLiteral(">\r\n                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 127 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlogPost_Content_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                    ");


            #line 128 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Tooltip(BlogGlobalization.EditBlogPost_Content_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                    ");


            #line 129 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.TextAreaFor(model => model.Content, new { @id = "bcms-blogcontent" }));


            #line default
            #line hidden
                WriteLiteral("\r\n                </div>\r\n            </div>\r\n");


            #line 132 "..\..\Views\Blog\EditBlogPost.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" id=\"bcms-tab-2\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(">\r\n                <div");

                WriteLiteral(" class=\"bcms-form-block-holder\"");

                WriteLiteral(">\r\n                    <div>\r\n");


            #line 136 "..\..\Views\Blog\EditBlogPost.cshtml"


            #line default
            #line hidden

            #line 136 "..\..\Views\Blog\EditBlogPost.cshtml"
                if (Model.ShowLanguages)
                {
            #line default
            #line hidden
                    WriteLiteral("                            <div");

                    WriteLiteral(" class=\"bcms-input-list-holder\"");

                    WriteLiteral(">\r\n                                <div");

                    WriteLiteral(" class=\"bcms-content-titles\"");

                    WriteLiteral(">");


            #line 139 "..\..\Views\Blog\EditBlogPost.cshtml"
                    Write(BlogGlobalization.EditBlogPost_Language_Title);


            #line default
            #line hidden
                    WriteLiteral("</div>\r\n");

                    WriteLiteral("                                ");


            #line 140 "..\..\Views\Blog\EditBlogPost.cshtml"
                    Write(Html.Tooltip(BlogGlobalization.EditBlogPost_Language_Tooltip));


            #line default
            #line hidden
                    WriteLiteral("\r\n                                <div");

                    WriteLiteral(" class=\"bcms-field-wrapper\"");

                    WriteLiteral(">\r\n");

                    WriteLiteral("                                    ");


            #line 142 "..\..\Views\Blog\EditBlogPost.cshtml"
                    Write(Html.DropDownListFor(model => model.LanguageId, Model.Languages.ToSelectList(Model.LanguageId), "Default language", new { @id = "bcms-js-languages-select" }));


            #line default
            #line hidden
                    WriteLiteral("\r\n                                </div>\r\n                            </div>\r\n");


            #line 145 "..\..\Views\Blog\EditBlogPost.cshtml"
                }


            #line default
            #line hidden
                WriteLiteral("\r\n                        <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                            <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 148 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlogPost_Author_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                            ");


            #line 149 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Tooltip(BlogGlobalization.EditBlogPost_Author_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                            <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                                ");


            #line 151 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.DropDownListFor(model => model.AuthorId, Model.Authors.ToSelectList(Model.AuthorId), string.Empty, new { @id = "bcms-js-authors-select" }));


            #line default
            #line hidden
                WriteLiteral("\r\n                            </div>\r\n                        </div>\r\n\r\n         " +
                             "               <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                            <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 156 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlogPost_IntroText_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                            ");


            #line 157 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Tooltip(BlogGlobalization.EditBlogPost_IntroText_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                            <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                                ");


            #line 159 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.TextAreaFor(m => m.IntroText, new { @style = "height: 217px;", @class = "bcms-field-textarea" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                                ");


            #line 160 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.IntroText));


            #line default
            #line hidden
                WriteLiteral("\r\n                            </div>\r\n                        </div>\r\n           " +
                             "         </div>\r\n\r\n                    <div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-thumb-container\"");

                WriteLiteral(">\r\n                            <div");

                WriteLiteral(" class=\"bcms-thumb-box\"");

                WriteLiteral(">\r\n                                <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                                    <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 169 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlogPost_FeaturedImage_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                                    ");


            #line 170 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Tooltip(BlogGlobalization.EditBlogPost_FeaturedImage_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                                </div>\r\n\r\n                                <div");

                WriteLiteral(" class=\"bcms-thumb-image\"");

                WriteLiteral(">\r\n                                    <!-- ko if: image().url() -->\r\n           " +
                             "                         <div");

                WriteLiteral(" class=\"bcms-remove-image\"");

                WriteLiteral(" data-bind=\"");


            #line 175 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(canEdit ? "click: image().remove.bind(image())" : string.Empty);


            #line default
            #line hidden
                WriteLiteral("\"");

                WriteLiteral(">");


            #line 175 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(RootGlobalization.Button_Remove);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                                    <div");

                WriteLiteral(" data-bind=\"click: image().preview.bind(image())\"");

                WriteLiteral(">\r\n                                        <img");

                WriteLiteral(" data-bind=\"attr: { src: image().thumbnailUrl(), alt: image().tooltip() }\"");

                WriteLiteral(" />\r\n                                    </div>\r\n                                " +
                             "    <!-- /ko -->\r\n                                    <!-- ko ifnot: image().url" +
                             "() -->\r\n                                    <svg");

                WriteLiteral(" class=\"bcms-grid-no-preview\"");

                WriteLiteral(" width=\"50\"");

                WriteLiteral(" height=\"50\"");

                WriteLiteral(" viewBox=\"-205 372 50 50\"");

                WriteLiteral(" enable-background=\"new -205 372 50 50\"");

                WriteLiteral(">\r\n                                        <g");

                WriteLiteral(" fill=\"#cdcdcd\"");

                WriteLiteral(">\r\n                                            <path");

                WriteLiteral(" d=\"m-205 422h50v-50h-50v50m2-48h46v46h-46v-46\"");

                WriteLiteral(" />\r\n                                            <path");

                WriteLiteral(" d=\"m-164.3 406.2l1.4-1.4-11.5-11.5-7.7 7.6-3.6-3.6-11.5 11.5 1.4 1.4 10.1-10.1 1" +
                             "1.1 11.1 1.4-1.4-7.5-7.5 6.3-6.2 10.1 10.1\"");

                WriteLiteral(" />\r\n                                            <path");

                WriteLiteral(" d=\"m-187.9 382.4c-2.8 0-5 2.2-5 5 0 2.8 2.2 5 5 5 2.8 0 5-2.2 5-5 0-2.8-2.2-5-5-" +
                             "5m0 2c1.7 0 3 1.4 3 3 0 1.7-1.3 3-3 3-1.6 0-3-1.3-3-3 0-1.7 1.3-3 3-3\"");

                WriteLiteral(" />\r\n                                        </g>\r\n                              " +
                             "      </svg>\r\n                                    <!-- /ko -->\r\n                " +
                             "                </div>\r\n\r\n                                <div");

                WriteLiteral(" class=\"bcms-btn-selection\"");

                WriteLiteral(" data-bind=\"");


            #line 191 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(canEdit ? "click: image().select.bind(image())" : string.Empty);


            #line default
            #line hidden
                WriteLiteral("\"");

                WriteLiteral(">");


            #line 191 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(BlogGlobalization.EditBlogPost_SelectImage_Button_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n                            </div>\r\n                        </div>\r\n\r\n   " +
                             "                     <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(" data-bind=\"with: categories\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 196 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Category/CategoriesTemplate.cshtml", categoriesTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n\r\n                        <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(" data-bind=\"with: tags\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 200 "..\..\Views\Blog\EditBlogPost.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Tags/TagsTemplate.cshtml", tagsTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n                    </div>\r\n                </d" +
                             "iv>\r\n\r\n            </div>\r\n");


            #line 206 "..\..\Views\Blog\EditBlogPost.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("    </div>\r\n</div>");
        }
Beispiel #11
0
        public override void Execute()
        {
            WriteLiteral("\r\n");


            #line 37 "..\..\Views\Widgets\EditServerControlWidget.cshtml"

            var categoriesTemplateViewModel = new CategoryTemplateViewModel
            {
                TooltipDescription = PagesGlobalization.EditPageProperties_BasicPropertiesTab_Category_Tooltip_Description
            };


            #line default
            #line hidden
            WriteLiteral("\r\n");


            #line 43 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
            if (Model == null)
            {
                return;
            }


            #line default
            #line hidden
            WriteLiteral("\r\n<div");

            WriteLiteral(" class=\"bcms-tab-header bcms-js-tab-header\"");

            WriteLiteral(">\r\n    <div");

            WriteLiteral(" class=\"bcms-modal-frame-holder\"");

            WriteLiteral(">\r\n        <div");

            WriteLiteral(" class=\"bcms-tab-ui bcms-tab-item bcms-active\"");

            WriteLiteral(" data-name=\"#bcms-tab-1\"");

            WriteLiteral(">");


            #line 50 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
            Write(PagesGlobalization.EditWidget_BasicPropertiesTab_Title);


            #line default
            #line hidden
            WriteLiteral("</div>\r\n        <div");

            WriteLiteral(" class=\"bcms-tab-ui bcms-tab-item\"");

            WriteLiteral(" data-name=\"#bcms-tab-2\"");

            WriteLiteral(">");


            #line 51 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
            Write(PagesGlobalization.EditWidget_OptionsTab_Title);


            #line default
            #line hidden
            WriteLiteral("</div>\r\n    </div>\r\n</div>\r\n\r\n<div");

            WriteLiteral(" class=\"bcms-modal-frame-holder\"");

            WriteLiteral(">\r\n");

            WriteLiteral("    ");


            #line 56 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
            Write(Html.MessagesBox("bcms-edit-widget-messages"));


            #line default
            #line hidden
            WriteLiteral("\r\n");

            WriteLiteral("    ");


            #line 57 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
            Write(Html.Partial("Partial/WarnMessageAboutDraft", Model));


            #line default
            #line hidden
            WriteLiteral("\r\n\r\n    <div");

            WriteLiteral(" class=\"bcms-window-tabbed-options\"");

            WriteLiteral(">\r\n");


            #line 60 "..\..\Views\Widgets\EditServerControlWidget.cshtml"


            #line default
            #line hidden

            #line 60 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
            using (Html.BeginForm <WidgetsController>(c => c.EditServerControlWidget((string)null), FormMethod.Post, new { @id = "bcms-widget-form", @class = "bcms-ajax-form" }))
            {
            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" id=\"bcms-tab-1\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(">\r\n                <div");

                WriteLiteral(" class=\"bcms-form-block-holder\"");

                WriteLiteral(">\r\n                    <div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                            <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 66 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(PagesGlobalization.Widget_Title_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                            ");


            #line 67 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.Tooltip(PagesGlobalization.Widget_Title_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                            <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                                ");


            #line 69 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.TextBoxFor(model => model.Name, new { @class = "bcms-field-text" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                                ");


            #line 70 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.Name));


            #line default
            #line hidden
                WriteLiteral("\r\n                            </div>\r\n                        </div>\r\n\r\n         " +
                             "               <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                            <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 75 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(PagesGlobalization.Widget_Url_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                            ");


            #line 76 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.Tooltip(PagesGlobalization.Widget_Url_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                            <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                                ");


            #line 78 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.TextBoxFor(model => model.Url, new { @class = "bcms-field-text" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                                ");


            #line 79 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.Url));


            #line default
            #line hidden
                WriteLiteral("\r\n                            </div>\r\n                        </div>\r\n\r\n         " +
                             "               <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                            <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 84 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(PagesGlobalization.WidgetPreviewImageUrl_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                            ");


            #line 85 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.Tooltip(PagesGlobalization.WidgetPreviewImageUrl_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n                            <div");

                WriteLiteral(" class=\"bcms-field-wrapper\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                                ");


            #line 87 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.TextBoxFor(model => model.PreviewImageUrl, new { @class = "bcms-field-text" }));


            #line default
            #line hidden
                WriteLiteral("\r\n");

                WriteLiteral("                                ");


            #line 88 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.BcmsValidationMessageFor(m => m.PreviewImageUrl));


            #line default
            #line hidden
                WriteLiteral("\r\n                            </div>\r\n                        </div>\r\n\r\n         " +
                             "               <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(" data-bind=\"with: categories\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                            ");


            #line 93 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.Partial("~/Areas/bcms-root/Views/Category/CategoriesTemplate.cshtml", categoriesTemplateViewModel));


            #line default
            #line hidden
                WriteLiteral("\r\n                        </div>\r\n                    </div>\r\n\r\n                 " +
                             "   <div>\r\n                        <div");

                WriteLiteral(" class=\"bcms-input-list-holder\"");

                WriteLiteral(">\r\n                            <div");

                WriteLiteral(" class=\"bcms-content-titles\"");

                WriteLiteral(">");


            #line 99 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(PagesGlobalization.WidgetPreviewImage_Title);


            #line default
            #line hidden
                WriteLiteral("</div>\r\n");

                WriteLiteral("                            ");


            #line 100 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.Tooltip(PagesGlobalization.WidgetPreviewImage_Tooltip_Description));


            #line default
            #line hidden
                WriteLiteral("\r\n\r\n                            <div");

                WriteLiteral(" class=\"bcms-preview-thumb\"");

                WriteLiteral(">\r\n                                    <img");

                WriteLiteral(" id=\"bcms-widget-preview-image\"");

                WriteAttribute("src", Tuple.Create(" src=\"", 5319), Tuple.Create("\"", 5347)

            #line 103 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                               , Tuple.Create(Tuple.Create("", 5325), Tuple.Create <System.Object, System.Int32>(Model.PreviewImageUrl

            #line default
            #line hidden
                                                                                                                 , 5325), false)
                               );

                WriteLiteral(" alt=\"\"");

                WriteLiteral(" />\r\n                                    <svg");

                WriteLiteral(" class=\"bcms-grid-no-preview\"");

                WriteLiteral(" id=\"bcms-widget-no-preview\"");

                WriteLiteral(" width=\"50\"");

                WriteLiteral(" height=\"50\"");

                WriteLiteral(" viewBox=\"-205 372 50 50\"");

                WriteLiteral(" enable-background=\"new -205 372 50 50\"");

                WriteLiteral(">\r\n                                        <g");

                WriteLiteral(" fill=\"#cdcdcd\"");

                WriteLiteral(">\r\n                                            <path");

                WriteLiteral(" d=\"m-205 422h50v-50h-50v50m2-48h46v46h-46v-46\"");

                WriteLiteral(" />\r\n                                            <path");

                WriteLiteral(" d=\"m-164.3 406.2l1.4-1.4-11.5-11.5-7.7 7.6-3.6-3.6-11.5 11.5 1.4 1.4 10.1-10.1 1" +
                             "1.1 11.1 1.4-1.4-7.5-7.5 6.3-6.2 10.1 10.1\"");

                WriteLiteral(" />\r\n                                            <path");

                WriteLiteral(" d=\"m-187.9 382.4c-2.8 0-5 2.2-5 5 0 2.8 2.2 5 5 5 2.8 0 5-2.2 5-5 0-2.8-2.2-5-5-" +
                             "5m0 2c1.7 0 3 1.4 3 3 0 1.7-1.3 3-3 3-1.6 0-3-1.3-3-3 0-1.7 1.3-3 3-3\"");

                WriteLiteral(" />\r\n                                        </g>\r\n                              " +
                             "      </svg>\r\n                            </div>\r\n                        </div>" +
                             "\r\n                    </div>\r\n                </div>\r\n            </div>\r\n");


            #line 116 "..\..\Views\Widgets\EditServerControlWidget.cshtml"



            #line default
            #line hidden
                WriteLiteral("            <div");

                WriteLiteral(" id=\"bcms-tab-2\"");

                WriteLiteral(" class=\"bcms-tab-single\"");

                WriteLiteral(">\r\n");

                WriteLiteral("                ");


            #line 118 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.Partial(PagesConstants.OptionsGridTemplate));


            #line default
            #line hidden
                WriteLiteral("\r\n            </div>\r\n");


            #line 120 "..\..\Views\Widgets\EditServerControlWidget.cshtml"



            #line default
            #line hidden

            #line 121 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.HiddenFor(model => model.Id, new { @id = "bcmsContentId" }));


            #line default
            #line hidden

            #line 121 "..\..\Views\Widgets\EditServerControlWidget.cshtml"



            #line default
            #line hidden

            #line 122 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.HiddenFor(model => model.Version, new { @id = "bcmsContentVersion" }));


            #line default
            #line hidden

            #line 122 "..\..\Views\Widgets\EditServerControlWidget.cshtml"



            #line default
            #line hidden

            #line 123 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.HiddenFor(modal => modal.DesirableStatus, new { @class = "bcms-content-desirable-status" }));


            #line default
            #line hidden

            #line 123 "..\..\Views\Widgets\EditServerControlWidget.cshtml"



            #line default
            #line hidden

            #line 124 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.HiddenFor(modal => modal.PreviewOnPageContentId, new { @class = "bcms-preview-page-content-id" }));


            #line default
            #line hidden

            #line 124 "..\..\Views\Widgets\EditServerControlWidget.cshtml"



            #line default
            #line hidden

            #line 125 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
                Write(Html.HiddenSubmit());


            #line default
            #line hidden

            #line 125 "..\..\Views\Widgets\EditServerControlWidget.cshtml"
            }


            #line default
            #line hidden
            WriteLiteral("    </div>\r\n</div>");
        }