Sha256: c4ce09bd6bc0f6d5ce1a95cc39ee98bb4fd7f65b84ea0d11fb5f62bd4981975e

Contents?: true

Size: 667 Bytes

Versions: 17

Compression:

Stored size: 667 Bytes

Contents

<%= content_for :html_head do %>
<script type="text/javascript">
jQuery(function($){
  $("#section_name").keyup(function(){
    var section_path = "<%= @parent.path %>".replace(/\/$/, '')
    $("#section_path").val(section_path + "/" + $.cms.slug($(this).val()))
  })
})
</script>
<% end %>
<% page_title "New Section" %>
<%= content_for :functions  do %>
<%= "<h1>#{ @page_title }</h1>" %> 
<%= link_to(span_tag("list all"), sitemap_path, :class => "button") %>
<br clear="all"/>
<% end %>
<%= form_for(@section, :id => 'section_form') do |f| %>
  <%= hidden_field_tag :section_id, @parent.id %>
  
  <%= render :partial => 'form', :locals => {:f => f} %>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
browsercms-3.5.7 app/views/cms/sections/new.html.erb
browsercms-3.5.6 app/views/cms/sections/new.html.erb
browsercms-3.5.5 app/views/cms/sections/new.html.erb
browsercms-3.5.4 app/views/cms/sections/new.html.erb
browsercms-3.5.3 app/views/cms/sections/new.html.erb
browsercms-3.5.2 app/views/cms/sections/new.html.erb
browsercms-3.5.1 app/views/cms/sections/new.html.erb
browsercms-3.5.0 app/views/cms/sections/new.html.erb
browsercms-3.5.0.rc3 app/views/cms/sections/new.html.erb
browsercms-3.5.0.rc2 app/views/cms/sections/new.html.erb
browsercms-3.5.0.rc1 app/views/cms/sections/new.html.erb
browsercms-3.4.2 app/views/cms/sections/new.html.erb
browsercms-3.4.2.rc1 app/views/cms/sections/new.html.erb
browsercms-3.4.1 app/views/cms/sections/new.html.erb
browsercms-3.4.0 app/views/cms/sections/new.html.erb
browsercms-3.4.0.rc2 app/views/cms/sections/new.html.erb
browsercms-3.4.0.rc1 app/views/cms/sections/new.html.erb