Sha256: 7d9c46ac0288329dd6fd420a701147a67e827cab216453883b70bb1b8a3abc2e
Contents?: true
Size: 1.61 KB
Versions: 2
Compression:
Stored size: 1.61 KB
Contents
<% content_for :head do %> <%= javascript_include_tag '/javascripts/ckeditor/ckeditor.js' %> <% end %> <h1>Administration: Edit Pages</h1> <br/><br/> <%= form_for [:admin, @page] do |f| %> <% if @page.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@page.errors.count, "error") %> prohibited this page from being saved:</h2> <ul> <% @page.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <p><%= f.submit %></p> <br/> <table width="900" border="0" cellspacing="15" cellpadding="0"> <tr> <td width="150"><strong><%= f.label :title %><br /> </strong></td> <td width="300"> <%= f.text_field :title %></td> <td width="150"><strong> <%= f.label :permalink %><br /> </strong></td> <td width="300"> <%= f.text_field :permalink %></td> </tr> <tr> <td width="350"> <strong><%= f.label :position %> </strong></td> <td width="500"> <%= f.number_field :position %></td> </tr> <tr> <td width="350"> <strong><%= f.label :show_title %> </strong></td> <td width="500"> <%= f.check_box :show_title %></td> </tr> <tr> <td width="150"><strong><%= f.label :parent_id, "Parent Page" %> </strong></td> <td width="300"> <%= f.select :parent_id, nested_set_options(Page, @page) {|i, level| "#{'-' * level} #{i.title}" } , :include_blank => true%></td> </tr> <tr> <td width="150" valign="top"> <strong> <%= f.label :content %> </strong></td> <td colspan="3"> <%= f.cktext_area :content %></td> </tr> </table> <p><%= f.submit %></p> <br/> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
quic_cms-0.0.7 | app/views/quic_cms/admin/pages/_form.html.erb |
quic_cms-0.0.6 | app/views/quic_cms/admin/pages/_form.html.erb |