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

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