Sha256: de59b1077622f331ece6cf036d21bf2c897ce9fd24d32a974e3fbe7d652ee644
Contents?: true
Size: 1.59 KB
Versions: 1
Compression:
Stored size: 1.59 KB
Contents
<h1><%= @page.new_record? ? 'New' : 'Editing' %> page</h1> <% form_for([:admin, @page], :html => { :id => 'has-assets-form' }) do |f| %> <%= f.error_messages %> <%= f.hidden_field :parent_id %> <p> <%= f.label :title %><br/> <%= f.text_field :title, :class => 'title' %> </p> <p> <%= f.label :permalink, "URL" %><br/> <%= root_url %><%= f.text_field :permalink %> <p>URLs are most efficient if they closely reflect the title or main subject of this content. Changing the permalink will make search engines think it is a different page resulting in a loss of page rank, only change if very necessary. Leave blank to use the title.</p> </p> <p> <%= f.label :description, "Description for search engines" %><br/> <%= f.text_area :description, "rows" => 4 %> </p> <p> <%= f.label :tag_list, "Keywords (comma seperated) - used by search engines" %><br/> <%= f.text_field :tag_list, :class => 'long' %> </p> <p> <%= f.label :template %> <%= f.select :template, get_template_names.collect{|t| [ t.titleize, t ] } %> </p> <p> <%= f.label :body %><br/> <%= f.text_area 'body', :class => 'editor' %> </p> <%= publish_select(f) %> <p class="submission"> <%= preview_link(@page) %> <%= f.submit 'Publish', :name => 'page[publish]' %> <%= f.submit 'Save as draft', :name => 'page[hide]' %> or <%= link_to 'Cancel', admin_articles_path %> </p> <% end %> <% content_for :sub_content do %> <%= asset_list(@page) %> <h2>Asset Library</h2> <%= asset_browser(true) %> <h2>Asset Upload</h2> <%= asset_upload_form %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
beef-pages-0.1.3 | app/views/admin/pages/show.html.erb |