Author description generator
[redakcja.git] / src / catalogue / templates / catalogue / author_description.html
1 <dl>
2   {% if obj.date_of_birth or obj.place_of_birth %}
3     <dt>Ur.</dt>
4     <dd>
5       {% if obj.date_of_birth %}
6         {{ obj.date_of_birth }}
7       {% endif %}
8       {% if obj.place_of_birth %}
9         w
10         {% if obj.place_of_birth.locative %}
11           {{ obj.place_of_birth.locative }}
12         {% else %}
13           {{ obj.place_of_birth.name }}
14         {% endif %}
15       {% endif %}
16     </dd>
17   {% endif %}
18   {% if obj.date_of_death or obj.place_of_death %}
19     <dt>Zm.</dt>
20     <dd>
21       {% if obj.date_of_death %}
22         {{ obj.date_of_death }}
23       {% endif %}
24       {% if obj.place_of_death %}
25         w
26         {% if obj.place_of_death.locative %}
27           {{ obj.place_of_death.locative }}
28         {% else %}
29           {{ obj.place_of_death.name }}
30         {% endif %}
31       {% endif %}
32     </dd>
33   {% endif %}
34
35   {% if obj.notablebook_set.exists %}
36     <dt>Najważniejsze dzieła:</dt>
37     <dd>
38       {% for nb in obj.notablebook_set.all %}
39         <i>{{ nb.book.title }}</i>{% if nb.book.original_year %}
40           ({{ nb.book.original_year }}){% endif %}{% if not forloop.last %}, {% endif %}
41       {% endfor %}
42     </dd>
43   {% endif %}
44
45 </dl>
46
47 {{ obj.description }}