Sha256: 5241284546747a7ae26b46e7298ab8659ed05b32460ad66b2c8a00ee081f069d

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

<div class="page-header" id="with-button">
  <h1>Page Templates</h1>
  <a class="button primary small" href="<%= admin_new_page_template_path %>" id="admin-new-page-template">New Page
    Template</a>
</div>

<br/>

<% if @page_templates.count >= 1 %>
    <table class="table table-striped">
      <thead>
      <tr>
        <th>Name</th>
        <th>Template to Render</th>
        <th></th>
        <th></th>
      </tr>
      </thead>
      <tbody>
      <% @page_templates.each do |page_template| %>
          <tr>
            <td>
              <%= link_to page_template.name, admin_edit_page_template_path(page_template.id), id: "edit-page-template-#{page_template.id}" %>
            </td>
            <td>
              <%= page_template.template %>
            </td>
            <% if current_user.dev_team? %>
                <td>
                  <%= link_to 'Destroy', admin_delete_page_template_path(page_template.id), class: 'button small alert', method: :delete, data: { confirm: 'Are you sure?' }, id: "delete-page-template-#{page_template.id}" %>
                </td>
            <% end %>
          </tr>
      <% end %>
      </tbody>
    </table>
<% else %>
    You dont have any page templates yet.
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cavy-0.1.0.beta2 app/views/cavy/admin_page_templates/index.html.erb