Sha256: 77a0997e7862e2100e2599a955318a4d0d193711508c45c13ff7ff89fc50b3db
Contents?: true
Size: 916 Bytes
Versions: 20
Compression:
Stored size: 916 Bytes
Contents
<h1>Vendors</h1> <p><a href="/admin/vendors/new">New Vendor</a></p> <form action="/admin/vendors" method="get" style="margin: 0 0 12px"> <input name="name_like" value="<%= params[:name_like] %>" placeholder="Search for vendor" /> <input type="submit" value="Search" /> </form> <% if @vendors.count > 0 %> <table class="data" style="width: 350px"> <tr> <%= raw @pager.sortable_table_headings({ 'id' => 'ID', 'name' => 'Name', 'status' => 'Status' }) %> </tr> <% @vendors.each do |vendor| %> <tr onclick="window.location='/admin/vendors/<%= vendor.id %>';"> <td style="text-align: center"><%= raw vendor.id %></td> <td><%= raw vendor.name %></td> <td><%= raw vendor.status %></td> </tr> <% end %> </table> <p><%= raw @pager.generate %></p> <% else %> <p>There are no products right now.</p> <% end %>
Version data entries
20 entries across 20 versions & 1 rubygems