<% title(t('spells.title')) %> <% description("Track your character's Blue Magic spells and discover how to obtain new ones.") %>
<%= button_tag t('spells.learn'), class: 'btn btn-secondary active', disabled: true %> <%= link_to t('spells.battle'), battle_spells_path, class: 'btn btn-secondary' %>
<%= search_form_for(@q, url: spells_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 :type_id_eq, SpellType.all.order("name_#{I18n.locale}"), :id, :name, { include_blank: t('all.types') }, class: 'form-control form-control-sm' %> <%= f.select "aspect_name_#{I18n.locale}_eq", @aspects, { include_blank: t('all.aspects') }, class: 'form-control form-control-sm' %> <%= f.select :rank_eq, rank_options, { include_blank: t('all.ranks') }, 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: @spells.map(&:id) %> <%= javascript_tag "window._token = '#{form_authenticity_token}'" %> <% if character_selected? %> <% end %> <% if @comparison.present? %> <% end %> <% @spells.each do |spell| %> <% spell_sources(spell).each do |source| %> <% end %> <% if character_selected? %> <%= td_owned(spell, manual: true) %> <% end %> <% if @comparison.present? %> <%= td_comparison(spell) %> <% end %> <% end %>
# <%= t('name') %> <%= t('spells.enemy') %> <%= t('spells.location') %> <%= t('type') %> <%= t('spells.aspect') %> <%= t('spells.rank') %> <%= t('own') %>
<%= t('spells.number') %> <%= spell.order %> <%= link_to(spell_path(spell)) do %> <%= sprite(spell, :spell) %> <% end %> <%= link_to(spell.name, spell_path(spell), class: 'name') %><%= source %><%= spell.type.name %> <%= spell.aspect.name %> <%= spell_rank(spell) %> <%= rarity(spell) %>