1 <%= render :partial => "submenu" %>
\r
3 <div id="main"><!-- メイン -->
\r
6 <%=h flash[:notice] %>
\r
7 <%=h flash[:error] %>
\r
8 <% form_for :condition, :url => {:action => 'search'}, :html => {:method => :get} do |f| %>
\r
9 <%= render :partial => "search", :locals=>{:f => f}%>
\r
13 <p>>>検索結果一覧 <%=@suppliers.total_entries %>件 が該当しました。</p><br/>
\r
14 <span class="pnt">※ID=1のデータはデフォルトデータとして編集、削除不可です。</span><br/>
\r
15 <span class="pnt">※商品を持っている仕入先は削除できません。</span><br/>
\r
16 <table class="data2 clear" cellspacing="1">
\r
27 <%unless @suppliers.blank?%>
\r
28 <% @suppliers.each do | supplier | %>
\r
30 <td><%= h supplier.id %></td>
\r
31 <td><%= h supplier.name %></td>
\r
32 <td><%= h supplier.contact_name %></td>
\r
33 <td><%= h supplier.tel %></td>
\r
34 <td><%= h supplier.fax %></td>
\r
35 <td><%= h supplier.email %></td>
\r
36 <td class="t_center">
\r
37 <% if supplier.id != Supplier::DEFAULT_SUPPLIER_ID%>
\r
38 <%= link_to "編集", :action=>"edit" ,:id=>supplier.id %>
\r
41 <td class="t_center">
\r
42 <% if supplier.id != Supplier::DEFAULT_SUPPLIER_ID && supplier.products.blank?%>
\r
43 <%= link_to "削除", :action=>"destroy" ,:id=>supplier.id %>
\r
50 <%= will_paginate @suppliers %>
\r
52 <div class="t_center btn_t">
\r
53 <input type="button" class="btn_s" value="新規登録" onclick="location.href = '/admin/suppliers/new'">
\r