summaryrefslogtreecommitdiff
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
parent329302410f1e49626e53810e42af96ee8a48385d (diff)
Add stories filter form HTML
-rw-r--r--docs/stories.html24
-rw-r--r--templates/stories.html20
2 files changed, 44 insertions, 0 deletions
diff --git a/docs/stories.html b/docs/stories.html
index 487a9c9..e48400d 100644
--- a/docs/stories.html
+++ b/docs/stories.html
@@ -19,6 +19,30 @@
</nav>
<main>
+<div class="works-filter">
+ <form>
+ <label for="language">Language: </label>
+ <select name="language" id="language">
+ <option value="*">All</option>
+
+ <option value="German">German</option>
+
+ <option value="English">English</option>
+
+ </select>
+ <label for="story_type">Story Type: </label>
+ <select name="story_type" id="story_type">
+ <option value="*">All</option>
+
+ <option value="Shortstory">Shortstory</option>
+
+ <option value="Screenplay">Screenplay</option>
+
+ </select>
+ <input type="reset">
+ <input type="submit" value="Filter">
+ </form>
+</div>
<div class="works">
<a href=".&#x2F;stories&#x2F;mit_gutem_gewissen.pdf" style="background-image: url('./images/workcardimages/mit_gutem_gewissen_image.png');" class="work-card" download>
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>