{% extends "base.html" %} {% import "components/typography.html" as typography %} {% import "components/dropdown.html" as dropdown %} {% import "components/fields.html" as fields %} {% import "components/cards.html" as cards %} {% block main %} {{ typography::book_heading(book.title, book, show = false) }} {% call cards::card() %}
Book details
{{ fields::field("Name", book.title) }} {{ fields::field("Authors", book.authors) }} {% match book.description %} {% when Some with (description) %} {{ fields::field("Description", description) }} {% when None %} {{ fields::field("Description", "-") }} {% endmatch %}
User Details
{{ fields::field("Owner", owner.name) }} {% match current_holder %} {% when Some with (current_holder) %} {{ fields::field("Current Holder", current_holder.name) }} {% when None %} {{ fields::field("Current Holder", "-") }} {% endmatch %}
More Informations
{% match book.comment %} {% when Some with (comment) %} {{ fields::field("Comment", comment) }} {% when None %} {{ fields::field("Comment", "-") }} {% endmatch %}
{% endcall %} {% endblock %}