<% title(t('bardings.title')) %> <% description("Track your character's chocobo bardings and discover how to obtain new ones.") %>
<%= search_form_for(@q, url: bardings_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: @bardings.map(&:id) %> <%= javascript_tag "window._token = '#{form_authenticity_token}'" %> <% if character_selected? %> <% end %> <% if @comparison.present? %> <% end %> <% @bardings.each do |barding| %> <% if character_selected? %> <%= td_owned(barding, manual: true) %> <% end %> <% if @comparison.present? %> <%= td_comparison(barding) %> <% end %> <% end %>
# <%= t('name') %> <%= t('source') %> <%= fa_icon('dollar-sign') %> <%= t('own') %> <%= t('patch') %>
<%= sprite(barding, 'barding') %> <%= link_to(barding.name, barding_path(barding), class: 'name') %> <%= sources(barding) %> <%= market_link(barding) %> <%= rarity(barding) %> <%= barding.patch %>