Sha256: 1478efce182f4ffe97c3af60ae20ef8f2923f845ba1ae717d6c9b9e8922ce479

Contents?: true

Size: 1000 Bytes

Versions: 13

Compression:

Stored size: 1000 Bytes

Contents

<%% content_for :header do %>
  <%%= javascript_include_tag 'lightwindow' %>
  <%%= stylesheet_link_tag 'lightwindow' %>
<%% end -%>

<h1><%%= @<%= singular_name %>.new_record? ? 'New' : 'Editing' %> <%= singular_name %></h1>

<%% form_for([:admin, @<%= singular_name %>]) do |f| %>
  <%%= f.error_messages %>
  
  <p>
    <%%= f.label :title %><br/>
    <%%= f.text_field :title, :class => 'title' %>
  </p>

<% for attribute in attributes.reject{ |a| ['title', 'published_at', 'published_to', 'permalink' ].include?(a.name) } -%>
  <p>
    <%%= f.label :<%= attribute.name %> %><br />
    <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
  </p>
<% end -%>

  <%%= publish_select(f) %>

  <p class="submission">
    <%%= preview_link(@<%= singular_name %>) %>
    <%%= f.submit 'Publish', :name => '<%= singular_name %>[publish]' %>
    <%%= f.submit 'Save as draft', :name => '<%= singular_name %>[hide]' %>
    or <%%= link_to 'Back', admin_<%= plural_name %>_path %>
  </p>
<%% end %>

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
beef-acts_as_content_node-0.1.1 generators/content_node_scaffold/templates/admin_show.html.erb
beef-acts_as_content_node-0.1.2 generators/content_node_scaffold/templates/admin_show.html.erb
beef-acts_as_content_node-0.1.3 generators/content_node_scaffold/templates/admin_show.html.erb
beef-acts_as_content_node-0.1.4 generators/content_node_scaffold/templates/admin_show.html.erb
beef-acts_as_content_node-0.1.5 generators/content_node_scaffold/templates/admin_show.html.erb
beef-acts_as_content_node-0.1.6 generators/content_node_scaffold/templates/admin_show.html.erb
acts_as_content_node-0.1.13 generators/content_node_scaffold/templates/admin_show.html.erb
acts_as_content_node-0.1.12 generators/content_node_scaffold/templates/admin_show.html.erb
acts_as_content_node-0.1.11 generators/content_node_scaffold/templates/admin_show.html.erb
acts_as_content_node-0.1.10 generators/content_node_scaffold/templates/admin_show.html.erb
acts_as_content_node-0.1.9 generators/content_node_scaffold/templates/admin_show.html.erb
acts_as_content_node-0.1.8 generators/content_node_scaffold/templates/admin_show.html.erb
acts_as_content_node-0.1.7 generators/content_node_scaffold/templates/admin_show.html.erb