2020-12-21 18:41:55 +01:00
|
|
|
{% block menu %}
|
2024-03-30 15:52:45 +01:00
|
|
|
<nav id="nav" class="menu">
|
|
|
|
<div class="dropdown">
|
|
|
|
<button onclick="filterSelection('all')" class="dropbtn">Reset search</button>
|
|
|
|
</div>
|
2024-03-30 20:23:24 +01:00
|
|
|
{% if current_user.is_authenticated %}
|
2024-03-30 15:52:45 +01:00
|
|
|
<div class="dropdown">
|
|
|
|
<button class="dropbtn"><a href="/upload">Upload</a></button>
|
|
|
|
</div>
|
2024-03-30 20:23:24 +01:00
|
|
|
{% endif %}
|
2024-03-30 15:52:45 +01:00
|
|
|
<div class="dropdown">
|
|
|
|
<button id="PubType" class="dropbtn">Type</button>
|
|
|
|
<div class="dropdown-content">
|
|
|
|
{% for pubtype in pubtypes %}
|
|
|
|
<button type="button" name="button" onclick="filterSelection('{{ pubtype }}', 'PubType')" >{{ pubtype.title() }}</button>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="dropdown">
|
2020-12-30 00:06:45 +01:00
|
|
|
<button id="Year" class="dropbtn">Year</button>
|
2020-12-21 19:26:12 +01:00
|
|
|
<div class="dropdown-content">
|
|
|
|
{% for pubyear in pubyears %}
|
2020-12-30 00:06:45 +01:00
|
|
|
<button type="button" name="button" onclick="filterSelection('{{ pubyear }}', 'Year')" >{{ pubyear }}</button>
|
2020-12-21 19:26:12 +01:00
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-29 22:56:28 +01:00
|
|
|
<div class="dropdown">
|
2020-12-30 00:06:45 +01:00
|
|
|
<button id="License" class="dropbtn">License</button>
|
2024-03-30 15:52:45 +01:00
|
|
|
<div class="dropdown-content">
|
|
|
|
{% for publicense in publicenses %}
|
|
|
|
<button type="button" name="button" onclick="filterSelection('{{ publicense }}', 'License')" >{{ publicense }}</button>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="dropdown">
|
|
|
|
<input class="dropbtn" id="booksearch" type="text" placeholder="🔍 Search..">
|
|
|
|
</div>
|
|
|
|
</nav>
|
2020-12-21 18:41:55 +01:00
|
|
|
{% endblock menu %}
|