<%= k.titleize %> | <% end %>Title | State | Author | <% if md.record_hits? %>Hits | <% end %>||||
---|---|---|---|---|---|---|---|---|
<%= page.send(v) %> | <% end %><%= truncate(page.title, :length => 40) %> | <% form_for page.becomes(Document), :url => admin_document_path(page.id) do |f| %> <%= f.select :state, [['Published','published'], ['Draft', 'draft'], ['Pending', 'pending']] %> <%= f.submit 'Change' %> <% end %> | <%= page.author.name %> | <% if md.record_hits? %><%= page.hits %> | <% end %><%= link_to 'Open', admin_document_path(page.id), :class => 'button' %> | <%= link_to 'Edit', edit_admin_document_path(page.id), :class => 'button' %> | <% if md.sort_by == 'position ASC' %><%= link_to 'Up', up_admin_document_path(page.id), :class => 'button' unless page.first? %> <%= link_to 'Down', down_admin_document_path(page.id), :class => 'button' unless page.last? %> | <% end %><% unless page.system? %> <%= link_to 'Delete', admin_document_path(page.id), :method => 'delete', :confirm => 'Are you sure?', :class => 'button' %> <% end %> |
There are no <%= md.label.titleize.pluralize %> yet!
<% end %><%= link_to 'New ', new_admin_document_path + '?parent=' + @document.id.to_s + '&label=' + md.label, :class => 'button' %>
<% form_for md, :url => admin_meta_definition_path(md.id) do | f | %><%= f.select :sort_by, sort_by_options, :include_blank => true %>
<%= f.select :per_page, per_page_options, :include_blank => true %>
<%= f.submit 'Save' %> <% end %> <% end %>