Contact me to be added to this repository. Push the creations you make for D&D, and they will be displayed in a nice website. See the website for how to contribute.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.0 KiB

  1. {% extends "base.html" %}
  2. {% block content %}
  3. <form action="/search" id="searchForm" method="post">
  4. Search Type:
  5. <select name="type">
  6. <option value="name">Name</option>
  7. <option value="rarity">Rarity</option>
  8. <option value="aura">Aura</option>
  9. <option value="text">Text</option>
  10. </select>
  11. <input type="text" name="inputText" placeholder="Enter your search here">
  12. <input type="submit" value="search">
  13. </form>
  14. <nav>
  15. <ul>
  16. <li><a href="/items">Items</a></li>
  17. <li><a href="/places">Places</a></li>
  18. <li><a href="/characters">Characters</a></li>
  19. <li><a href="/spells">Spells</a></li>
  20. <li><a href="/feats">Feats</a></li>
  21. <li><a href="/monsters">Monsters</a></li>
  22. </ul>
  23. </nav>
  24. <a href="/marches">.</a>
  25. <a href="/dungeon">.</a>
  26. {% if searchResults is defined %}
  27. {{ macros.itemTable(searchResults) }}
  28. {% endif %}
  29. {% if featureText is defined %}
  30. <section>
  31. <h2>Featured {{featureType}}:</h2>
  32. {{ macros.itemTable([featureText]) }}
  33. </section>
  34. {% endif %}
  35. {% endblock %}