{% extends "base.html" %} {% import "components/typography.html" as typography %} {% import "components/dropdown.html" as dropdown %} {% import "components/cards.html" as cards %} {% block main %} {% call typography::heading("All books") %} Download (csv) {% endcall %} {% call cards::card() %}
{% endcall %} {% call cards::card() %}| # | Name | Author(s) | Owner | Current Holder | Actions |
|---|---|---|---|---|---|
| {{ book_user.book.id }} | {{ book_user.book.title }} | {{ book_user.book.authors }} | {{ book_user.owner.name }} | {% match book_user.current_holder %} {% when Some with (current_holder) %} {{ current_holder.name }} {% when None %} - {% endmatch %} | {{ dropdown::crud_dropdown_button(book_user.book, "Actions", "books") }} |