Sha256: 02052ab2efdbc97cb52ea9d3eb9c1854b965cedcdfc9de1946cc2b5e074c6de8

Contents?: true

Size: 818 Bytes

Versions: 1

Compression:

Stored size: 818 Bytes

Contents

<%= f.input :title %>
<%= f.input :parent, :include_blank => false, :collection => tree_for_select unless !@page.parent_id? %>
<%= 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 :duplicate_page, as: :select, label: "Copy Content From", collection: tree_for_select %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smithycms-0.7.0 app/views/smithy/pages/_content_tab.html.erb