Digital Rights Management für elektronische Patientenakten
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

book_detail.html 1023B

123456789101112131415161718192021222324252627
  1. {% extends "base_generic.html" %}
  2. {% block content %}
  3. <h1>Title: {{ book.title }}</h1>
  4. <p><strong>Author:</strong> <a href="">{{ book.author }}</a></p> <!-- author detail link not yet defined -->
  5. <p><strong>Summary:</strong> {{ book.summary }}</p>
  6. <p><strong>ISBN:</strong> {{ book.isbn }}</p>
  7. <p><strong>Language:</strong> {{ book.language }}</p>
  8. <p><strong>Genre:</strong> {{ book.genre.all|join:", " }}</p>
  9. <div style="margin-left:20px;margin-top:20px">
  10. <h4>Copies</h4>
  11. {% for copy in book.bookinstance_set.all %}
  12. <hr>
  13. <p class="{% if copy.status == 'a' %}text-success{% elif copy.status == 'm' %}text-danger{% else %}text-warning{% endif %}">
  14. {{ copy.get_status_display }}
  15. </p>
  16. {% if copy.status != 'a' %}
  17. <p><strong>Due to be returned:</strong> {{ copy.due_back }}</p>
  18. {% endif %}
  19. <p><strong>Imprint:</strong> {{ copy.imprint }}</p>
  20. <p class="text-muted"><strong>Id:</strong> {{ copy.id }}</p>
  21. {% endfor %}
  22. </div>
  23. {% endblock %}