Sha256: 21222e811ff5045015c12b87d34d68f4925aea660a5e2dbd41bd85898dfb2928

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

<div class="thirteen wide column">

  <div class="ui breadcrumb">
    <%= link_to '所有类别', admin_lists_path, class: 'section' %>
    <div class="divider"> / </div>
    <div class="section active"><%= @list.name %></div>
  </div>

  <div class="ui top attached menu borderless">
    <div class="item"><strong>分类列表</strong></div>
    <div class="right menu">
      <div class="item"><%= link_to '新建', new_admin_list_item_path(@list), class: 'ui teal button' %></div>
    </div>
  </div>

  <table class="ui attached table">
    <thead>
    <tr>
      <th>ID</th>
      <th>Logo</th>
      <th>Name</th>
      <th>Key</th>
      <th colspan="3"></th>
    </tr>
    </thead>

    <% @items.each do |item| %>
      <tr>
        <td><%= item.id %></td>
        <td><%= image_tag item.logo, size: '50x50' if item.logo_attachment %></td>
        <td><%= item.name %></td>
        <td><%= item.key %></td>
        <td><%= link_to '详细', admin_list_item_path(@list, item) %></td>
        <td><%= link_to '编辑', edit_admin_list_item_path(@list, item) %></td>
        <td><%= link_to '删除', admin_list_item_path(@list, item), method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </table>

</div>










Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_detail-0.0.1 app/views/rails_detail_admin/items/index.html.erb