Sha256: b6fbc6de85639eeaf7b2479eb20a048c8cadeb09ff6c67eda185c11aca49abe3
Contents?: true
Size: 1.61 KB
Versions: 8
Compression:
Stored size: 1.61 KB
Contents
<% content_for :html_head do %> <%= stylesheet_link_tag('cms/form_layout') %> <%= stylesheet_link_tag('cms/content_library') %> <% end %> <% page_title "Content Library / Edit #{content_type.display_name}" %> <% @toolbar_title = "Edit #{content_type.display_name} '#{@block.name}'" %> <% content_for :functions, render(:partial => 'cms/blocks/toolbar') %> <% if @block.respond_to?(:deleted) && @block.deleted %> <div class="header">This <%= @block.class.name %> has been deleted.</div> <% else %> <% form_for(@block, :url => block_path, :html => {:multipart => true}) do |f| %> <%= f.error_messages %> <%= render :partial => 'cms/shared/exception', :object => @exception if @exception %> <% if @other_version %> <%= render :partial => 'cms/shared/version_conflict_error', :locals => {:other_version => @other_version, :your_version => @block} %> <% end %> <%= render :partial => 'cms/blocks/hidden_fields', :locals => { :f => f } %> <%= render :partial => block_form, :locals => {:f => f} %> <% if @other_version %> <%= render :partial => "cms/shared/version_conflict_diff", :locals => {:other_version => @other_version, :your_version => @block} %> <% end %> <div class="buttons"> <% if current_user.able_to?(:publish_content) && @block.publishable? %> <%= lt_button_wrapper(%Q{<button type="submit" name="#{@block.content_block_type}[publish_on_save]" value="true" class="submit" tabindex="#{next_tabindex}"><span>Save And Publish</span></button>}) %> <% end %> <%= lt_button_wrapper(f.submit("Save", :class => "submit", :tabindex => next_tabindex)) %> </div> <% end %> <% end %>
Version data entries
8 entries across 8 versions & 3 rubygems