Sha256: f41ae627ff749b073d14fa112098e97baed6611996546dc116692c89a85c5d08

Contents?: true

Size: 1.62 KB

Versions: 2

Compression:

Stored size: 1.62 KB

Contents

<%= render :partial => 'spree/admin/shared/configuration_menu' %>

<% content_for :page_title do %>
  <%= Spree.t(:comment_types) %>
<% end %>

<% content_for :page_actions do %>
  <li>
    <%= button_link_to Spree.t(:new_comment_type), new_object_url, :icon => 'icon-plus', :id => 'admin_new_comment_type_link' %>
  </li>
<% end %>

<% if @comment_types.any? %>
  <table class="index" id='listing_comment_types'>
    <colgroup>
      <col style="width: 40%">
      <col style="width: 45%">
      <col style="width: 15%">
    </colgroup>
    <thead>
      <tr data-hook="admin_comment_types_index_headers">
        <th><%= Spree.t(:name) %></th>
        <th><%= Spree.t(:applies_to) %></th>
        <th data-hook="admin_comment_types_index_header_actions" class="actions"></th>
      </tr>
    </thead>
    <tbody>
      <% @comment_types.each do |comment_type| %>
        <tr id="<%= dom_id comment_type %>">
        <tr id="<%= spree_dom_id comment_type %>" data-hook="admin_comment_types_index_rows" class="<%= cycle('odd', 'even')%>">
          <td><%= comment_type.name %></td>
          <td><%= comment_type.applies_to %></td>
          <td data-hook="admin_comment_types_index_row_actions" class="actions">
            <%= link_to_edit comment_type, :no_text => true %>
            <%= link_to_delete comment_type, :no_text => true  %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <div class="alpha twelve columns no-objects-found">
    <%= Spree.t(:no_resource_found, resource: I18n.t(:comment_types, scope: 'spree')) %>,
    <%= link_to Spree.t(:add_one), spree.new_admin_comment_type_path %>!
  </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_comments-1.0.1 app/views/spree/admin/comment_types/index.html.erb
solidus_comments-1.0.0 app/views/spree/admin/comment_types/index.html.erb