Sha256: 15f888ce810006e9d01d1591ab9b76c351667d7e77e6650c9a901db5d53e34c2

Contents?: true

Size: 779 Bytes

Versions: 4

Compression:

Stored size: 779 Bytes

Contents

<div class=o-page>
  <div class=pull-right>
    <%= link_to t('.new_page'), :new_admin_page, class: 'btn btn-success' %>
  </div>

  <h2 class=text-center><%= t('.page_title') %></h2>

  <table class=table>
    <tr>
      <th>ID
      <th><%= Lcms::Engine::Page.human_attribute_name :title %>
      <th><%= t('ui.actions') %>
    </tr>

    <% @pages.each do |page| %>
      <tr id=page_<%= page.id %>>
        <td><%= page.id %>
        <td><%= page.title %>
        <td>
          <%= link_to t('ui.edit'), edit_admin_page_path(page), class: 'btn btn-default' %>
          <%= button_to t('ui.delete'), admin_page_path(page), class: 'btn btn-danger', data: { confirm: t('ui.are_you_sure') }, form_class: 'inline', method: :delete %>
      </tr>
    <% end %>
  </table>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lcms-engine-0.1.4 app/views/lcms/engine/admin/pages/index.html.erb
lcms-engine-0.1.3 app/views/lcms/engine/admin/pages/index.html.erb
lcms-engine-0.1.2 app/views/lcms/engine/admin/pages/index.html.erb
lcms-engine-0.1.0 app/views/lcms/engine/admin/pages/index.html.erb