Sha256: 9c2a07311bd0b334a7db2e350341609049f0afbdd15ab6b093bf76b43c1e28f7

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

<% simple_form_for @page do |f| %>
  <%= f.input :name %>
  <%= f.input :slug, :required => false %>
  <%= f.input :content, :input_html => {:rows => 30, :spellcheck => false} %>
  <%= f.input :layout_page_id, :collection => layouts_for_page(@page).collect{|pg| [pg.to_s, pg.id]}, :include_blank => '-- layout file --', :required => false unless layouts_for_page(@page).empty? %>
  <%= f.input :published, :required => false %>
  <%= f.input :root, :required => false %>

  <%= f.commit_button_or_cancel %>
<% end %>

<%= codemirror_edit @page.content_type, 'form.simple_form.cms_page', 'cms_page_content', !@page.new_record?, true %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
liquid_cms-0.2.2.0 app/views/cms/pages/_form.html.erb