- packet["page.title"] = "Blog > New" - packet.add_js("popout-effects-generic.js", :module => "_sparkles_") - packet.add_js("popout-effects-page-edit.js", :module => "_sparkles_") %div#edit-box %form#edit{:action => route_to(model_name, "new"), :method => "post"} %label{:for => "edit-title"} Title %input#publish-social{:type => "hidden", :name => "#{model_name}[publish_to_social]", :value => "0"} %input#edit-title{:type => "text", :name => "#{model_name}[title]", :value => ""} %textarea#edit-content{:cols => "32", :rows => "40", :name => "#{model_name}[body]"}<= '' %div#save-status New Draft %input#publish-me{:type => "hidden", :name => "#{model_name}[published]", :value => "0"} %input#real-summary{:type => "hidden", :name => "#{model_name}[summary]", :value => ""} %div#button-container %input#save-draft{:type => "button", :onclick => "$('#save-status').text('Saving draft...'); $('#real-summary').val($('#edit-page-summary').val()); $('#edit').ajaxSubmit({dataType: 'json', success: function(ret){$('#save-status').text('Draft saved.'); $('#edit').attr('action', '/admin/blog_posts/'+ret.id+'/save');}, method: 'post'}); return false;", :value => "Save Draft"} %input#publish{:type => "button", :onclick => "$('#real-summary').val($('#edit-page-summary').val()); $('#publish-me').val('1'); $('#edit').submit(); return false;", :value => "Publish"} %div#popout-box %div#popout-titlebar Settings %div#popout-collapse %a#collapse{:href => "#"} %img{:src => "/assets/_sparkles_/images/collapse-left.png", :border => "0"} / %div.slider-container.main-slider-container / %div.slider-background.slider-background-general-custom / %div.slider / General %div.page-settings-container %div.page-settings-container-current %div#page-settings-container-1 / %hr.one-px-grey / %div#show-in-menu.control-label / - unless routes.empty? / Show in Menu / %div.slider-container / %div.slider-background.slider-background-yes-no / - if routes.first.show_in_nav / %div.slider / Yes / - else / %div.slider-off / No / - else / %a.grey-button Add to Menu / %hr.one-px-grey %div#publish_to_social.control-label Publish to Social Media? %div.slider-container %div.slider-background.slider-background-yes-no %div.slider-off No %hr.one-px-grey %div#page-summary.control-label Page Summary (optional) %div.settings-collapse %a.collapse-up{:href => "#"} %img{:src => "/assets/_sparkles_/images/collapse-up.png", :border => "0"} %br %div#page-summary-textarea.settings-area %textarea#edit-page-summary.autosize= '' %hr.one-px-grey .control-label .preview-container / %a.button.green-button{:href => orange[:pages].route_for(packet, 'x'), :target => "_blank", :rel => "colorbox"} Show Live %div#page-settings-container-2 %hr.one-px-grey %div#page-keywords.control-label Page Keywords (optional) %div.settings-collapse %a.collapse-up{:href => "#"} %img{:src => "/assets/_sparkles_/images/collapse-up.png", :border => "0"} %br %div#page-keywords-textarea.settings-area %textarea#edit-page-keywords.autosize %hr.one-px-grey %br.clearfix