% title(t('hairstyles.title')) %>
<% description("Track your character's hairstyles and discover how to obtain new ones.") %>
<%= search_form_for(@q, url: hairstyles_path, enforce_utf8: false, class: 'form form-inline search-form d-flex') do |f| %>
<%= f.search_field "name_#{I18n.locale}_cont", placeholder: t('name'), size: 40,
class: 'form-control form-control-sm flex-grow-1' %>
<%= f.collection_select :sources_type_id_eq, @types, :id, :name,
{ include_blank: t('all.sources') }, class: 'form-control form-control-sm' %>
<%= button_tag fa_icon('filter', text: t('filters')), data: { toggle: 'modal', target: '#filters'},
type: 'button', class: 'btn btn-secondary btn-sm modal-toggle' %>
<%= f.submit t('search'), name: nil, class: 'btn btn-primary btn-sm mr-0' %>
<% end %>
<%= render 'shared/filters' %>
<%= render 'shared/collection_progress', ids: @hairstyles.map(&:id) %>
<%= javascript_tag "window._token = '#{form_authenticity_token}'" %>
| # |
<%= t('name') %> |
<%= t('source') %> |
<%= fa_icon('carrot') %> |
<%= fa_icon('dollar-sign') %> |
<%= t('own') %> |
<%= t('patch') %> |
<% if character_selected? %>
|
<% end %>
<% if @comparison.present? %>
|
<% end %>
<% @hairstyles.each do |hairstyle| %>
|
<%= link_to hairstyle_path(hairstyle), class: 'hairstyle-small' do %>
<%= hairstyle_sample_image(hairstyle) %>
<% end %>
|
<%= link_to hairstyle_path(hairstyle), class: 'name' do %>
<%= hairstyle.name %>
<%= gender_symbol(hairstyle.gender) %>
<% end %>
|
<%= sources(hairstyle) %> |
<%= vierable(hairstyle) %> |
<%= market_link(hairstyle) %> |
<%= rarity(hairstyle) %> |
<%= hairstyle.patch %> |
<% if character_selected? %>
<%= td_owned(hairstyle, manual: true) %>
<% end %>
<% if @comparison.present? %>
<%= td_comparison(hairstyle) %>
<% end %>
<% end %>