Sha256: 45e0fe77ce0e522669df7ba08c6282fc9a2c5e2ce2ba1032975db223460cf6ee
Contents?: true
Size: 1019 Bytes
Versions: 30
Compression:
Stored size: 1019 Bytes
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(/\/$/, '') + "/" + $.cms.slug(page_name) ) } }) }) </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
30 entries across 30 versions & 9 rubygems