Sha256: a50938e263665ab09789be1dbf968da5506565a6481e61190a5b90c5a7e68203

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

<%= title t("flag", scope: "activerecord.models").pluralize %>

<% content_for :right do -%>
  <li class="active">
    <%= link_to t("new_flag"), new_flag_path %>
  </li>
<% end -%>

<table class="table table-striped">
  <thead>
    <tr>
      <th><%= sort_link @search, :id, t(:id, scope: "activerecord.attributes") %></th>
      <th><%= sort_link @search, :name, t(:name, scope: "activerecord.attributes.flag") %></th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>

    <% @flags.each do |flag| %>
      <tr>
        <td><%= flag.id %></td>
        <td><%= flag.name %></td>
        <td>
          <%= link_to flag do %>
            <i class="fa fa-file"></i>
          <% end -%>
        </td>
        <td>
          <%= link_to edit_flag_path(flag) do %>
            <i class="fa fa-edit"></i>
          <% end -%>
        </td>
        <td>
          <%= link_to flag, method: :delete, data: { confirm: t(:are_you_sure) } do %>
            <i class="fa fa-trash"></i>
          <% end -%>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= will_paginate @flags %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mechanize-store-0.0.1 app/views/mechanize_store/flags/index.html.erb