csv-library-website/library/templates/menu.html

40 lines
1.4 KiB
HTML
Raw Permalink Normal View History

{% 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">
<button id="Year" class="dropbtn">Year</button>
<div class="dropdown-content">
{% for pubyear in pubyears %}
<button type="button" name="button" onclick="filterSelection('{{ pubyear }}', 'Year')" >{{ pubyear }}</button>
{% endfor %}
</div>
</div>
<div class="dropdown">
<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>
{% endblock menu %}