aboutsummaryrefslogtreecommitdiff
path: root/templates/shared/anime/home.html
blob: 17741ed7a569e448b9915ab9679a44b88c92dfe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends 'shared/core/base.html' %}
{% load static %}
{% block head %}
<link rel="stylesheet" href="{% static 'css/anime/anime.css' %}">
{% endblock head %}
{% block content %}
<div class="a-title-banner">
    <div class="overlay-bottom-radial"></div>
    <div class="a-title-banner-content">
        <h1>Anime</h1>
        <form method="GET" action="{% url 'anime:search' %}">
            <label for="q">Keywords:</label>
            <input type="text" name="q" placeholder="Search anime..." value="{{ request.GET.q }}">
            <label for="genre">Genre:</label>
            <select name="genre" id="genre">
                <option value="">All</option>
                {% for genre in genres %}
                <option value="{{ genre }}" {% if request.GET.genre == genre %}selected{% endif %}>{{ genre }}</option>
                {% endfor %}
            </select>
            <label for="sort">Sort by:</label>
            <select name="sort" id="sort">
                {% for sortOption in sortings %}
                <option value="{{ sortOption.value }}" {% if request.GET.sort == sortOption.value %}selected{% endif %}>{{ sortOption.name }}</option>
                {% endfor %}
            </select>
            <div class="order-toggle">
                <input type="radio" name="order" value="asc" id="asc" {% if request.GET.order == 'asc' %}checked{% endif %}>
                <label for="asc"></label>
                <input type="radio" name="order" value="desc" id="desc" {% if request.GET.order == 'desc' %}checked{% elif not request.GET.order %}checked{% endif %}>
                <label for="desc"></label>
            </div>
            <button type="submit">Search</button>
        </form>
    </div>
</div>
{% include 'partials/_anime_list.html' with anime_list=top_airing_anime title="Currently Top Airing" %}
{% include 'partials/_anime_list.html' with anime_list=popular_anime title="Most Popular Among Folks" %}
{% include 'partials/_anime_list.html' with anime_list=top_anime title="Highly Rated Stuff" %}
{% include 'partials/_anime_list.html' with anime_list=trending_anime title="The Trending Section" %}
{% include "partials/_anime_footer.html" %}
{% endblock content %}