Sha256: e6825a8985b3661cb1881419cbe97e77eac384a550487a116fe511e57239767f

Contents?: true

Size: 676 Bytes

Versions: 30

Compression:

Stored size: 676 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"), cms_sitemap_path, :class => "button") %>
<br clear="all"/>
<% end %>
<% form_for([:cms, @section], :id => 'section_form') do |f| %>
  <%= hidden_field_tag :section_id, @parent.id %>
  
  <%= render :partial => 'form', :locals => {:f => f} %>
<% end %>

Version data entries

30 entries across 30 versions & 9 rubygems

Version Path
SFEley-browsercms-3.0.2 app/views/cms/sections/new.html.erb
buzzware-browsercms-3.0.2 app/views/cms/sections/new.html.erb
coredumplings-browsercms-3.0.0 app/views/cms/sections/new.html.erb
we5-browsercms-3.0.1.1 app/views/cms/sections/new.html.erb
webficient-browsercms-3.0.1 app/views/cms/sections/new.html.erb
webficient-browsercms-3.0.2 app/views/cms/sections/new.html.erb
webficient-browsercms-3.0.3 app/views/cms/sections/new.html.erb
webficient-browsercms-3.0.4 app/views/cms/sections/new.html.erb
browsercms-3.1.5 app/views/cms/sections/new.html.erb
browsercms-3.1.4 app/views/cms/sections/new.html.erb
browsercms-3.1.3 app/views/cms/sections/new.html.erb
bf4-browsercms-3.1.0 app/views/cms/sections/new.html.erb
drujensen-browsercms-3.2.0 app/views/cms/sections/new.html.erb
browsercms-3.1.2 app/views/cms/sections/new.html.erb
browsercms-3.1.1 app/views/cms/sections/new.html.erb
browsercms-3.1.0 app/views/cms/sections/new.html.erb
we5-browsercms-3.1.0 app/views/cms/sections/new.html.erb
browsercms-3.0.6 app/views/cms/sections/new.html.erb
browsercms-3.0.5 app/views/cms/sections/new.html.erb
we5-browsercms-3.0.5.1 app/views/cms/sections/new.html.erb