<% title("#{t('spells.title')} - #{t('spells.battle')}") %> <% description('Explore Blue Magic spells by their combat stats.') %>
<%= link_to t('spells.learn'), spells_path, class: 'btn btn-secondary' %> <%= button_tag t('spells.battle'), class: 'btn btn-secondary active', disabled: true %>
<%= search_form_for(@q, url: battle_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.search_field "description_#{I18n.locale}_cont", placeholder: t('description'), size: 50, 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 %> <% @spells.each do |spell| %> <% if character_selected? %> <% if @comparison.present? %> <%= td_comparison(spell) %> <% else %> <%= td_owned(spell) %> <% end %> <% end %> <% end %>
# <%= t('name') %> <%= t('description') %> <%= t('type') %> <%= t('spells.aspect') %> <%= t('spells.rank') %>
<%= t('spells.number') %> <%= spell.order %> <%= link_to(spell_path(spell)) do %> <%= sprite(spell, :spell) %> <% end %> <%= link_to(spell.name, spell_path(spell), class: 'name') %> <%= format_skill_description(spell.description) %> <%= spell.type.name %> <%= spell.aspect.name %> <%= spell_rank(spell) %>