Sha256: 9077a53bde37e2d2916232c7a14f8a17be68f1e0ac7f56e3cc93cee196284232

Contents?: true

Size: 842 Bytes

Versions: 5

Compression:

Stored size: 842 Bytes

Contents

<%= form_for [:admin, @page] do |f| %>
  <%= render "shared/error_messages", :target => @page %>
  <div>
    <%= f.label :title, t('pages.title'), :class => "desc required" %>
    <%= f.text_field :title, :size => "80" %>
  </div>
  <div>
    <%= f.label :category_id, t('pages.category') %>
    <%= f.select :category_id, sorted_nested_set_options(Category, lambda(&:name)) {|i, level| "#{'-' * level} #{i.name}" } %>
  </div>
  <div>
    <%= f.text_area :content, :size => "60x30" %>
  </div>
  <div>
    <%= f.submit t('pages.submit') %>
    <%= link_to t('cancel'), admin_pages_path %>
  </div>
<% end %>

<% if @page.id %>
  <%= form_for [:admin, @page], :html => { :method => "delete" } do |f| %>
    <input type="hidden" name="_method" value="delete" />
    <button type="submit"><%= t('pages.delete') %></button>
  <% end %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
merrycms-0.1.7 app/views/admin/pages/_form.html.erb
merrycms-0.1.4 app/views/admin/pages/_form.html.erb
merrycms-0.1.2 app/views/admin/pages/_form.html.erb
merrycms-0.1.1 app/views/admin/pages/_form.html.erb
merrycms-0.1.0 app/views/admin/pages/_form.html.erb