mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 21:11:16 +00:00
Adds tablist and tabpanel elements for covers tabs
This commit is contained in:
parent
82896e7d81
commit
ae27570812
1 changed files with 3 additions and 3 deletions
|
@ -17,12 +17,12 @@
|
||||||
<p>
|
<p>
|
||||||
{{ shelf.name }}
|
{{ shelf.name }}
|
||||||
</p>
|
</p>
|
||||||
<div class="tabs is-small is-toggle">
|
<div class="tabs is-small is-toggle" role="tablist">
|
||||||
<ul>
|
<ul>
|
||||||
{% for book in shelf.books %}
|
{% for book in shelf.books %}
|
||||||
<li class="{% if shelf_counter == 1 and forloop.first %}is-active{% endif %}" data-id="tab-book-{{ book.id }}">
|
<li class="{% if shelf_counter == 1 and forloop.first %}is-active{% endif %}" data-id="tab-book-{{ book.id }}">
|
||||||
<label for="book-{{ book.id }}" onclick="tabChange(event, nested=true)">
|
<label for="book-{{ book.id }}" onclick="tabChange(event, nested=true)">
|
||||||
<div role="tab" tabindex="0" aria-selected="{% if shelf_counter == 1 and forloop.first %}true{% else %}false{% endif %}">
|
<div role="tab" tabindex="0" aria-selected="{% if shelf_counter == 1 and forloop.first %}true{% else %}false{% endif %}" aria-controls="book-{{ book.id }}-panel">
|
||||||
<a>
|
<a>
|
||||||
{% include 'snippets/book_cover.html' with book=book size="medium" %}
|
{% include 'snippets/book_cover.html' with book=book size="medium" %}
|
||||||
</a>
|
</a>
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
{% for book in shelf.books %}
|
{% for book in shelf.books %}
|
||||||
<div>
|
<div>
|
||||||
<input class="toggle-control" type="radio" name="recent-books" id="book-{{ book.id }}" {% if shelf_counter == 1 and forloop.first %}checked{% endif %}>
|
<input class="toggle-control" type="radio" name="recent-books" id="book-{{ book.id }}" {% if shelf_counter == 1 and forloop.first %}checked{% endif %}>
|
||||||
<div class="toggle-content hidden">
|
<div class="toggle-content hidden" role="tabpanel" id="book-{{ book.id }}-panel">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
{% include 'snippets/book_titleby.html' with book=book %}
|
{% include 'snippets/book_titleby.html' with book=book %}
|
||||||
{% include 'snippets/shelve_button.html' with book=book %}
|
{% include 'snippets/shelve_button.html' with book=book %}
|
||||||
|
|
Loading…
Reference in a new issue