phantasma/app/templates/films.html
2021-10-28 21:59:44 +05:30

42 lines
No EOL
1.1 KiB
HTML
Executable file

{% extends "base.html" %}
{% block body_class%}animated animated-text{% endblock %}
{% block main %}
<div class="films" id="films">
<div>
<strong>Sort:</strong>
<select id="sort-select">
<option value="position" selected>Default</option>
<option value="title">Title</option>
<option value="duration">Duration</option>
<option value="hue">Hue</option>
<option value="saturation">Saturation</option>
<option value="lightness">Lightness</option>
</select>
</div>
{% for film in films %}
<div class="film"
data-position="{{ film.position }}"
data-title="{{ film.data.title }}"
data-duration="{{ film.data.duration }}"
data-hue="{{ film.data.hue }}"
data-saturation="{{ film.data.saturation }}"
data-lightness="{{ film.data.lightness }}"
>
<h1><a href="{{ film.get_absolute_url }}">
<span>{{ film.data.title | safe }}</span>
<span>{{ film.data.title_zh | safe }}</span>
</a></h1>
<h2>
{% for director in film.data.director %}
<span>{{ director|safe }}</span>
{% endfor %}
</h2>
</div>
{% endfor %}
</div>
{% endblock %}
{% block end %}
<script src="{% static 'js/films.js' %}"></script>
{% endblock %}