% title('Field Records') %>
<% description("Track your character's field records and discover how to obtain new ones.") %>
<%= search_form_for(@q, url: records_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' %>
<%= 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: @records.map(&:id) %>
<%= javascript_tag "window._token = '#{form_authenticity_token}'" %>
| # |
<%= t('name') %> |
<%= t('records.rarity') %> |
<%= t('spells.location') %> |
<%= t('source') %> |
<%= t('own') %> |
<%= t('patch') %> |
<% if character_selected? %>
|
<% end %>
<% if @comparison.present? %>
|
<% end %>
<% @records.each do |record| %>
|
<%= link_to(record_path(record), class: 'unstyled d-flex align-items-center') do %>
<%= format_record_number(record) %>
<%= sprite(record, 'records-small') %>
<% end %>
|
<%= link_to(record.name, record_path(record), class: 'name') %> |
<%= record_rarity(record) %> |
<%= record.location %> |
<%= sources(record) %> |
<%= rarity(record) %> |
<%= record.patch %> |
<% if character_selected? %>
<%= td_owned(record, manual: true) %>
<% end %>
<% if @comparison.present? %>
<%= td_comparison(record) %>
<% end %>
<% end %>