fa6a14a0a7f2d6fb96fd70a7a885e16c620d058c
[redakcja.git] / apps / catalogue / templates / catalogue / book_list / book.html
1 {% load i18n %}
2
3     <tr>
4         <td><a href="{% url 'catalogue_html' book.pk %}">{{ book.meta.title }}</a></td>
5         <td>
6             {% if book.owner_user %}
7                 {{ book.owner_user.first_name }} {{ book.owner_user.last_name }}
8             {% else %}
9                 <a href="{{ book.owner_organization.get_absolute_url }}">{{ book.owner_organization }}</a>
10             {% endif %}
11             {% if am_owner %}
12                 <a href="{% url 'catalogue_book_owner' book.pk %}">({% trans "change" %})</a>
13             {% endif %}
14             </td>
15         <td>{{ book.stage|default:"–" }}</td>
16         <td class="{% if book.is_overdue %}alert-danger{% endif %}">{% if book.assigned_to %}{{ book.assigned_to.first_name }} {{ book.assigned_to.last_name }}{% endif %}</td>
17         <td class="{% if book.is_overdue %}alert-danger{% endif %}">{{ book.get_plan.deadline|default:"–" }}</td>
18         <td>
19             {% if am_owner %}
20                 <div class="btn-group-vertical">
21                     <a class="btn btn-default" href="{% url 'wiki_editor' book.pk %}">{% trans "Edit" %}</a>
22                     <a class="btn btn-default" href="{% url 'catalogue_book_schedule' book.pk %}">{% trans "Schedule" %}</a>
23                     <a class="btn btn-default" href="{% url 'catalogue_book_delete' book.pk %}">{% trans "Delete" %}</a>
24                 </div>
25             {% endif %}
26         </td>
27     </tr>
28
29 </div>
30 </div>