Sha256: 2316f53aa74558b792104a122def256d8220e9c319a0c621c8b40d589c9e50f0

Contents?: true

Size: 1.79 KB

Versions: 41

Compression:

Stored size: 1.79 KB

Contents

<%= render partial: 'show', locals: {post_type: post_type} %>
<div class="pulitzer-indent" id="<%= dom_id(post_type, :template) %>">
  <h5>Content Elements</h5>
  <div id="post_type_content_element_types_container_<%= dom_id(post_type) %>">
    <% post_type.post_type_content_element_types.each do |ptcet| %>
      <%= render partial: '/pulitzer/post_type_content_element_types/show_wrapper', locals: {ptcet: ptcet} %>
    <% end %>
  </div>
  <%= ajax_link 'add a new content element for ' + post_type.name, new_post_type_content_element_type_path(post_type_id: post_type.id), {}, "#new_post_type_content_element_type_#{dom_id(post_type)}" %>
  <div id="new_post_type_content_element_type_<%= dom_id(post_type) %>"></div>

  <% unless post_type.partial? %>
    <h5>Free Form Sections</h5>
    <div id="<%= dom_id(post_type, :free_form_section_types_container) %>">
      <% post_type.free_form_section_types.each do |ffst| %>
        <%= render partial: '/pulitzer/free_form_section_types/show_wrapper', locals: {ffst: ffst} %>
      <% end %>
    </div>
    <%= ajax_link 'add a new section for ' + post_type.name, new_free_form_section_type_path(post_type_id: post_type.id), {}, dom_target(post_type, :new_free_form_section_type) %>
    <div id="<%= dom_id(post_type, :new_free_form_section_type) %>"></div>
  <% end %>

  <% if post_type.partial? %>
    <h5>Layouts</h5>
    <div id="<%= dom_id(post_type, :layouts_container) %>">
      <% post_type.layouts.each do |layout| %>
        <%= render partial: '/pulitzer/layouts/show_wrapper', locals: {layout: layout} %>
      <% end %>
    </div>
    <%= ajax_link 'add a new layout for ' + post_type.name, new_layout_path(layout: {post_type_id: post_type.id}), {}, dom_target(post_type, :new_layout) %>
    <div id="<%= dom_id(post_type, :new_layout) %>"></div>
  <% end %>
</div>

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
pulitzer-0.12.5 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.12.4 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.12.3 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.12.2 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.12.1 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.12.0 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.11.3 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.11.2 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.11.1 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.11.0 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.10.3 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.10.2 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.10.1 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.10.0 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.5.14 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.5.13 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.5.11 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.5.10 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.5.9 app/views/pulitzer/post_types/_template.html.erb
pulitzer-0.5.8 app/views/pulitzer/post_types/_template.html.erb