Sha256: b6b8ca9f1737f5b4ec5fb11539e21ce6f30eb2d82c9340b7bfb64672bb7d29bb

Contents?: true

Size: 1.33 KB

Versions: 20

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="fa fa-reorder handle"></i>
        <%= link_to "edit", edit_page_content_path(@page.id, page_content), class: "btn btn-primary btn-sm" %>
      </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-default btn-sm", data: { previewtoggle: "modal" } %>
          <%= link_to "<i class=\"fa fa-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-danger btn-sm" %>
        </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-sm" %></div>
<% end %>
</div>

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
smithycms-0.7.3 app/views/smithy/pages/_container.html.erb
smithycms-0.7.2 app/views/smithy/pages/_container.html.erb
smithycms-0.7.1 app/views/smithy/pages/_container.html.erb
smithycms-0.7.0 app/views/smithy/pages/_container.html.erb
smithycms-0.6.10 app/views/smithy/pages/_container.html.erb
smithycms-0.5.99.3 app/views/smithy/pages/_container.html.erb
smithycms-0.6.9 app/views/smithy/pages/_container.html.erb
smithycms-0.6.7 app/views/smithy/pages/_container.html.erb
smithycms-0.6.6 app/views/smithy/pages/_container.html.erb
smithycms-0.6.5 app/views/smithy/pages/_container.html.erb
smithycms-0.6.4 app/views/smithy/pages/_container.html.erb
smithycms-0.6.3 app/views/smithy/pages/_container.html.erb
smithycms-0.5.99.2 app/views/smithy/pages/_container.html.erb
smithycms-0.5.99.1 app/views/smithy/pages/_container.html.erb
smithycms-0.5.99 app/views/smithy/pages/_container.html.erb
smithycms-0.6.2 app/views/smithy/pages/_container.html.erb
smithycms-0.6.1 app/views/smithy/pages/_container.html.erb
smithycms-0.5.2 app/views/smithy/pages/_container.html.erb
smithycms-0.6.0 app/views/smithy/pages/_container.html.erb
smithycms-0.5.1 app/views/smithy/pages/_container.html.erb