Sha256: 01b91480dd881b72b4d1ebbdc00cfe0d343ee4687b297ada9c57960c5bbfc05f
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
<% content_for :html_head do %> <script type="text/javascript"> jQuery(function($){ $("#page_name").keyup(function(){ var section = { name: <%= @page.section.name.to_json %>, path: <%= @page.section.path.to_json %> } var page_name = $.trim($("#page_name").val()) if (page_name == section.name || page_name == 'Overview') { $("#page_path").val(section.path) } else { $("#page_path").val( section.path.replace(/\/$/, '') + "/" + $.trim(page_name.toLowerCase().replace(/\W+/g, ' ')).replace(/\ +/g, '-') ) } }) }) </script> <% end %> <% page_title "New Page" %> <% 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, @page]) do |f| %> <%= hidden_field_tag :section_id, @page.section_id %> <%= render :partial => 'form', :locals => {:f => f} %> <div class="buttons"> <%= lt_button_wrapper(f.submit("Save", :class => "submit", :tabindex => next_tabindex)) %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nate-browsercms-3.0.210 | app/views/cms/pages/new.html.erb |
nate-browsercms-3.0.211 | app/views/cms/pages/new.html.erb |