Sha256: 8e601a1249bc50f9fae34f7479b9408af570b36df5ffc97e4d4606b9e82921e0

Contents?: true

Size: 1.06 KB

Versions: 5

Compression:

Stored size: 1.06 KB

Contents

<div class="row">
  <div class="small-12 columns">
    <h1>Options</h1>
    <%= link_to('New', new_option_path, class: 'button') if can? :create, Guts::Option %>
  </div>
</div>

<% if notice %>
  <div class="row">
    <div class="small-12 columns">
      <div class="callout success notice">
        <p><%= notice %></p>
      </div>
    </div>
  </div>
<% end %>

<div class="row">
  <div class="small-12 columns">
    <% if @options.size > 0 %>
      <table>
        <tbody>
          <% @options.each do |opt| %>
            <tr>
              <td><%= opt.key %></td>
              <td align="right" class="action_links">
                <%= link_to('Edit', edit_option_path(opt)) if can? :update, Guts::Option %>
                <%= link_to_destroy('Destroy', opt) if can? :delete, Guts::Option %>
              </td>
            </tr>
          <% end %>
        </tbody>
      </table>
    <% else %>
      <p>No options have been added.</p>
    <% end %>
  </div>
</div>

<div class="row">
  <div class="small-12 columns">
    <%= will_paginate @options %>
  </div>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
guts-2.1.0 app/views/guts/options/index.html.erb
guts-2.0.2 app/views/guts/options/index.html.erb
guts-2.0.1 app/views/guts/options/index.html.erb
guts-2.0.0 app/views/guts/options/index.html.erb
guts-1.4.0 app/views/guts/options/index.html.erb