Sha256: a9860313672ee9c71dafeddaaff335169c92c82c2c38d035976369af7c10b04a

Contents?: true

Size: 986 Bytes

Versions: 3

Compression:

Stored size: 986 Bytes

Contents

<div class="well">
  <dl class="dl-horizontal">
    <% if Area.count > 0 %>
    <dt>地区:</dt>
    <dd>
          <span><%= link_to '不限', url_for(:action => :taxon, :area_id => 0) %></span>
          <% Area.all.each do |area| %>
            <span><%= link_to area.name, url_for(:action => :taxon, :area_id => area.id) %></span>
          <% end %>
    </dd>
    <% end %>

    <% if Producer.count > 1 %>
    <dt>品牌:</dt>
    <dd>
          <span><%= link_to '不限', url_for(:action => :taxon, :producer_id => 0) %></span>
          <% @taxon.producers.each do |producer| %>
            <span><%= link_to producer.name, url_for(:action => :taxon, :producer_id => producer) %></span>
          <% end %>
    </dd>
    <% if @producer %>
    <dd>
      <% @producer.series.each do |producer| %>
        <span><%= link_to producer.name, url_for(:action => :taxon, :serie_id => producer) %></span>
      <% end %>
    </dd>
    <% end %>
    <% end %>

  </dl>
</div>





Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_trade-0.0.3 app/views/trade/goods/_choose.html.erb
rails_trade-0.0.2 app/views/trade/goods/_choose.html.erb
rails_trade-0.0.1 app/views/goods/_choose.html.erb