85cfcc96bbb1c70f50c37e37c2b28bdbaf416e1f
[redakcja.git] / src / catalogue / templates / catalogue / book_detail.html
1 {% extends "documents/base.html" %}
2
3 {% load i18n %}
4 {% load pagination_tags %}
5
6
7 {% block titleextra %}{% trans "Catalogue" %}{% endblock %}
8
9
10 {% block content %}
11   <div class="card">
12     <div class="card-header">
13       <h1>{% trans "Catalogue" %}</h1>
14     </div>
15     <div class="card-body">
16       <table class="table">
17         {% for author in book.authors.all %}
18           <tr>
19             <th>
20               <a href="{{ author.get_absolute_url }}">
21                 {{ author }}
22               </a>
23             </th>
24             <td>
25               {{ author.pd_year|default_if_none:"-" }}
26             </td>
27             <td>
28               {{ author.wikidata_link }}
29             </td>
30             <td>
31               {{ author.get_priority_display }}
32             </td>
33           </tr>
34         {% endfor %}
35         {% for author in book.translator_set.all %}
36           <tr>
37             <th>
38               <a href="{{ author.get_absolute_url }}">
39                 {{ author }}
40               </a>
41             </th>
42             <td>
43               {{ author.pd_year|default_if_none:"-" }}
44             </td>
45             <td>
46               {{ author.wikidata_link }}
47             </td>
48             <td>
49               {{ author.get_priority_display }}
50             </td>
51           </tr>
52         {% endfor %}
53         <tr>
54           <td>
55             &nbsp;
56             <a href="{{ book.get_absolute_url }}">
57               {{ book.title }}
58             </a>
59           </td>
60           <td>
61             {{ book.pd_year|default_if_none:"-" }}
62           </td>
63           <td>
64             {{ book.wikidata_link }}
65           </td>
66           <td>
67             {{ book.get_priorty_display }}
68           </td>
69           <td>
70             {% for b in book.document_books.all %}
71               <a href="{{ b.get_absolute_url }}">
72                 {{ b }}
73               </a>
74             {% endfor %}
75           </td>
76         </tr>
77       </table>
78     </div>
79   </div>
80 {% endblock content %}