Sha256: d9b2ba82b467e29154d64d82c3951e107c7997248069f78478a36be62e2f92a5

Contents?: true

Size: 1.4 KB

Versions: 3

Compression:

Stored size: 1.4 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}'".html_safe %>
<%= 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(@block), :html => {:multipart => true}) do |f| %>
  <%= f.cms_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">
      <%= save_and_publish_button(@block, content_type) %>
      <%= lt_button_wrapper(f.submit("Save", :class => "submit", :tabindex => next_tabindex)) %>
    </div>
<% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
browsercms-3.5.7 app/views/cms/blocks/edit.html.erb
browsercms-3.5.6 app/views/cms/blocks/edit.html.erb
browsercms-3.5.5 app/views/cms/blocks/edit.html.erb