Sha256: 3f470996b5b5461b0e13a2f5103a0aefad77b76a935ee1f8344a2c9b0a670132

Contents?: true

Size: 987 Bytes

Versions: 12

Compression:

Stored size: 987 Bytes

Contents

<div class="row">
  <div class="small-12 columns">
    <h1>Options</h1>
    <%= link_to 'New', new_option_path, class: 'button' %>
  </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) %>
                <%= link_to_destroy 'Destroy', opt %>
              </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

12 entries across 12 versions & 1 rubygems

Version Path
guts-1.3.6 app/views/guts/options/index.html.erb
guts-1.3.5 app/views/guts/options/index.html.erb
guts-1.3.4 app/views/guts/options/index.html.erb
guts-1.3.3 app/views/guts/options/index.html.erb
guts-1.3.2 app/views/guts/options/index.html.erb
guts-1.3.1 app/views/guts/options/index.html.erb
guts-1.3.0 app/views/guts/options/index.html.erb
guts-1.2.2 app/views/guts/options/index.html.erb
guts-1.2.1 app/views/guts/options/index.html.erb
guts-1.2.0 app/views/guts/options/index.html.erb
guts-1.1.1 app/views/guts/options/index.html.erb
guts-1.1.0 app/views/guts/options/index.html.erb