Sha256: e0a31066cd791c023066c962a02ce81b8c639adfb8ca77a8ad49036dd62a81b6

Contents?: true

Size: 605 Bytes

Versions: 2

Compression:

Stored size: 605 Bytes

Contents

<%= render :partial => 'admin/products/menu' %>

<h1>Listing options</h1>
<table>
  <tr>
    <td><b>Name</b></td>
    <td/>
  </tr>
<% for option in @options %>
  <tr>
    <td valign="top"><%= option.name -%></td>
    <td valign="top">
      <%= link_to "Edit", :action => 'edit', :id => option -%>
      <%= link_to "Delete", 
                     {:action => 'destroy', :id => option}, 
                     {:confirm => "Are you sure you want to delete this option?"} -%>
    </td>
  </tr>
<% end %>
</table>

<br/><br/>
<%= link_to "Add Product Option", :controller => 'options', :action => 'new' -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
railscart-0.0.1 starter-app/vendor/plugins/railscart/app/views/admin/options/list.rhtml
railscart-0.0.2 starter_app/vendor/plugins/railscart/app/views/admin/options/list.rhtml