Sha256: 6fd14f62dbce40c5d1b41911b0b22f8e69215cb730c9a77cfa0f3f2aa2d05c77

Contents?: true

Size: 1.3 KB

Versions: 1

Compression:

Stored size: 1.3 KB

Contents

<div class="page-header" id="with-button">
  <h1>Item Groups</h1>
  <div class="btn-toolbar">
    <div class="btn-group">
      <a class="button primary small" href="<%= admin_new_item_group_path %>">New Item Group</a>
      <a class="button primary small" href="<%= cavy_item_sections_path %>">Combine Groups into Sections</a>
    </div>
  </div>
</div>
<br/>
<% if @item_groups.count >= 1 %>
  <table class="table table-striped">
    <thead>
    <th>Title</th>
    <th>Parameters</th>
    <th></th>
    <% if current_user.dev_team? %>
      <th></th>
    <% end %>
    </thead>
    <tbody>
    <% @item_groups.each do |item_group| %>
      <tr>
        <td>
          <%= item_group.title %>
        </td>
        <td>
          <%= item_group.params.join(', ') if item_group.params %>
        </td>
        <td>
          <%= link_to 'Edit', admin_edit_item_group_path(item_group.id), class: 'button small primary' %>
        </td>
        <% if current_user.dev_team? %>
          <td>
            <%= link_to 'Destroy', cavy_delete_item_group_path(item_group.id), class: 'button small alert', :method => :delete, :data => { :confirm => 'Are you sure?' }, id: "delete-#{item_group.id}" %>
          </td>
        <% end %>
      </tr>
    <% end %>
    </tbody>
  </table>
<% else %>
  You dont have any item groups yet.
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

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