Sha256: 7d408217ff1a42e646da351e882d03057e482e7b16e68c7dc096c2e2ce50a701
Contents?: true
Size: 1.14 KB
Versions: 32
Compression:
Stored size: 1.14 KB
Contents
<% content_for :html_head do %> <%= stylesheet_link_tag('cms/form_layout') %> <%= stylesheet_link_tag('cms/content_library') %> <% end %> <% page_title "Content Library / Add New #{content_type.display_name}" %> <% @toolbar_title = "Add New #{content_type.display_name}" %> <% content_for :functions, render(:partial => 'cms/blocks/toolbar') %> <% form_for(@block, :url => blocks_path, :html => {:multipart => true}) do |f| %> <%= f.error_messages %> <%= render :partial => 'cms/shared/exception', :object => @exception if @exception %> <%= render :partial => 'cms/blocks/hidden_fields', :locals => {:f => f} %> <%= render :partial => block_form, :locals => {:f => f} %> <% unless @hide_buttons %> <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
32 entries across 32 versions & 10 rubygems