Sha256: 718666fc9f3a4a3a65c1c5cd9e949f03322c9008c7ddde197a37e62b289c937e

Contents?: true

Size: 854 Bytes

Versions: 1

Compression:

Stored size: 854 Bytes

Contents

<p>
  <span>Good Type:</span>
  <%= link_to t('.all'), filter_params(except: [:good_type]), class: active_params(type: '', active: 'button is-info', item: 'button is-light') %>
  <% CartItem.good_types.each do |good_type| %>
    <%= link_to good_type, filter_params(good_type: good_type), class: active_params(type: good_type, active: 'button is-info', item: 'button is-light') %>
  <% end %>
</p>
<p>
  <span>Assistant:</span>
  <%= link_to t('.all'), filter_params(except: [:myself]), class: active_params(myself: '', active: 'button is-info', item: 'button is-light') %>
  <%= link_to 'Assistant', filter_params(myself: 0), class: active_params(myself: 0, active: 'button is-info', item: 'button is-light') %>
  <%= link_to 'Self', filter_params(myself: 1), class: active_params(myself: 1, active: 'button is-info', item: 'button is-light') %>
</p>


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_trade-0.0.3 app/views/trade/admin/trade_items/_filter.html.erb