{% include "pages.html" :hx-include "[name='search-form']" :hx-target "#search-results" :url "/cards/search" %} {% if cards %} {% include "cards/_search_result_th.html" :url "/cards/search" :hx-target "#search-results" :name "Image" :sort "id" :form "search-form" %} {% include "cards/_search_result_th.html" :url "/cards/search" :hx-target "#search-results" :name "Passcode" :sort "passcode" :form "search-form" %} {% include "cards/_search_result_th.html" :url "/cards/search" :hx-target "#search-results" :name "Attribute" :sort "attribute" :form "search-form" %} {% include "cards/_search_result_th.html" :url "/cards/search" :hx-target "#search-results" :name "Name" :sort "name" :form "search-form" %} {% include "cards/_search_result_th.html" :url "/cards/search" :hx-target "#search-results" :name "Archetype" :sort "archetype" :form "search-form" %} {% include "cards/_search_result_th.html" :url "/cards/search" :hx-target "#search-results" :name "Race" :sort "race" :form "search-form" %} {% include "cards/_search_result_th.html" :url "/cards/search" :hx-target "#search-results" :name "Type" :sort "type" :form "search-form" %} {% include "cards/_search_result_th.html" :url "/cards/search" :hx-target "#search-results" :name "Card Text" :sort "card-text" :form "search-form" %} {% include "cards/_search_result_th.html" :url "/cards/search" :hx-target "#search-results" :name "ATK" :sort "atk" :form "search-form" %} {% include "cards/_search_result_th.html" :url "/cards/search" :hx-target "#search-results" :name "DEF" :sort "def" :form "search-form" %} {% include "cards/_search_result_th.html" :url "/cards/search" :hx-target "#search-results" :name "Level" :sort "level" :form "search-form" %} {% include "cards/_search_result_th.html" :url "/cards/search" :hx-target "#search-results" :name "Scale" :sort "scale" :form "search-form" %} {% include "cards/_search_result_th.html" :url "/cards/search" :hx-target "#search-results" :name "Frame" :sort "frame-type" :form "search-form" %} {% for card in cards %} {% endfor %}
Card Image for Yu-Gi-Oh! #{{card.passcode}} - {{card.name}} {{ card.passcode }} {% if card.attribute %} {{ card.attribute }} {% elif card.frame-type == "spell" %} Spell Card {% elif card.frame-type == "trap" %} Spell Card {% endif %} {{ card.name }} {{ card.archetype }} {{ card.race }} {{ card.type }} {{ card.desc }} {{ card.atk }} {{ card.def }} {{ card.level }} {{ card.scale }} {{ card.frame-type }}

{{ length }} result{% if length > 2 %}s{% endif %} found.

{% include "pages.html" :url "cards/search" :hx-target "#search-results" :hx-include "[name='search-form']" %}
{% else %}

Nothing to see here!

{% endif %}