summaryrefslogtreecommitdiff
path: root/templates/stories.html
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2022-11-05 13:29:46 +0100
committerWriterV2 <primary-v2@protonmail.com>2022-11-05 13:29:46 +0100
commitedb328aa2fa44006fbc3f0b3c1f578fc7ae62d7a (patch)
treeff9452eba2970bc9798f09b238ccc4a494eeceda /templates/stories.html
parent329302410f1e49626e53810e42af96ee8a48385d (diff)
Add stories filter form HTML
Diffstat (limited to 'templates/stories.html')
-rw-r--r--templates/stories.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/stories.html b/templates/stories.html
index bc77644..e342c02 100644
--- a/templates/stories.html
+++ b/templates/stories.html
@@ -1,6 +1,26 @@
{% extends "base.html" %}
{% block title %}Stories{% endblock title %}
{% block content %}
+<div class="works-filter">
+ <form>
+ <label for="language">Language: </label>
+ <select name="language" id="language">
+ <option value="*">All</option>
+ {% for work in works | unique(attribute="language") %}
+ <option value="{{work.language}}">{{work.language}}</option>
+ {% endfor %}
+ </select>
+ <label for="story_type">Story Type: </label>
+ <select name="story_type" id="story_type">
+ <option value="*">All</option>
+ {% for work in works | unique(attribute="story_type") %}
+ <option value="{{work.story_type}}">{{work.story_type}}</option>
+ {% endfor %}
+ </select>
+ <input type="reset">
+ <input type="submit" value="Filter">
+ </form>
+</div>
<div class="works">
{% for work in works %}
<a href="{{work.path_to_document}}" style="background-image: url('./images/workcardimages/{{work.path_to_image}}');" class="work-card" download>