Sha256: cbba293f857693518ddb415557f01c19ff12c71cd67a4f9233871f663fc00baa

Contents?: true

Size: 1.33 KB

Versions: 3

Compression:

Stored size: 1.33 KB

Contents

<div class="well">
<%= f.inputs container.display_name do %>
  <table class="table table-striped page-contents" data-reorder-href="<%= order_page_contents_path(@page.id) %>">
  <% @page.contents.for_container(container.name).each do |page_content| %>
    <%= content_tag_for :tr, page_content do %>
      <td>
        <i class="icon-reorder handle"></i>
        <%= link_to "edit", edit_page_content_path(@page.id, page_content), class: "btn btn-small btn-primary" %>
      </td>
      <td><strong><%= page_content.label %></strong></td>
      <td><%= page_content.content_block_type.demodulize %></td>
      <td><%= page_content.updated_at.strftime('%b %e, %Y %H:%M:%S') %></td>
      <td>
        <div class="pull-right">
          <%= link_to "preview", preview_page_content_path(@page.id, page_content), class: "btn btn-small", data: { previewtoggle: "modal" } %>
          <%= link_to "<i class=\"icon-trash\"></i> delete".html_safe, page_content_path(@page.id, page_content), method: :delete, data: { confirm: "Do you really want to delete this content?" }, class: "btn btn-small btn-danger" %>
        </div>
      </td>
    <% end %>
  <% end %>
  </table>
  <div><%= link_to "Add to #{container.display_name}", new_page_content_path(@page.id, page_content: { container: container.name }), class: "btn btn-primary btn-small" %></div>
<% end %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
smithycms-0.4.5 app/views/smithy/pages/_container.html.erb
smithycms-0.4.4 app/views/smithy/pages/_container.html.erb
smithycms-0.4.3 app/views/smithy/pages/_container.html.erb