Sha256: 891a67495de25e5633aad5a1cd74a01de217f9722e9ade6a9a80b8af9988a7d0

Contents?: true

Size: 841 Bytes

Versions: 4

Compression:

Stored size: 841 Bytes

Contents

<%= f.input :title %>
<%= f.input :parent, :include_blank => false, :collection => tree_for_select unless !@page.parent_id? && @page.persisted? %>
<%= f.input :show_in_navigation, :label => "Show page in site navigation" %>
<%= f.input :template, :as => :select, :collection => Smithy::Template.templates, :include_blank => false %>

<% if @page.persisted? && @page.external_link.blank? %>
  <%= render :partial => "container", :collection => @page.containers, :locals => { :f => f } %>
<% elsif @page.external_link? %>
  <%= f.inputs "Redirect" do %>
    <%= f.input :external_link, :hint => "This page is currently being redirected to #{link_to @page.external_link, @page.external_link}".html_safe %>
  <% end %>
<% else %>
  <%= f.input :copy_content_from, as: :select, label: "Copy Content From", collection: tree_for_select %>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
smithycms-0.8.1 app/views/smithy/pages/_content_tab.html.erb
smithycms-0.7.3 app/views/smithy/pages/_content_tab.html.erb
smithycms-0.7.2 app/views/smithy/pages/_content_tab.html.erb
smithycms-0.7.1 app/views/smithy/pages/_content_tab.html.erb