Jacek Kowalski
4 hours ago 6b9278a5d57091fce636dbb640b380cfb990db6c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<div class="panel book-panel">
    <div class="panel-header">
        <div class="panel-title h5">{% trans %}book_details_title{% endtrans %}</div>
    </div>
    <div class="panel-body">
        <table class="table">
            <tr>
                <th>{% trans %}book_id_header{% endtrans %}</th>
                <td>{{ book.id }}</td>
            </tr>
            <tr>
                <th>{% trans %}book_title_header{% endtrans %}</th>
                <td>{{ book.title }}</td>
            </tr>
            <tr>
                <th>{% trans %}book_author_header{% endtrans %}</th>
                <td>{{ book.author }}</td>
            </tr>
            {% for key, value in {
                book_language_header: book.language,
                book_edition_header: book.edition,
                book_publisher_header: book.publisher,
                book_publication_loc_header: book.publicationLoc,
                book_publication_year_header: book.publicationYear,
                book_isbn_header: book.isbn,
                book_issn_header: book.issn,
                book_placement_header: book.placement,
            } %}
                {% if value is not null %}
                    <tr>
                    <th>{{ key|trans }}</th>
                    <td>{{ value }}</td></tr>{% endif %}
            {% endfor %}
            <tr class="book-last-seen">
                <th>{% trans %}book_last_seen_header{% endtrans %}</th>
                <td>{% if book.lastSeen %}{{ book.lastSeen|date('Y-m-d H:i') }}{% else %}<span
                            class="text-gray">{% trans %}book_last_seen_never{% endtrans %}</span>{% endif %}</td>
            </tr>
        </table>
    </div>
    {% block footer %}{% endblock %}
</div>