Created
May 11, 2010 21:58
-
-
Save parndt/397940 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class='field'> | |
<%= f.label :image_id %> | |
<%= render :partial => "/shared/admin/image_picker", :locals => { | |
:f => f, | |
:field => :image_id, | |
:image => @page.image, | |
:toggle_image_display => false | |
} %> | |
</div> | |
<p> | |
<a href="#" id="toggle_advanced_options" rel="Click to access meta tag settings and menu options">» Hide/Show Advanced Options</a> | |
</p> | |
<div id='more_options' style="display:none;"> | |
<div class='field'> | |
<%= f.label :parent_id %> | |
<%= f.collection_select :parent_id, @pages_for_parents_list, :id, :indented_title, :include_blank => true %> | |
</div> | |
<div class='field'> | |
<%= label_tag :custom_title %> | |
<%= label_tag "", 'Type:', :class => "stripped" %> | |
<% ["none", "text"].each do |type| %> | |
<%= f.radio_button :custom_title_type, "#{type}" %> | |
<%= label_tag "page_custom_title_type_#{type}", "#{type.titleize}", :class => "stripped" %> | |
<% end %> | |
<br/> | |
<div id='custom_title_none'></div> | |
<div id='custom_title_text' style='display: <%= @page.custom_title_type == 'text' ? 'block' : 'none' %>'> | |
<p> | |
<%= f.text_field :custom_title, {:size => 103} %><br/> | |
<small> | |
If you want the page to have a different title than the one that shows in the menu and browser title then enter it here.<br/> | |
</small> | |
</p> | |
</div> | |
</div> | |
<div class='field'> | |
<%= label_tag :skip_to_first_child? %> | |
<%= f.check_box :skip_to_first_child %> | |
<%= f.label :skip_to_first_child, "Check this box if you want the visitor to be redirected to this page's first child page if this page is selected.", :class => "stripped" %> | |
</div> | |
<div class='field'> | |
<%= f.label :link_url, "Custom URL" %> | |
<%= f.text_field :link_url, {:size => 103} %><br/> | |
<small> | |
Enter a URL if this page links to an external site or to a pre-existing resource e.g. a contact page. | |
<br/> | |
Note: This URL must point to a location that exists; a new one will not be created. | |
</small> | |
</div> | |
<%= render :partial => "form_advanced_options_seo", :locals => {:f => f} if RefinerySetting.find_or_set(:pages_advanced_options_include_seo, true) %> | |
<div class='field'> | |
<%= f.label :show_in_menu %> | |
<%= f.check_box :show_in_menu %> | |
<small> | |
<%= f.label :show_in_menu, "Check this box if this page should appear in the site menu" %> | |
</small> | |
</div> | |
</div> | |
<div class='field'> | |
<label>Draft</label> | |
<%= f.check_box :draft %> | |
<%= f.label :draft, "Save as Draft", :class => "stripped" %> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment