Sha256: 7506c3c2e2921f8cdc36163264bf2f3502399dfcd424e9816c3dd04049b0edc8
Contents?: true
Size: 793 Bytes
Versions: 2
Compression:
Stored size: 793 Bytes
Contents
<% content_for :html_head do %> <script type="text/javascript"> jQuery(function($){ $("#section_name").keyup(function(){ var section = { name: null, path: "<%= @parent.path %>".replace(/\/$/, '') } section.name = $.trim($(this).val()).toLowerCase().replace(/-|_/g, '').replace(/ /g, '_').replace(/\W/g, '') $("#section_path").val(section.path + "/" + section.name) }) }) </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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nate-browsercms-3.0.210 | app/views/cms/sections/new.html.erb |
nate-browsercms-3.0.211 | app/views/cms/sections/new.html.erb |